aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorscottmarsland <scottmarsland@users.noreply.github.com>2023-06-01 08:30:44 +0100
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>2023-06-15 12:07:16 -0600
commit17edcc1455855055b8aa5b898aca86f94d35d9d5 (patch)
tree9c3c555124ee997402d533e48d8a250cb5b2d947
parent885c3c6f06ec472edeac8eed5d57aa9b453ae2eb (diff)
downloadusermoji-17edcc1455855055b8aa5b898aca86f94d35d9d5.tar.xz
icd: Add vkGetRenderAreaGranularity
Add implementation for vkGetRenderAreaGranularity.
-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.