Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

layer: Fix query of capabilities of aliased extensions #474

Merged
merged 1 commit into from
Aug 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
## [Vulkan Profiles Toolset 1.3.261](https://github.com/KhronosGroup/Vulkan-Profiles/tree/main) - August 2023

### Bugfixes:
- Fix query of capabilities of aliased extensions
- Fix error message typo

## [Vulkan Profiles Toolset 1.3.250](https://github.com/KhronosGroup/Vulkan-Profiles/tree/sdk-1.3.250.0) - June 2023
Expand Down
12 changes: 10 additions & 2 deletions scripts/gen_profiles_layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -3323,8 +3323,16 @@ def generate_fill_case(self, struct):
first = False
else:
gen += ' && '
gen += 'PhysicalDeviceData::HasSimulatedExtension(physicalDeviceData, '
gen += registry.extensions[ext].upperCaseName + '_EXTENSION_NAME'
promotedTo = ext
while promotedTo != None and promotedTo in registry.extensions:
if promotedTo != ext:
gen += ' || '
else:
gen += '('
gen += 'PhysicalDeviceData::HasSimulatedExtension(physicalDeviceData, '
gen += registry.extensions[promotedTo].upperCaseName + '_EXTENSION_NAME'
gen += ')'
promotedTo = registry.extensions[promotedTo].promotedTo
gen += ')'
gen += ') '
elif structure.definedByVersion and (structure.definedByVersion.major != 1 or structure.definedByVersion.minor != 0):
Expand Down