diff options
author | Kenneth Graunke <[email protected]> | 2013-07-06 00:20:25 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2013-07-09 14:09:33 -0700 |
commit | 2e26afb37b83effe44b218d5b2a305020b8ad22f (patch) | |
tree | 1624d7bd43bed7bb8286ad60ad9f703bc6586610 /src/mesa/drivers/dri/i965/intel_batchbuffer.c | |
parent | 794de2f3873bcedc78300b3ba69656adc755894c (diff) |
i965: Move intel_context::has_llc 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/drivers/dri/i965/intel_batchbuffer.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_batchbuffer.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_batchbuffer.c b/src/mesa/drivers/dri/i965/intel_batchbuffer.c index ea85066fdff..e40fe5224a1 100644 --- a/src/mesa/drivers/dri/i965/intel_batchbuffer.c +++ b/src/mesa/drivers/dri/i965/intel_batchbuffer.c @@ -71,7 +71,7 @@ intel_batchbuffer_init(struct brw_context *brw) 4096, 4096); } - if (!intel->has_llc) { + if (!brw->has_llc) { brw->batch.cpu_map = malloc(BATCH_SZ); brw->batch.map = brw->batch.cpu_map; } @@ -80,7 +80,6 @@ intel_batchbuffer_init(struct brw_context *brw) static void intel_batchbuffer_reset(struct brw_context *brw) { - struct intel_context *intel = &brw->intel; if (brw->batch.last_bo != NULL) { drm_intel_bo_unreference(brw->batch.last_bo); brw->batch.last_bo = NULL; @@ -91,7 +90,7 @@ intel_batchbuffer_reset(struct brw_context *brw) brw->batch.bo = drm_intel_bo_alloc(brw->bufmgr, "batchbuffer", BATCH_SZ, 4096); - if (intel->has_llc) { + if (brw->has_llc) { drm_intel_bo_map(brw->batch.bo, true); brw->batch.map = brw->batch.bo->virtual; } @@ -181,7 +180,7 @@ do_flush_locked(struct brw_context *brw) struct intel_batchbuffer *batch = &brw->batch; int ret = 0; - if (intel->has_llc) { + if (brw->has_llc) { drm_intel_bo_unmap(batch->bo); } else { ret = drm_intel_bo_subdata(batch->bo, 0, 4*batch->used, batch->map); |