summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2010-04-16 16:31:14 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2010-04-16 16:31:14 +0000
commit61212aa559424334a5ce402674ffb78155753f21 (patch)
treea3b77881941f6a3f5214817f70992b0c286aa2b1 /sys/dev/pci
parent8b1c67cdf63eb6a49c48fce6b8befb3726d56b2c (diff)
Correct reversed test in set_tiling. this should deal with the fence
alignment errors that matthieu and mlarkin saw. Tested by both of them, and by me.
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/drm/i915_drv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/i915_drv.c b/sys/dev/pci/drm/i915_drv.c
index 52876c31726..21db523a421 100644
--- a/sys/dev/pci/drm/i915_drv.c
+++ b/sys/dev/pci/drm/i915_drv.c
@@ -4510,7 +4510,7 @@ i915_gem_set_tiling(struct drm_device *dev, void *data,
* mode. Otherwise we can leave it alone, but must clear any
* fence register.
*/
- if (i915_gem_object_fence_offset_ok(obj, args->tiling_mode)) {
+ if (!i915_gem_object_fence_offset_ok(obj, args->tiling_mode)) {
if (obj_priv->pin_count)
ret = EINVAL;
else