intel/compiler: use intel_needs_workaround for Wa_14012437816
Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22437>
This commit is contained in:
@@ -3281,7 +3281,7 @@ gfx12_set_memory_fence_message(struct brw_codegen *p,
|
||||
flush_type = LSC_FLUSH_TYPE_EVICT;
|
||||
}
|
||||
|
||||
/* Wa_14014435656:
|
||||
/* Wa_14012437816:
|
||||
*
|
||||
* "For any fence greater than local scope, always set flush type to
|
||||
* at least invalidate so that fence goes on properly."
|
||||
@@ -3292,7 +3292,7 @@ gfx12_set_memory_fence_message(struct brw_codegen *p,
|
||||
* Here set scope to NONE_6 instead of NONE, which has the same effect
|
||||
* as NONE but avoids the downgrade to scope LOCAL.
|
||||
*/
|
||||
if (intel_device_info_is_dg2(p->devinfo) &&
|
||||
if (intel_needs_workaround(p->devinfo, 14012437816) &&
|
||||
scope > LSC_FENCE_LOCAL &&
|
||||
flush_type == LSC_FLUSH_TYPE_NONE) {
|
||||
flush_type = LSC_FLUSH_TYPE_NONE_6;
|
||||
|
Reference in New Issue
Block a user