aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_compute.c
diff options
context:
space:
mode:
authorMark Janes <[email protected]>2018-11-01 15:44:45 -0700
committerMark Janes <[email protected]>2018-11-01 16:28:05 -0700
commit5f312e95f8775e050ef9f8218be0eed6da1ee21d (patch)
treed16aebc0de5bc93c99dc62c67e1662709cefc599 /src/mesa/drivers/dri/i965/brw_compute.c
parent43a397c5804987a564e0f154c34018d512d58116 (diff)
Revert "i965/batch: avoid reverting batch buffer if saved state is an empty"
This reverts commit a9031bf9b55602d93cccef6c926e2179c23205b4. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108630
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_compute.c')
-rw-r--r--src/mesa/drivers/dri/i965/brw_compute.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_compute.c b/src/mesa/drivers/dri/i965/brw_compute.c
index 5c8e3a5d4de..de08fc3ac16 100644
--- a/src/mesa/drivers/dri/i965/brw_compute.c
+++ b/src/mesa/drivers/dri/i965/brw_compute.c
@@ -167,7 +167,7 @@ static void
brw_dispatch_compute_common(struct gl_context *ctx)
{
struct brw_context *brw = brw_context(ctx);
- bool fail_next;
+ bool fail_next = false;
if (!_mesa_check_conditional_render(ctx))
return;
@@ -185,7 +185,6 @@ brw_dispatch_compute_common(struct gl_context *ctx)
intel_batchbuffer_require_space(brw, 600);
brw_require_statebuffer_space(brw, 2500);
intel_batchbuffer_save_state(brw);
- fail_next = intel_batchbuffer_saved_state_is_empty(brw);
retry:
brw->batch.no_wrap = true;