projects
/
platform
/
upstream
/
Vulkan-Tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd4f514
)
loader: Only check magic value from Icd on debug builds.
author
Jon Ashburn
<jon@lunarg.com>
Wed, 15 Apr 2015 19:34:33 +0000
(13:34 -0600)
committer
Chia-I Wu
<olv@lunarg.com>
Thu, 16 Apr 2015 09:48:20 +0000
(17:48 +0800)
loader/loader.h
patch
|
blob
|
history
diff --git
a/loader/loader.h
b/loader/loader.h
index
0ff9a59
..
b615989
100644
(file)
--- a/
loader/loader.h
+++ b/
loader/loader.h
@@
-59,8
+59,10
@@
static inline void *loader_get_data(const void *obj)
static inline void loader_init_data(void *obj, const void *data)
{
+#ifdef DEBUG
assert(valid_loader_magic_value(obj) &&
"Incompatible ICD, first dword must be initialized to ICD_LOADER_MAGIC. See loader/README.md for details.");
+#endif
loader_set_data(obj, data);
}