vulkan/render_pass: add common vkGetRenderingAreaGranularityKHR()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 7 Aug 2023 06:42:53 +0000 (08:42 +0200)
committerMarge Bot <emma+marge@anholt.net>
Thu, 10 Aug 2023 03:05:02 +0000 (03:05 +0000)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24392>

src/vulkan/runtime/vk_render_pass.c

index f096dfd..bc1ae99 100644 (file)
@@ -1059,6 +1059,14 @@ vk_common_GetRenderAreaGranularity(VkDevice device,
                                    VkRenderPass renderPass,
                                    VkExtent2D *pGranularity)
 {
+   *pGranularity = (VkExtent2D){1, 1};
+}
+
+VKAPI_ATTR void VKAPI_CALL
+vk_common_GetRenderingAreaGranularityKHR(
+   VkDevice _device, const VkRenderingAreaInfoKHR *pRenderingAreaInfo,
+   VkExtent2D *pGranularity)
+{
    *pGranularity = (VkExtent2D) { 1, 1 };
 }