diff options
author | Eric Anholt <[email protected]> | 2013-06-20 15:53:23 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2013-06-28 13:35:24 -0700 |
commit | 39c5fd7f134cc52e7e93553c5c8238b9b531754a (patch) | |
tree | f7605cfe5625468ea907ca42c1894d993bf16616 /src/mesa/drivers/dri | |
parent | a40f9871a04ba45e0eac0b86ad4cae2e06e1e0bb (diff) |
i915: Remove state batch emit support.
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r-- | src/mesa/drivers/dri/i915/intel_batchbuffer.c | 7 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i915/intel_batchbuffer.h | 2 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i915/intel_context.h | 2 |
3 files changed, 1 insertions, 10 deletions
diff --git a/src/mesa/drivers/dri/i915/intel_batchbuffer.c b/src/mesa/drivers/dri/i915/intel_batchbuffer.c index e40ba5607a9..1857fea28dd 100644 --- a/src/mesa/drivers/dri/i915/intel_batchbuffer.c +++ b/src/mesa/drivers/dri/i915/intel_batchbuffer.c @@ -57,7 +57,6 @@ intel_batchbuffer_reset(struct intel_context *intel) intel->maxBatchSize, 4096); intel->batch.reserved_space = BATCH_RESERVED; - intel->batch.state_batch_offset = intel->batch.bo->size; intel->batch.used = 0; } @@ -118,12 +117,6 @@ do_flush_locked(struct intel_context *intel) int ret = 0; ret = drm_intel_bo_subdata(batch->bo, 0, 4*batch->used, batch->map); - if (ret == 0 && batch->state_batch_offset != batch->bo->size) { - ret = drm_intel_bo_subdata(batch->bo, - batch->state_batch_offset, - batch->bo->size - batch->state_batch_offset, - (char *)batch->map + batch->state_batch_offset); - } if (!intel->intelScreen->no_hw) { if (ret == 0) { diff --git a/src/mesa/drivers/dri/i915/intel_batchbuffer.h b/src/mesa/drivers/dri/i915/intel_batchbuffer.h index 3017d388efa..ede177312fe 100644 --- a/src/mesa/drivers/dri/i915/intel_batchbuffer.h +++ b/src/mesa/drivers/dri/i915/intel_batchbuffer.h @@ -73,7 +73,7 @@ static INLINE uint32_t float_as_int(float f) static INLINE unsigned intel_batchbuffer_space(struct intel_context *intel) { - return (intel->batch.state_batch_offset - intel->batch.reserved_space) + return (intel->batch.bo->size - intel->batch.reserved_space) - intel->batch.used*4; } diff --git a/src/mesa/drivers/dri/i915/intel_context.h b/src/mesa/drivers/dri/i915/intel_context.h index fffd21ebd7b..1b4798f6ec1 100644 --- a/src/mesa/drivers/dri/i915/intel_context.h +++ b/src/mesa/drivers/dri/i915/intel_context.h @@ -127,8 +127,6 @@ struct intel_batchbuffer { uint32_t *map; uint32_t *cpu_map; #define BATCH_SZ (8192*sizeof(uint32_t)) - - uint32_t state_batch_offset; }; /** |