aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--icd/generated/mock_icd.cpp3
-rw-r--r--scripts/mock_icd_generator.py4
2 files changed, 6 insertions, 1 deletions
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.