From 4fd12a18dbc76fb9212f487885b1d3e0d62548f4 Mon Sep 17 00:00:00 2001 From: Connor Abbott Date: Fri, 1 Sep 2023 15:32:40 +0200 Subject: [PATCH] tu: Implement vkGetRenderingAreaGranularityKHR Part-of: --- src/freedreno/vulkan/tu_pass.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/freedreno/vulkan/tu_pass.cc b/src/freedreno/vulkan/tu_pass.cc index d6fa6fa..299495e 100644 --- a/src/freedreno/vulkan/tu_pass.cc +++ b/src/freedreno/vulkan/tu_pass.cc @@ -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) { -- 2.7.4