From 54ba0daa28b7b3cac8a8df6320cfcf3715e6526b Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Tue, 1 Sep 2020 18:28:58 -0500 Subject: 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 Part-of: --- src/intel/compiler/test_eu_compact.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'src/intel/compiler/test_eu_compact.cpp') 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++) { -- cgit v1.2.1