tu: Implement vkGetRenderingAreaGranularityKHR
authorConnor Abbott <cwabbott0@gmail.com>
Fri, 1 Sep 2023 13:32:40 +0000 (15:32 +0200)
committerMarge Bot <emma+marge@anholt.net>
Wed, 27 Sep 2023 19:07:22 +0000 (19:07 +0000)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25001>

src/freedreno/vulkan/tu_pass.cc

index d6fa6fa..299495e 100644 (file)
@@ -1300,6 +1300,16 @@ tu_GetRenderAreaGranularity(VkDevice _device,
    pGranularity->height = device->physical_device->info->gmem_align_h;
 }
 
+VKAPI_ATTR void VKAPI_CALL
+tu_GetRenderingAreaGranularityKHR(VkDevice _device,
+                                  const VkRenderingAreaInfoKHR *pRenderingAreaInfo,
+                                  VkExtent2D *pGranularity)
+{
+   TU_FROM_HANDLE(tu_device, device, _device);
+   pGranularity->width = device->physical_device->info->gmem_align_w;
+   pGranularity->height = device->physical_device->info->gmem_align_h;
+}
+
 uint32_t
 tu_subpass_get_attachment_to_resolve(const struct tu_subpass *subpass, uint32_t index)
 {