From 10560f8506ebecf8a10ff46b8e02af5bd21db36d Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Wed, 3 Jul 2019 15:12:17 -0700 Subject: iris: Minor tidying --- src/gallium/drivers/iris/iris_batch.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/gallium/drivers/iris/iris_batch.c') diff --git a/src/gallium/drivers/iris/iris_batch.c b/src/gallium/drivers/iris/iris_batch.c index 60078499990..5508256e5af 100644 --- a/src/gallium/drivers/iris/iris_batch.c +++ b/src/gallium/drivers/iris/iris_batch.c @@ -679,10 +679,7 @@ _iris_batch_flush(struct iris_batch *batch, const char *file, int line) ret = 0; } - if (ret >= 0) { - //if (iris->ctx.Const.ResetStrategy == GL_LOSE_CONTEXT_ON_RESET_ARB) - //iris_check_for_reset(ice); - } else { + if (ret < 0) { #ifdef DEBUG const bool color = INTEL_DEBUG & DEBUG_COLOR; fprintf(stderr, "%siris: Failed to submit batchbuffer: %-80s%s\n", -- cgit v1.2.3