panvk: Non-destructively stub GetRenderAreaGranularity
authorJason Ekstrand <jason.ekstrand@collabora.com>
Fri, 28 Jan 2022 21:04:50 +0000 (15:04 -0600)
committerMarge Bot <emma+marge@anholt.net>
Tue, 8 Mar 2022 17:03:47 +0000 (17:03 +0000)
Don't crash.  Just print a warning and return 1x1.

Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15285>

src/panfrost/vulkan/panvk_pass.c

index 6505647..f197528 100644 (file)
@@ -218,5 +218,6 @@ panvk_GetRenderAreaGranularity(VkDevice _device,
                                VkRenderPass renderPass,
                                VkExtent2D *pGranularity)
 {
-   panvk_stub();
+   /* TODO: Return the actual tile size for the render pass? */
+   *pGranularity = (VkExtent2D) { 1, 1 };
 }