[Mesa-dev] [PATCH 0/3] anv: Add an vk_outarray_append() macro (v2)

Chad Versace chadversary at chromium.org
Mon Mar 13 21:23:45 UTC 2017


The macro vk_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-v02
    gitweb: http://git.kiwitree.net/cgit/~chadv/mesa/log/?h=chadv/review/anv-outarray-v02

v2:
  - Rename anv_outarray -> vk_outarray and move it to
    util/vk_util.h.  For Jason.

Chad Versace (3):
  util/vulkan: Add vk_outarray
  anv: Use vk_outarray in vkEnumeratePhysicalDevices
  anv: Use vk_outarray in vkGetPhysicalDeviceQueueFamilyProperties

 src/intel/vulkan/anv_device.c | 105 ++++++++-----------------------
 src/util/vk_util.h            | 140 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 164 insertions(+), 81 deletions(-)

-- 
2.12.0



More information about the mesa-dev mailing list