Skip to content

ac, radeonsi: rework AMD_FORCE_FAMILY

The goal of this MR is to be able to run an application with an overriden gfx family without crashing the compositor. With these changes it's possible to either:

  • AMD_FORCE_FAMILY=polaris12 glxgears -> this is useful to see early texture allocations flags, but will fail quickly as the compositor will fail the import of the fb.
  • AMD_DEBUG=notiling AMD_FORCE_FAMILY=polaris12 glxgears -> the application will run, with no output produced. It can be helpful to investigate driver crashes without having the exact GPU installed.

Then, on top of these changes, this MR aims to create a single place where "fake" GPU data is stored. The existing data from ac_surface_test_common is transformed into a list of fake hardware that can be used in AMD_FORCE_FAMILY.

The next step (not in this MR), would be to merge the fake data available in radv null winsys in the same file, so that both driver can use it.

Merge request reports

Loading