i915: check mask instead of flags for buffer fence types
authorDave Airlie <airlied@redhat.com>
Thu, 11 Oct 2007 23:46:11 +0000 (09:46 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 11 Oct 2007 23:46:11 +0000 (09:46 +1000)
linux-core/i915_buffer.c

index 75763e7..f3ba7ce 100644 (file)
@@ -42,7 +42,7 @@ int i915_fence_types(struct drm_buffer_object *bo,
                     uint32_t * fclass,
                     uint32_t * type)
 {
-       if (bo->mem.flags & (DRM_BO_FLAG_READ | DRM_BO_FLAG_WRITE))
+       if (bo->mem.mask & (DRM_BO_FLAG_READ | DRM_BO_FLAG_WRITE))
                *type = 3;
        else
                *type = 1;