summaryrefslogtreecommitdiff
path: root/src/intel/compiler/test_eu_compact.cpp
diff options
context:
space:
mode:
authorJason Ekstrand <jason@jlekstrand.net>2020-09-01 18:28:58 -0500
committerMarge Bot <eric+marge@anholt.net>2020-09-02 19:48:44 +0000
commit54ba0daa28b7b3cac8a8df6320cfcf3715e6526b (patch)
treea1fdce504b6f1194c231e5400450bb5afaf99eb0 /src/intel/compiler/test_eu_compact.cpp
parent191f8a4b9fcdf71c4edaa523e10b744b354fb5e4 (diff)
downloadmesa-54ba0daa28b7b3cac8a8df6320cfcf3715e6526b.tar.gz
intel/compiler: Get rid of the global compaction table pointers
With discrete GPUs, it's going to be possible to have GPUs from two different hardware generations in the machine at the same time. Global singletons like this aren't going to fly. Have a struct containing the pointers which gets initialized once per shader disassemble instead. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6244>
Diffstat (limited to 'src/intel/compiler/test_eu_compact.cpp')
-rw-r--r--src/intel/compiler/test_eu_compact.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/intel/compiler/test_eu_compact.cpp b/src/intel/compiler/test_eu_compact.cpp
index 343f060b748..74f7aaecf3b 100644
--- a/src/intel/compiler/test_eu_compact.cpp
+++ b/src/intel/compiler/test_eu_compact.cpp
@@ -287,7 +287,6 @@ struct {
static bool
run_tests(const struct gen_device_info *devinfo)
{
- brw_init_compaction_tables(devinfo);
bool fail = false;
for (unsigned i = 0; i < ARRAY_SIZE(tests); i++) {