vkGetRenderAreaGranularity implementation
There's no reason to have any limitation on granularity in
SwiftShader, so the granularity is always 1 pixel.
Passes all tests in:
dEQP-VK.api.granularity
Bug b/119620965
Change-Id: Ie2f09737c0054da1b6806b9572e515446a8b1263
Reviewed-on: https://swiftshader-review.googlesource.com/c/24890
Tested-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
diff --git a/src/Vulkan/VkRenderPass.cpp b/src/Vulkan/VkRenderPass.cpp
index f34b1e9..108e797 100644
--- a/src/Vulkan/VkRenderPass.cpp
+++ b/src/Vulkan/VkRenderPass.cpp
@@ -133,6 +133,12 @@
return attachmentSize + subpassesSize + dependenciesSize;
}
+void RenderPass::getRenderAreaGranularity(VkExtent2D* pGranularity) const
+{
+ pGranularity->width = 1;
+ pGranularity->height = 1;
+}
+
void RenderPass::begin()
{
currentSubpass = 0;