i915: Remove state batch emit support.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:

committed by
Kenneth Graunke

parent
a40f9871a0
commit
39c5fd7f13
@@ -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) {
|
||||
|
Reference in New Issue
Block a user