drm_intel_context *hw_ctx;
struct intel_batchbuffer batch;
+ bool no_batch_wrap;
/**
* Set if rendering has occured to the drawable's front buffer.
* brw->state.dirty.brw.
*/
if (brw->state.dirty.brw) {
- intel->no_batch_wrap = true;
+ brw->no_batch_wrap = true;
brw_upload_state(brw);
}
else
brw_emit_prim(brw, &prim[i], brw->primitive);
- intel->no_batch_wrap = false;
+ brw->no_batch_wrap = false;
if (dri_bufmgr_check_aperture_space(&brw->batch.bo, 1)) {
if (!fail_next) {
_intel_batchbuffer_flush(struct brw_context *brw,
const char *file, int line)
{
- struct intel_context *intel = &brw->intel;
int ret;
if (brw->batch.used == 0)
intel_upload_finish(brw);
/* Check that we didn't just wrap our batchbuffer at a bad time. */
- assert(!intel->no_batch_wrap);
+ assert(!brw->no_batch_wrap);
ret = do_flush_locked(brw);
bool has_llc;
bool has_swizzling;
- bool no_batch_wrap;
-
/**
* Set if we're either a debug context or the INTEL_DEBUG=perf environment
* variable is set, this is the flag indicating to do expensive work that