diff options
author | Christoph Bumiller <[email protected]> | 2013-06-18 10:59:45 +0200 |
---|---|---|
committer | Christoph Bumiller <[email protected]> | 2013-09-01 20:52:27 +0200 |
commit | 528a48ee8da91d79614a877edf8583d063db6c36 (patch) | |
tree | 30b7ec1ab7954beed27a0c6c0ecea7a3e54e60b0 | |
parent | 53992060564bd66f167342e0864cee9406147b04 (diff) |
nvc0: clear the flushed flag
-rw-r--r-- | src/gallium/drivers/nvc0/nvc0_state_validate.c | 9 |
1 files 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; } |