intel/dev: fix macro naming convention in gen_wa_helpers.py
intel_device_info.h tests macros in the form `INTEL_WA_{id}_GFX_VER`.
gen_wa_helpers.py produced macros in the form `INTEL_GFX_VER_WA_{id}`
Change the generated code to follow intel_device_info.h
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:
@@ -82,19 +82,19 @@ enum intel_workaround_id {
|
||||
* checks these definitions to eliminate bitset tests at compile time.
|
||||
*/
|
||||
% for a in wa_def:
|
||||
#define INTEL_GFX_VER_WA_${a} ${wa_macro[a]}
|
||||
#define INTEL_WA_${a}_GFX_VER ${wa_macro[a]}
|
||||
% endfor
|
||||
|
||||
/* These defines are suitable for use to compile out genxml code using #if
|
||||
* guards. Workarounds that apply to part of a generation must use a
|
||||
* combination of run time checks and INTEL_GFX_VER_WA_{NUM} macros. Those
|
||||
* combination of run time checks and INTEL_WA_{NUM}_GFX_VER macros. Those
|
||||
* workarounds are 'poisoned' below.
|
||||
*/
|
||||
% for a in partial_gens:
|
||||
% if partial_gens[a]:
|
||||
PRAGMA_POISON(INTEL_NEEDS_WA_${a})
|
||||
% else:
|
||||
#define INTEL_NEEDS_WA_${a} INTEL_GFX_VER_WA_${a}
|
||||
#define INTEL_NEEDS_WA_${a} INTEL_WA_${a}_GFX_VER
|
||||
% endif
|
||||
% endfor
|
||||
|
||||
|
||||
Reference in New Issue
Block a user