freedreno: Generate device-info tables at build time
authorRob Clark <robdclark@chromium.org>
Wed, 7 Jul 2021 21:47:02 +0000 (14:47 -0700)
committerMarge Bot <eric+marge@anholt.net>
Wed, 14 Jul 2021 01:58:00 +0000 (01:58 +0000)
commit78c8a8af80d5b0ccd68dd85ff7ecbb699be31f7d
tree25cdcba08df2736bb7162b369679a16f5d61bdad
parent0eda0188aa4dbf47d153deb7ddd046abdf893f0b
freedreno: Generate device-info tables at build time

This way we can make the tables const.  At the same time, for a6xx, this
introduces a "sub-generation template" to reduce the copy/paste for
parameters which are keyed to the sub-generation.  It also explicitly
lists every supported GPU, to get rid of duplicate lists of supported
gpus between the device-info and drivers.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11790>
src/freedreno/common/freedreno_dev_info.c
src/freedreno/common/freedreno_dev_info.h
src/freedreno/common/freedreno_devices.py [new file with mode: 0644]
src/freedreno/common/meson.build
src/freedreno/ds/fd_pps_driver.cc
src/freedreno/ds/fd_pps_driver.h
src/freedreno/vulkan/tu_device.c
src/freedreno/vulkan/tu_pipeline.c
src/gallium/drivers/freedreno/a6xx/fd6_program.c
src/gallium/drivers/freedreno/freedreno_screen.c
src/gallium/drivers/freedreno/gmemtool.c