From: Christoph Bumiller Date: Tue, 18 Jun 2013 08:59:45 +0000 (+0200) Subject: nvc0: clear the flushed flag X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=528a48ee8da91d79614a877edf8583d063db6c36;p=mesa.git nvc0: clear the flushed flag --- 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; }