lavapipe: GetRenderingAreaGranularityKHR
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 9 Aug 2023 19:25:39 +0000 (15:25 -0400)
committerMarge Bot <emma+marge@anholt.net>
Thu, 10 Aug 2023 01:56:03 +0000 (01:56 +0000)
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24589>

src/gallium/frontends/lavapipe/lvp_device.c

index 2bb5c71..37b525a 100644 (file)
@@ -2703,3 +2703,12 @@ VKAPI_ATTR void VKAPI_CALL lvp_SetDeviceMemoryPriorityEXT(
    LVP_FROM_HANDLE(lvp_device_memory, mem, _memory);
    set_mem_priority(mem, get_mem_priority(priority));
 }
+
+VKAPI_ATTR void VKAPI_CALL lvp_GetRenderingAreaGranularityKHR(
+    VkDevice                                    device,
+    const VkRenderingAreaInfoKHR*               pRenderingAreaInfo,
+    VkExtent2D*                                 pGranularity)
+{
+   VkExtent2D tile_size = {64, 64};
+   *pGranularity = tile_size;
+}