diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_batchbuffer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_batchbuffer.c b/src/mesa/drivers/dri/intel/intel_batchbuffer.c index ac133ee8e03..06cbaecc74d 100644 --- a/src/mesa/drivers/dri/intel/intel_batchbuffer.c +++ b/src/mesa/drivers/dri/intel/intel_batchbuffer.c @@ -230,6 +230,9 @@ _intel_batchbuffer_flush(struct intel_context *intel, intel->batch.reserved_space = 0; + if (intel->vtbl.finish_batch) + intel->vtbl.finish_batch(intel); + /* Mark the end of the buffer. */ intel_batchbuffer_emit_dword(intel, MI_BATCH_BUFFER_END); if (intel->batch.used & 1) { @@ -237,9 +240,6 @@ _intel_batchbuffer_flush(struct intel_context *intel, intel_batchbuffer_emit_dword(intel, MI_NOOP); } - if (intel->vtbl.finish_batch) - intel->vtbl.finish_batch(intel); - intel_upload_finish(intel); /* Check that we didn't just wrap our batchbuffer at a bad time. */ |