~mmach/netext73/mesa-ryzen

« back to all changes in this revision

Viewing changes to src/amd/drm-shim/README.md

  • Committer: mmach
  • Date: 2023-11-02 21:31:35 UTC
  • Revision ID: netbit73@gmail.com-20231102213135-18d4tzh7tj0uz752
2023-11-02 22:11:57

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
Export `MESA_LOADER_DRIVER_OVERRIDE=r300
7
7
LD_PRELOAD=$prefix/lib/libradeon_noop_drm_shim.so`. (or r600 for r600-class HW)
8
8
 
9
 
By default, rv515 is exposed.  The chip can be selected an enviornment
 
9
By default, rv515 is exposed.  The chip can be selected an environment
10
10
variable like `RADEON_GPU_ID=CAYMAN` or `RADEON_GPU_ID=0x6740`.
 
11
 
 
12
### amdgpu_noop backend
 
13
 
 
14
This implements the minimum of the amdgpu kernel driver.  The submit ioctl is
 
15
stubbed out to not execute anything.
 
16
 
 
17
Export `LD_PRELOAD=$prefix/lib/libamdgpu_noop_drm_shim.so`.
 
18
 
 
19
To specify the device to expose, set the environment variable `AMDGPU_GPU_ID`
 
20
to
 
21
 
 
22
 - `renoir` to expose a `CHIP_RENOIR` device
 
23
 - `raven` to expose a `CHIP_RAVEN` device
 
24
 - `stoney` to expose a `CHIP_STONEY` device
 
25
 
 
26
Further names follow the `CHIP_*` enum values. By default, the `CHIP_RENOIR`
 
27
device is exposed.
 
28
 
 
29
To add a new device, `amdgpu_devices.c` needs to be modified.
 
30
`amdgpu_dump_states` can be used to dump the relevant states from a real
 
31
device.