From 61212aa559424334a5ce402674ffb78155753f21 Mon Sep 17 00:00:00 2001 From: Owain Ainsworth Date: Fri, 16 Apr 2010 16:31:14 +0000 Subject: 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. --- sys/dev/pci/drm/i915_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/dev/pci') 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 -- cgit v1.2.3