mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
anv: use workaround framework for 1408224581, 14014097488
This makes sure we apply WA only when it is required, these issues do not happen for later MTL steppings. Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Nanley Chery <nanley.g.chery@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23596>
This commit is contained in:
parent
c7c902cdbf
commit
00a91d8870
1 changed files with 15 additions and 12 deletions
|
|
@ -7096,18 +7096,21 @@ cmd_buffer_emit_depth_stencil(struct anv_cmd_buffer *cmd_buffer)
|
||||||
cmd_buffer->state.pending_pipe_bits |= ANV_PIPE_POST_SYNC_BIT;
|
cmd_buffer->state.pending_pipe_bits |= ANV_PIPE_POST_SYNC_BIT;
|
||||||
genX(cmd_buffer_apply_pipe_flushes)(cmd_buffer);
|
genX(cmd_buffer_apply_pipe_flushes)(cmd_buffer);
|
||||||
|
|
||||||
/* Wa_1408224581
|
if (intel_needs_workaround(cmd_buffer->device->info, 1408224581) ||
|
||||||
*
|
intel_needs_workaround(cmd_buffer->device->info, 14014097488)) {
|
||||||
* Workaround: Gfx12LP Astep only An additional pipe control with
|
/* Wa_1408224581
|
||||||
* post-sync = store dword operation would be required.( w/a is to
|
*
|
||||||
* have an additional pipe control after the stencil state whenever
|
* Workaround: Gfx12LP Astep only An additional pipe control with
|
||||||
* the surface state bits of this state is changing).
|
* post-sync = store dword operation would be required.( w/a is to
|
||||||
*
|
* have an additional pipe control after the stencil state whenever
|
||||||
* This also seems sufficient to handle Wa_14014097488.
|
* the surface state bits of this state is changing).
|
||||||
*/
|
*
|
||||||
anv_batch_emit(&cmd_buffer->batch, GENX(PIPE_CONTROL), pc) {
|
* This also seems sufficient to handle Wa_14014097488.
|
||||||
pc.PostSyncOperation = WriteImmediateData;
|
*/
|
||||||
pc.Address = cmd_buffer->device->workaround_address;
|
anv_batch_emit(&cmd_buffer->batch, GENX(PIPE_CONTROL), pc) {
|
||||||
|
pc.PostSyncOperation = WriteImmediateData;
|
||||||
|
pc.Address = cmd_buffer->device->workaround_address;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
cmd_buffer->state.hiz_enabled = isl_aux_usage_has_hiz(info.hiz_usage);
|
cmd_buffer->state.hiz_enabled = isl_aux_usage_has_hiz(info.hiz_usage);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue