nvk: Implement GetRenderingAreaGranularityKHR
authorFaith Ekstrand <faith.ekstrand@collabora.com>
Fri, 4 Aug 2023 15:45:25 +0000 (10:45 -0500)
committerMarge Bot <emma+marge@anholt.net>
Fri, 4 Aug 2023 21:32:07 +0000 (21:32 +0000)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>

src/nouveau/vulkan/nvk_cmd_draw.c

index 8192a5b..3b60b0c 100644 (file)
@@ -507,6 +507,15 @@ nil_to_nv9097_samples_mode(enum nil_sample_layout sample_layout)
    return nil_to_nv9097[sample_layout];
 }
 
+VKAPI_ATTR void VKAPI_CALL
+nvk_GetRenderingAreaGranularityKHR(
+    VkDevice device,
+    const VkRenderingAreaInfoKHR *pRenderingAreaInfo,
+    VkExtent2D *pGranularity)
+{
+   *pGranularity = (VkExtent2D) { .width = 1, .height = 1 };
+}
+
 void
 nvk_CmdBeginRendering(VkCommandBuffer commandBuffer,
                       const VkRenderingInfo *pRenderingInfo)