anv: check for wa 16013994831 in emit_so_memcpy_end

We are toggling preemption on/off during streamout, this is also
happening on gfx12 platforms, not just dg2.

Cc: mesa-stable
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/27002>
This commit is contained in:
Tapani Pälli
2024-01-11 15:50:09 +02:00
committed by Marge Bot
parent 73835874a8
commit 36f428f1de

View File

@@ -272,7 +272,7 @@ genX(emit_so_memcpy_fini)(struct anv_memcpy_state *state)
void
genX(emit_so_memcpy_end)(struct anv_memcpy_state *state)
{
if (intel_device_info_is_dg2(state->device->info))
if (intel_needs_workaround(state->device->info, 16013994831))
genX(batch_set_preemption)(state->batch, state->device->info, _3D, true);
anv_batch_emit(state->batch, GENX(MI_BATCH_BUFFER_END), end);