xf86-video-intel: src/sna/kgem.c
Chris Wilson
ickle at kemper.freedesktop.org
Thu Mar 8 04:28:35 PST 2012
src/sna/kgem.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit aa7a2bd71275e069a2e4383a26355854b0b8044c
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date: Thu Mar 8 12:27:23 2012 +0000
sna: Fix reversed logic for CREATE_NO_RETIRE
If the flag is set, we cannot retire, not the other way around!
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
diff --git a/src/sna/kgem.c b/src/sna/kgem.c
index cfa46cf..5773d66 100644
--- a/src/sna/kgem.c
+++ b/src/sna/kgem.c
@@ -2060,7 +2060,7 @@ search_linear_cache(struct kgem *kgem, unsigned int num_pages, unsigned flags)
DBG(("%s: inactive and cache bucket empty\n",
__FUNCTION__));
- if ((flags & CREATE_NO_RETIRE) == 0) {
+ if (flags & CREATE_NO_RETIRE) {
DBG(("%s: can not retire\n", __FUNCTION__));
return NULL;
}
More information about the xorg-commit
mailing list