intel/dev: use GFX_VERx10 to detect genX compilation
authorMark Janes <markjanes@swizzler.org>
Wed, 15 Mar 2023 20:45:22 +0000 (13:45 -0700)
committerMarge Bot <emma+marge@anholt.net>
Thu, 23 Mar 2023 23:23:52 +0000 (23:23 +0000)
commit8eceff48cdb73d48a5db3c393eda60d099709845
treef93401ba0d6563404509ae2fbf6942c5d609f950
parent8c78dd6320659889e5bdf09faeac393caec80b34
intel/dev: use GFX_VERx10 to detect genX compilation

Depending on the ordering of includes, GFX_VER may not defined for
intel_device_info.h.  The failure mode of this case is silent:
BITSET_TEST will be called when it could be compiled out.

GFX_VERx10 should be used in place of GFX_VER.  GFX_VERx10 is defined
by a compiler flag, and is always present for genX compilation units.

Fixes: 3c9a8f7a6d2 ("intel/dev: generate helpers to identify platform workarounds")
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21908>
src/intel/dev/intel_device_info.h