Permalink
Browse files

nv50-nvc0/exa: fix bug causing surface state to not be reemitted afte…

…r flush

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
  • Loading branch information...
1 parent 92db2bc commit 8378443bd3b26b57ef2ae424a700e01ead813d33 @skeggsb committed Mar 23, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/nv50_exa.c
  2. +1 −1 src/nvc0_exa.c
View
@@ -363,7 +363,7 @@ NV50EXAStateSIFCResubmit(struct nouveau_channel *chan)
if (MARK_RING(pNv->chan, 32, 2))
return;
- if (NV50EXAAcquireSurface2D(pNv->pdpix, 0))
+ if (!NV50EXAAcquireSurface2D(pNv->pdpix, 0))
MARK_UNDO(pNv->chan);
}
View
@@ -541,7 +541,7 @@ NVC0EXAStateSIFCResubmit(struct nouveau_channel *chan)
if (MARK_RING(pNv->chan, 32, 2))
return;
- if (NVC0EXAAcquireSurface2D(pNv->pdpix, 0))
+ if (!NVC0EXAAcquireSurface2D(pNv->pdpix, 0))
MARK_UNDO(pNv->chan);
}

0 comments on commit 8378443

Please sign in to comment.