[Mesa-dev] [PATCH 0/3] anv: Add an anv_outarray_append() macro
Chad Versace
chadversary at chromium.org
Mon Mar 6 18:25:50 UTC 2017
The macro anv_outarray_append() deduplicates a lot of nit-picky
boilerplate code. It appends to a Vulkan output array, handling null
pointers and overflow correctly. (A Vulkan output array, as I'm using
the term, is one that follows the convention of the parameters to
vkGetPhysicalDeviceQueueFamilyProperties()).
This series prepares for VK_MESAX_external_image_dma_buf, which
introduces three new output arrays for DRM format modifiers. I separated
these prep patches from the VK_MESAX_external_image_dma_buf patches to
make review less burdensome, and to begin upstreaming pathes asap.
This patch series lives at:
git://git.kiwitree.net/~chadv/mesa
refs/tags/chadv/review/anv-outarray-v01
gitweb: http://git.kiwitree.net/cgit/~chadv/mesa/log/?h=chadv/review/anv-outarray-v01
Chad Versace (3):
anv: Add anv_outarray
anv: Use anv_outarray in vkEnumeratePhysicalDevices
anv: Use anv_outarray in vkGetPhysicalDeviceQueueFamilyProperties
src/intel/vulkan/anv_device.c | 105 +++++++------------------------
src/intel/vulkan/anv_private.h | 140 +++++++++++++++++++++++++++++++++++++++++
2 files changed, 164 insertions(+), 81 deletions(-)
--
2.12.0
More information about the mesa-dev
mailing list