intel/blorp: move Wa_18019816803 out of blorp code
The driver already need to track this WA for blorp. We can completely remove any blorp code dealing with this and instead have the flush required by the workaround be combined with potential other flushes the driver already has to insert before blorp operations. Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26247>
This commit is contained in:

committed by
Marge Bot

parent
6e85fa8a80
commit
ec3f8c0d42
@@ -309,9 +309,18 @@ blorp_exec_on_render(struct blorp_batch *batch,
|
||||
if (intel_needs_workaround(cmd_buffer->device->info, 18019816803)) {
|
||||
bool blorp_ds_state = params->depth.enabled || params->stencil.enabled;
|
||||
if (cmd_buffer->state.gfx.ds_write_state != blorp_ds_state) {
|
||||
batch->flags |= BLORP_BATCH_NEED_PSS_STALL_SYNC;
|
||||
/* Flag the change in ds_write_state so that the next pipeline use
|
||||
* will trigger a PIPE_CONTROL too.
|
||||
*/
|
||||
cmd_buffer->state.gfx.ds_write_state = blorp_ds_state;
|
||||
BITSET_SET(hw_state->dirty, ANV_GFX_STATE_WA_18019816803);
|
||||
|
||||
/* Add the stall that will flush prior to the blorp operation by
|
||||
* genX(cmd_buffer_apply_pipe_flushes)
|
||||
*/
|
||||
anv_add_pending_pipe_bits(cmd_buffer,
|
||||
ANV_PIPE_PSS_STALL_SYNC_BIT,
|
||||
"Wa_18019816803");
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user