summaryrefslogtreecommitdiff
path: root/linux-core
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2007-10-12 09:46:11 +1000
committerDave Airlie <airlied@redhat.com>2007-10-12 09:46:11 +1000
commit604f02ff619d87d1372bcb7969c826d981fefc60 (patch)
tree46b4ad596a9ee6f13c325b9b170b58a00edd8aac /linux-core
parentf0fd53f86b30e230f3f34b49b54392d20f053a89 (diff)
i915: check mask instead of flags for buffer fence types
Diffstat (limited to 'linux-core')
-rw-r--r--linux-core/i915_buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-core/i915_buffer.c b/linux-core/i915_buffer.c
index 75763e71..f3ba7ce5 100644
--- a/linux-core/i915_buffer.c
+++ b/linux-core/i915_buffer.c
@@ -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;