mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 22:00:13 +01:00
anv: make Wa_16013994831 to use intel_needs_workaround
Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: José Roberto de Souza <jose.souza@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22560>
This commit is contained in:
parent
58e2947cc9
commit
e6e320fc79
2 changed files with 2 additions and 2 deletions
|
|
@ -3206,7 +3206,7 @@ genX(streamout_prologue)(struct anv_cmd_buffer *cmd_buffer)
|
|||
* level preemption for another reason in genX_state.c so we can skip this
|
||||
* for Gfx12.
|
||||
*/
|
||||
if (!intel_device_info_is_dg2(cmd_buffer->device->info))
|
||||
if (!intel_needs_workaround(cmd_buffer->device->info, 16013994831))
|
||||
return;
|
||||
|
||||
if (cmd_buffer->state.gfx.pipeline->uses_xfb) {
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@ emit_common_so_memcpy(struct anv_batch *batch, struct anv_device *device,
|
|||
}
|
||||
|
||||
/* Wa_16013994831 - Disable preemption during streamout. */
|
||||
if (intel_device_info_is_dg2(device->info))
|
||||
if (intel_needs_workaround(device->info, 16013994831))
|
||||
genX(batch_set_preemption)(batch, false);
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue