intel/dev: fix macro string concatenation for INTEL_WA_{id}_GFX_VER
`INTEL_WA_##id_GFX_VER` evaluates to `INTEL_WA_id_GFX_VER`
instead of numbered identifiers like `INTEL_WA_220579888_GFX_VER`.
Fixes: 3c9a8f7a6d ("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>
This commit is contained in:
@@ -577,7 +577,7 @@ void intel_device_info_update_after_hwconfig(struct intel_device_info *devinfo);
|
||||
|
||||
#ifdef GFX_VER
|
||||
#define intel_needs_workaround(devinfo, id) \
|
||||
INTEL_WA_##id_GFX_VER && \
|
||||
INTEL_WA_ ## id ## _GFX_VER && \
|
||||
BITSET_TEST(devinfo->workarounds, INTEL_WA_##id)
|
||||
#else
|
||||
#define intel_needs_workaround(devinfo, id) \
|
||||
|
||||
Reference in New Issue
Block a user