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

fix null handling of array fields in autogen properties #2518

Merged
merged 5 commits into from
Apr 19, 2024
Merged

fix null handling of array fields in autogen properties #2518

merged 5 commits into from
Apr 19, 2024

Conversation

0xcaff
Copy link
Contributor

@0xcaff 0xcaff commented Apr 18, 2024

Overview

Upon closer inspection of VkPhysicalDeviceHostImageCopyPropertiesEXT it appears the nullability of the pCopySrcLayouts and pCopyDstLayouts was not handled correctly.

These changes ensure that if an array field has a null value, its value is set to None instead of trying to dereference the pointer. It does not yet do one request for the size and a second for the values as outlined in the docs. This will be done in a follow up PR.

Original Bug Report: https://discord.com/channels/937149253296476201/937153798982479912/1230477146062061629

vulkaninfo from crashing device
vulkaninfo.txt

Changelog

### Bugs fixed
- fix null handling of array fields in autogen properties

@0xcaff 0xcaff changed the title add UnalignedSlice fix null handling of array fields in properties Apr 18, 2024
@0xcaff 0xcaff changed the title fix null handling of array fields in properties fix null handling of array fields in autogen properties Apr 18, 2024
@0xcaff 0xcaff marked this pull request as ready for review April 18, 2024 22:00
@Rua Rua merged commit 3fb4a30 into vulkano-rs:master Apr 19, 2024
5 checks passed
@0xcaff 0xcaff deleted the martin/fix-unaligned-pointer-access branch April 19, 2024 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants