xref: /aosp_15_r20/external/mesa3d/src/amd/drm-shim/README.md (revision 6104692788411f58d303aa86923a9ff6ecaded22)
1*61046927SAndroid Build Coastguard Worker### radeon_noop backend
2*61046927SAndroid Build Coastguard Worker
3*61046927SAndroid Build Coastguard WorkerThis implements the minimum of the radeon kernel driver in order to make shader-db work.
4*61046927SAndroid Build Coastguard WorkerThe submit ioctl is stubbed out to not execute anything.
5*61046927SAndroid Build Coastguard Worker
6*61046927SAndroid Build Coastguard WorkerExport `MESA_LOADER_DRIVER_OVERRIDE=r300
7*61046927SAndroid Build Coastguard WorkerLD_PRELOAD=$prefix/lib/libradeon_noop_drm_shim.so`. (or r600 for r600-class HW)
8*61046927SAndroid Build Coastguard Worker
9*61046927SAndroid Build Coastguard WorkerBy default, rv515 is exposed.  The chip can be selected an environment
10*61046927SAndroid Build Coastguard Workervariable like `RADEON_GPU_ID=CAYMAN` or `RADEON_GPU_ID=0x6740`.
11*61046927SAndroid Build Coastguard Worker
12*61046927SAndroid Build Coastguard Worker### amdgpu_noop backend
13*61046927SAndroid Build Coastguard Worker
14*61046927SAndroid Build Coastguard WorkerThis implements the minimum of the amdgpu kernel driver.  The submit ioctl is
15*61046927SAndroid Build Coastguard Workerstubbed out to not execute anything.
16*61046927SAndroid Build Coastguard Worker
17*61046927SAndroid Build Coastguard WorkerExport `LD_PRELOAD=$prefix/lib/libamdgpu_noop_drm_shim.so`.
18*61046927SAndroid Build Coastguard Worker
19*61046927SAndroid Build Coastguard WorkerTo specify the device to expose, set the environment variable `AMDGPU_GPU_ID`
20*61046927SAndroid Build Coastguard Workerto
21*61046927SAndroid Build Coastguard Worker
22*61046927SAndroid Build Coastguard Worker - `renoir` to expose a `CHIP_RENOIR` device
23*61046927SAndroid Build Coastguard Worker - `raven` to expose a `CHIP_RAVEN` device
24*61046927SAndroid Build Coastguard Worker - `stoney` to expose a `CHIP_STONEY` device
25*61046927SAndroid Build Coastguard Worker
26*61046927SAndroid Build Coastguard WorkerFurther names follow the `CHIP_*` enum values. By default, the `CHIP_RENOIR`
27*61046927SAndroid Build Coastguard Workerdevice is exposed.
28*61046927SAndroid Build Coastguard Worker
29*61046927SAndroid Build Coastguard WorkerTo add a new device, `amdgpu_devices.c` needs to be modified.
30*61046927SAndroid Build Coastguard Worker`amdgpu_dump_states` can be used to dump the relevant states from a real
31*61046927SAndroid Build Coastguard Workerdevice.
32