projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a41a52
)
anv/multialloc: Add new add_size helper
author
Jason Ekstrand
<jason.ekstrand@intel.com>
Wed, 11 Oct 2017 19:13:19 +0000
(12:13 -0700)
committer
Jason Ekstrand
<jason.ekstrand@intel.com>
Fri, 13 Oct 2017 04:47:06 +0000
(21:47 -0700)
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/intel/vulkan/anv_private.h
patch
|
blob
|
history
diff --git
a/src/intel/vulkan/anv_private.h
b/src/intel/vulkan/anv_private.h
index 00264af8f2934054298827e243bdf6a230f2909e..e8a845f7229c7ab8cb231f4c11b5b48fae8ff5e2 100644
(file)
--- a/
src/intel/vulkan/anv_private.h
+++ b/
src/intel/vulkan/anv_private.h
@@
-438,9
+438,11
@@
_anv_multialloc_add(struct anv_multialloc *ma,
ma->ptrs[ma->ptr_count++] = ptr;
}
+#define anv_multialloc_add_size(_ma, _ptr, _size) \
+ _anv_multialloc_add((_ma), (void **)(_ptr), (_size), __alignof__(**(_ptr)))
+
#define anv_multialloc_add(_ma, _ptr, _count) \
- _anv_multialloc_add((_ma), (void **)(_ptr), \
- (_count) * sizeof(**(_ptr)), __alignof__(**(_ptr)))
+ anv_multialloc_add_size(_ma, _ptr, (_count) * sizeof(**(_ptr)));
__attribute__((always_inline))
static inline void *