anv: Add flush reason to NEEDS_END_OF_PIPE_SYNC
cs_stall gets inserted if both flushes and invalidates are required. This cs_stall reason was not called out explicitly, until now. Reviewed-by: Mark Janes <markjanes@swizzler.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21505>
This commit is contained in:
@@ -4207,8 +4207,7 @@ anv_add_pending_pipe_bits(struct anv_cmd_buffer* cmd_buffer,
|
||||
const char* reason)
|
||||
{
|
||||
cmd_buffer->state.pending_pipe_bits |= bits;
|
||||
if (INTEL_DEBUG(DEBUG_PIPE_CONTROL) && bits)
|
||||
{
|
||||
if (INTEL_DEBUG(DEBUG_PIPE_CONTROL) && bits) {
|
||||
fputs("pc: add ", stdout);
|
||||
anv_dump_pipe_bits(bits, stdout);
|
||||
fprintf(stdout, "reason: %s\n", reason);
|
||||
|
||||
@@ -1613,6 +1613,12 @@ genX(emit_apply_pipe_flushes)(struct anv_batch *batch,
|
||||
(bits & ANV_PIPE_NEEDS_END_OF_PIPE_SYNC_BIT)) {
|
||||
bits |= ANV_PIPE_END_OF_PIPE_SYNC_BIT;
|
||||
bits &= ~ANV_PIPE_NEEDS_END_OF_PIPE_SYNC_BIT;
|
||||
|
||||
if (INTEL_DEBUG(DEBUG_PIPE_CONTROL) && bits) {
|
||||
fputs("pc: add ", stderr);
|
||||
anv_dump_pipe_bits(ANV_PIPE_END_OF_PIPE_SYNC_BIT, stdout);
|
||||
fprintf(stderr, "reason: Ensure flushes done before invalidate\n");
|
||||
}
|
||||
}
|
||||
|
||||
/* Project: SKL / Argument: LRI Post Sync Operation [23]
|
||||
|
||||
Reference in New Issue
Block a user