intel/compiler: Get rid of the global compaction table pointers
authorJason Ekstrand <jason@jlekstrand.net>
Tue, 1 Sep 2020 23:28:58 +0000 (18:28 -0500)
committerMarge Bot <eric+marge@anholt.net>
Wed, 2 Sep 2020 19:48:44 +0000 (19:48 +0000)
commit54ba0daa28b7b3cac8a8df6320cfcf3715e6526b
treea1fdce504b6f1194c231e5400450bb5afaf99eb0
parent191f8a4b9fcdf71c4edaa523e10b744b354fb5e4
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>
src/intel/common/gen_disasm.c
src/intel/compiler/brw_compiler.c
src/intel/compiler/brw_eu.h
src/intel/compiler/brw_eu_compact.c
src/intel/compiler/test_eu_compact.cpp
src/intel/tools/i965_asm.c
src/intel/tools/i965_disasm.c