summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoroga <oga@openbsd.org>2010-04-16 16:31:13 +0000
committeroga <oga@openbsd.org>2010-04-16 16:31:13 +0000
commitdd3e777d9c0dc6d29aec3291ecd62b24f2f71ae8 (patch)
treea1885e9322239e6329b2ceab7a90fd6e58a3897c
parentCorrect some comments and cleanup some whitespace. (diff)
downloadwireguard-openbsd-dd3e777d9c0dc6d29aec3291ecd62b24f2f71ae8.tar.xz
wireguard-openbsd-dd3e777d9c0dc6d29aec3291ecd62b24f2f71ae8.zip
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.
-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