OSDN Git Service
(root)
/
android-x86
/
external-gbm_gralloc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46983bb
)
Use alternative GRALLOC_GBM_HANDLE_MAGIC
author
Emil Velikov
<emil.l.velikov@gmail.com>
Mon, 18 Jul 2016 15:10:26 +0000
(16:10 +0100)
committer
Rob Herring
<robh@kernel.org>
Tue, 13 Dec 2016 15:43:50 +0000
(09:43 -0600)
Using 0x5f47424d ("_GBM") is less likely to colide than the generic
0x12345678.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
gralloc_drm_handle.h
patch
|
blob
|
history
diff --git
a/gralloc_drm_handle.h
b/gralloc_drm_handle.h
index
be2984a
..
cd69a4c
100644
(file)
--- 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 0x
12345678
+#define GRALLOC_GBM_HANDLE_MAGIC 0x
5f47424d
#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)) \