diff options
| author | spencer-lunarg <spencer@lunarg.com> | 2023-09-12 16:46:58 +0900 |
|---|---|---|
| committer | Spencer Fricke <115671160+spencer-lunarg@users.noreply.github.com> | 2023-09-12 22:23:55 +0900 |
| commit | d3c1c1ade0488aca289b34157ce38e3f359d2f4c (patch) | |
| tree | 54a34dbd094623517895f1a4aead0000fd21add5 /scripts | |
| parent | e50622314dfc8efa00e2e5f824a63464f1a94665 (diff) | |
| download | usermoji-d3c1c1ade0488aca289b34157ce38e3f359d2f4c.tar.xz | |
icd: Add second VkCooperativeMatrixPropertiesKHR field
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/mock_icd_generator.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/mock_icd_generator.py b/scripts/mock_icd_generator.py index ce1e3135..6eda0e2e 100644 --- a/scripts/mock_icd_generator.py +++ b/scripts/mock_icd_generator.py @@ -968,7 +968,7 @@ CUSTOM_C_INTERCEPTS = { ''', 'vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR': ''' if (!pProperties) { - *pPropertyCount = 1; + *pPropertyCount = 2; } else { // arbitrary pProperties[0].MSize = 16; @@ -979,7 +979,10 @@ CUSTOM_C_INTERCEPTS = { pProperties[0].CType = VK_COMPONENT_TYPE_UINT32_KHR; pProperties[0].ResultType = VK_COMPONENT_TYPE_UINT32_KHR; pProperties[0].saturatingAccumulation = VK_FALSE; - pProperties[0].scope = VK_SCOPE_DEVICE_KHR; + pProperties[0].scope = VK_SCOPE_SUBGROUP_KHR; + + pProperties[1] = pProperties[0]; + pProperties[1].scope = VK_SCOPE_DEVICE_KHR; } return VK_SUCCESS; ''', |
