summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/iris/iris_batch.c
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2018-11-19 14:16:03 -0800
committerKenneth Graunke <[email protected]>2019-02-21 10:26:10 -0800
commit3e332af61111c627d0384a5c3bdc2ce1b279405a (patch)
treed032659f4343937f80a60d5dd40c9f5a085ee010 /src/gallium/drivers/iris/iris_batch.c
parent54347c078e7a4eb63ebc17ce1b9062860f44710c (diff)
iris: Drop vestiges of throttling code
Diffstat (limited to 'src/gallium/drivers/iris/iris_batch.c')
-rw-r--r--src/gallium/drivers/iris/iris_batch.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/gallium/drivers/iris/iris_batch.c b/src/gallium/drivers/iris/iris_batch.c
index 6c48cec57c8..7367e6136e8 100644
--- a/src/gallium/drivers/iris/iris_batch.c
+++ b/src/gallium/drivers/iris/iris_batch.c
@@ -345,11 +345,7 @@ create_batch(struct iris_batch *batch)
static void
iris_batch_reset(struct iris_batch *batch)
{
- if (batch->last_bo != NULL) {
- iris_bo_unreference(batch->last_bo);
- batch->last_bo = NULL;
- }
- batch->last_bo = batch->bo;
+ iris_bo_unreference(batch->bo);
batch->primary_batch_size = 0;
batch->contains_draw = false;
@@ -381,8 +377,6 @@ iris_batch_free(struct iris_batch *batch)
batch->map = NULL;
batch->map_next = NULL;
- iris_bo_unreference(batch->last_bo);
-
iris_destroy_hw_context(bufmgr, batch->hw_ctx_id);
_mesa_hash_table_destroy(batch->cache.render, NULL);
@@ -552,8 +546,6 @@ _iris_batch_flush(struct iris_batch *batch, const char *file, int line)
int ret = submit_batch(batch);
- //throttle(iris);
-
if (ret >= 0) {
//if (iris->ctx.Const.ResetStrategy == GL_LOSE_CONTEXT_ON_RESET_ARB)
//iris_check_for_reset(ice);