From 528a48ee8da91d79614a877edf8583d063db6c36 Mon Sep 17 00:00:00 2001 From: Christoph Bumiller Date: Tue, 18 Jun 2013 10:59:45 +0200 Subject: [PATCH] nvc0: clear the flushed flag --- src/gallium/drivers/nvc0/nvc0_state_validate.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/gallium/drivers/nvc0/nvc0_state_validate.c b/src/gallium/drivers/nvc0/nvc0_state_validate.c index 1e14723244c..4b50b43cf76 100644 --- a/src/gallium/drivers/nvc0/nvc0_state_validate.c +++ b/src/gallium/drivers/nvc0/nvc0_state_validate.c @@ -566,11 +566,10 @@ nvc0_state_validate(struct nvc0_context *nvc0, uint32_t mask, unsigned words) nouveau_pushbuf_bufctx(nvc0->base.pushbuf, nvc0->bufctx_3d); ret = nouveau_pushbuf_validate(nvc0->base.pushbuf); - if (unlikely(ret)) - return FALSE; - if (unlikely(nvc0->state.flushed)) + if (unlikely(nvc0->state.flushed)) { + nvc0->state.flushed = FALSE; nvc0_bufctx_fence(nvc0, nvc0->bufctx_3d, TRUE); - - return TRUE; + } + return !ret; } -- 2.30.2