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
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. */