From 17edcc1455855055b8aa5b898aca86f94d35d9d5 Mon Sep 17 00:00:00 2001 From: scottmarsland Date: Thu, 1 Jun 2023 08:30:44 +0100 Subject: icd: Add vkGetRenderAreaGranularity Add implementation for vkGetRenderAreaGranularity. --- icd/generated/mock_icd.cpp | 3 ++- scripts/mock_icd_generator.py | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/icd/generated/mock_icd.cpp b/icd/generated/mock_icd.cpp index 7d1a90f2..0f533c43 100644 --- a/icd/generated/mock_icd.cpp +++ b/icd/generated/mock_icd.cpp @@ -1279,7 +1279,8 @@ static VKAPI_ATTR void VKAPI_CALL GetRenderAreaGranularity( VkRenderPass renderPass, VkExtent2D* pGranularity) { -//Not a CREATE or DESTROY function + pGranularity->width = 1; + pGranularity->height = 1; } static VKAPI_ATTR VkResult VKAPI_CALL CreateCommandPool( diff --git a/scripts/mock_icd_generator.py b/scripts/mock_icd_generator.py index c91c4704..c6c53ba5 100644 --- a/scripts/mock_icd_generator.py +++ b/scripts/mock_icd_generator.py @@ -1390,6 +1390,10 @@ CUSTOM_C_INTERCEPTS = { 'vkGetDescriptorSetLayoutSupportKHR':''' GetDescriptorSetLayoutSupport(device, pCreateInfo, pSupport); ''', +'vkGetRenderAreaGranularity': ''' + pGranularity->width = 1; + pGranularity->height = 1; +''', } # MockICDGeneratorOptions - subclass of GeneratorOptions. -- cgit v1.2.3