summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-06-26 12:42:30 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-06-26 14:39:13 +0100
commit8cad98eca64224534887efbcd1c60604cd491c35 (patch)
tree24be663273501074f2889e167f48f1a603ae904a
parentc5c7dd24a55f04322d5eec10dc4352d8a8e92b1e (diff)
sna: Fix userptr defines to match i915_drm.h
Now that we are starting to see userptr in the headers, we see that the definitions slightly changed. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/kgem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sna/kgem.c b/src/sna/kgem.c
index 8ce12f76..db7e46f6 100644
--- a/src/sna/kgem.c
+++ b/src/sna/kgem.c
@@ -159,8 +159,8 @@ struct local_i915_gem_userptr {
uint64_t user_ptr;
uint64_t user_size;
uint32_t flags;
-#define I915_USERPTR_READ_ONLY (1<<0)
-#define I915_USERPTR_UNSYNCHRONIZED (1<<31)
+#define I915_USERPTR_READ_ONLY 0x1
+#define I915_USERPTR_UNSYNCHRONIZED 0x80000000
uint32_t handle;
};