pan/midgard: Introduce quirks checks
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Wed, 20 Nov 2019 01:55:42 +0000 (20:55 -0500)
committerTomeu Vizoso <tomeu.vizoso@collabora.com>
Wed, 20 Nov 2019 06:41:39 +0000 (07:41 +0100)
commitfcf144d96a563a802702164dfb435b85d19ed8b1
tree933b85ca95795aaafc7b67c68b4b1d21dbb4d057
parent614fba0ce1b267b365f8ee17f0ed017c35b20b1a
pan/midgard: Introduce quirks checks

Rather than open-coding checks on gpu_id in the compiler, let's track
quirks applying to whatever we're compiling for, to allow us to manage
the complexity of many heterogenous GPUs in the compiler.

It was discovered that a workaround used on T720 is also required on
T820 (and presumably T830), so let's fix this. This will also decrease
friction as we continue improving T720 support.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
src/panfrost/midgard/compiler.h
src/panfrost/midgard/disassemble.c
src/panfrost/midgard/midgard_compile.c
src/panfrost/midgard/midgard_quirks.h [new file with mode: 0644]
src/panfrost/midgard/midgard_ra.c