diff options
author | Kenneth Graunke <[email protected]> | 2013-07-03 14:29:56 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2013-07-09 14:09:13 -0700 |
commit | 7c3180a4ade0ccb37f51d59032c37f0f4b4cb144 (patch) | |
tree | b43a0af61fc652db1b8bb17cbef6afc5ba135712 /src/mesa | |
parent | 5314afa27aa8d9260ed0b0a42a6d6050313953da (diff) |
i965: Move intel_context::no_batch_wrap to brw_context.
Signed-off-by: Kenneth Graunke <[email protected]>
Acked-by: Chris Forbes <[email protected]>
Acked-by: Paul Berry <[email protected]>
Acked-by: Anuj Phogat <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_context.h | 1 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_draw.c | 4 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_batchbuffer.c | 3 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_context.h | 2 |
4 files changed, 4 insertions, 6 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_context.h b/src/mesa/drivers/dri/i965/brw_context.h index f278c5302ba..a6d7abd83f3 100644 --- a/src/mesa/drivers/dri/i965/brw_context.h +++ b/src/mesa/drivers/dri/i965/brw_context.h @@ -807,6 +807,7 @@ struct brw_context drm_intel_context *hw_ctx; struct intel_batchbuffer batch; + bool no_batch_wrap; /** * Set if rendering has occured to the drawable's front buffer. diff --git a/src/mesa/drivers/dri/i965/brw_draw.c b/src/mesa/drivers/dri/i965/brw_draw.c index b338fe0fd9f..3514082c4dc 100644 --- a/src/mesa/drivers/dri/i965/brw_draw.c +++ b/src/mesa/drivers/dri/i965/brw_draw.c @@ -443,7 +443,7 @@ retry: * brw->state.dirty.brw. */ if (brw->state.dirty.brw) { - intel->no_batch_wrap = true; + brw->no_batch_wrap = true; brw_upload_state(brw); } @@ -452,7 +452,7 @@ retry: 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) { diff --git a/src/mesa/drivers/dri/i965/intel_batchbuffer.c b/src/mesa/drivers/dri/i965/intel_batchbuffer.c index 0905237aa89..df83e3d6954 100644 --- a/src/mesa/drivers/dri/i965/intel_batchbuffer.c +++ b/src/mesa/drivers/dri/i965/intel_batchbuffer.c @@ -235,7 +235,6 @@ int _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) @@ -265,7 +264,7 @@ _intel_batchbuffer_flush(struct brw_context *brw, 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); diff --git a/src/mesa/drivers/dri/i965/intel_context.h b/src/mesa/drivers/dri/i965/intel_context.h index f95b1db2597..d2eb7463bc2 100644 --- a/src/mesa/drivers/dri/i965/intel_context.h +++ b/src/mesa/drivers/dri/i965/intel_context.h @@ -129,8 +129,6 @@ struct intel_context 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 |