xf86-video-intel: src/sna/kgem.c
Chris Wilson
ickle at kemper.freedesktop.org
Fri Dec 23 04:43:52 PST 2011
src/sna/kgem.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 3850f4ad48986691e1fb98038ae921deb6c25423
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date: Fri Dec 23 12:42:02 2011 +0000
sna: Silence unsigned comparison against 0
The good news is if this ever failed, the kernel is far too broken...
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
diff --git a/src/sna/kgem.c b/src/sna/kgem.c
index 0ea9d39..539c20e 100644
--- a/src/sna/kgem.c
+++ b/src/sna/kgem.c
@@ -520,8 +520,8 @@ void kgem_init(struct kgem *kgem, int fd, struct pci_device *dev, int gen)
DBG(("%s: max object size %d\n", __FUNCTION__, kgem->max_object_size));
kgem->fence_max = gem_param(kgem, I915_PARAM_NUM_FENCES_AVAIL) - 2;
- if (kgem->fence_max < 0)
- kgem->fence_max = 5;
+ if ((int)kgem->fence_max < 0)
+ kgem->fence_max = 5; /* minimum safe value for all hw */
DBG(("%s: max fences=%d\n", __FUNCTION__, kgem->fence_max));
}
More information about the xorg-commit
mailing list