intel/dev: fixup intel_needs_workaround() macro

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41047>
This commit is contained in:
Lionel Landwerlin 2026-04-02 19:12:32 +03:00
parent 7adfea17e3
commit 13f5531692

View file

@ -204,10 +204,10 @@ bool intel_device_info_compute_system_memory(struct intel_device_info *devinfo,
#ifdef GFX_VERx10
#define intel_needs_workaround(devinfo, id) \
(INTEL_WA_ ## id ## _GFX_VER && \
BITSET_TEST(devinfo->workarounds, INTEL_WA_##id))
BITSET_TEST((devinfo)->workarounds, INTEL_WA_##id))
#else
#define intel_needs_workaround(devinfo, id) \
BITSET_TEST(devinfo->workarounds, INTEL_WA_##id)
BITSET_TEST((devinfo)->workarounds, INTEL_WA_##id)
#endif
enum intel_wa_steppings intel_device_info_wa_stepping(struct intel_device_info *devinfo);