diff options
Diffstat (limited to 'src/mesa/drivers/dri/i965/intel_context.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_context.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_context.c b/src/mesa/drivers/dri/i965/intel_context.c index 9d95f765566..53ae742dfa7 100644 --- a/src/mesa/drivers/dri/i965/intel_context.c +++ b/src/mesa/drivers/dri/i965/intel_context.c @@ -341,9 +341,8 @@ void _intel_flush(struct gl_context *ctx, const char *file, int line) { struct brw_context *brw = brw_context(ctx); - struct intel_context *intel = intel_context(ctx); - if (intel->batch.used) + if (brw->batch.used) _intel_batchbuffer_flush(brw, file, line); } @@ -362,13 +361,13 @@ intel_glFlush(struct gl_context *ctx) void intelFinish(struct gl_context * ctx) { - struct intel_context *intel = intel_context(ctx); + struct brw_context *brw = brw_context(ctx); intel_flush(ctx); intel_flush_front(ctx); - if (intel->batch.last_bo) - drm_intel_bo_wait_rendering(intel->batch.last_bo); + if (brw->batch.last_bo) + drm_intel_bo_wait_rendering(brw->batch.last_bo); } void |