mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 21:08:11 +02:00
i965: Move MI_BATCHBUFFER_END handling into brw_finish_batch().
This is, by definition, finishing the batch. Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
1f25436079
commit
5a746021ce
1 changed files with 7 additions and 7 deletions
|
|
@ -665,6 +665,13 @@ brw_finish_batch(struct brw_context *brw)
|
|||
PIPE_CONTROL_CS_STALL);
|
||||
}
|
||||
}
|
||||
|
||||
/* Mark the end of the buffer. */
|
||||
intel_batchbuffer_emit_dword(&brw->batch, MI_BATCH_BUFFER_END);
|
||||
if (USED_BATCH(brw->batch) & 1) {
|
||||
/* Round batchbuffer usage to 2 DWORDs. */
|
||||
intel_batchbuffer_emit_dword(&brw->batch, MI_NOOP);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
@ -899,13 +906,6 @@ _intel_batchbuffer_flush_fence(struct brw_context *brw,
|
|||
|
||||
brw_finish_batch(brw);
|
||||
|
||||
/* Mark the end of the buffer. */
|
||||
intel_batchbuffer_emit_dword(&brw->batch, MI_BATCH_BUFFER_END);
|
||||
if (USED_BATCH(brw->batch) & 1) {
|
||||
/* Round batchbuffer usage to 2 DWORDs. */
|
||||
intel_batchbuffer_emit_dword(&brw->batch, MI_NOOP);
|
||||
}
|
||||
|
||||
intel_upload_finish(brw);
|
||||
|
||||
/* Check that we didn't just wrap our batchbuffer at a bad time. */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue