From 13f553169274898b453046d96641ebdd1bd5ed27 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Thu, 2 Apr 2026 19:12:32 +0300 Subject: [PATCH] intel/dev: fixup intel_needs_workaround() macro Signed-off-by: Lionel Landwerlin Reviewed-by: Kenneth Graunke Part-of: --- src/intel/dev/intel_device_info.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/intel/dev/intel_device_info.h b/src/intel/dev/intel_device_info.h index 00a01c414c1..dd9ee6197a6 100644 --- a/src/intel/dev/intel_device_info.h +++ b/src/intel/dev/intel_device_info.h @@ -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);