summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmil Velikov <emil.l.velikov@gmail.com>2016-07-18 16:10:26 +0100
committerRob Herring <robh@kernel.org>2016-12-13 09:43:50 -0600
commit2df53436cf8e412c76ed4e62b875a994df9b2943 (patch)
tree24fc5600e75898bc1cf24e1cd21c1c044ab2e537
parent46983bb206e40b223a978ef756204b92db260d44 (diff)
downloadgbm_gralloc-2df53436cf8e412c76ed4e62b875a994df9b2943.tar.gz
gbm_gralloc-2df53436cf8e412c76ed4e62b875a994df9b2943.tar.xz
Use alternative GRALLOC_GBM_HANDLE_MAGIC
Using 0x5f47424d ("_GBM") is less likely to colide than the generic 0x12345678. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
-rw-r--r--gralloc_drm_handle.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gralloc_drm_handle.h b/gralloc_drm_handle.h
index be2984a..cd69a4c 100644
--- a/gralloc_drm_handle.h
+++ b/gralloc_drm_handle.h
@@ -56,7 +56,7 @@ struct gralloc_drm_handle_t {
uint64_t reserved;
} __attribute__((aligned(8)));
};
-#define GRALLOC_GBM_HANDLE_MAGIC 0x12345678
+#define GRALLOC_GBM_HANDLE_MAGIC 0x5f47424d
#define GRALLOC_GBM_HANDLE_NUM_FDS 1
#define GRALLOC_GBM_HANDLE_NUM_INTS ( \
((sizeof(struct gralloc_drm_handle_t) - sizeof(native_handle_t))/sizeof(int)) \