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 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev