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

[vulkan] Parameter storage buffer alignment can fail validation #8287

Closed
derek-gerstmann opened this issue Jun 12, 2024 · 0 comments · Fixed by #8448
Closed

[vulkan] Parameter storage buffer alignment can fail validation #8287

derek-gerstmann opened this issue Jun 12, 2024 · 0 comments · Fixed by #8448
Assignees

Comments

@derek-gerstmann
Copy link
Contributor

As discovered on linux-worker-1 after we updated the Vulkan SDK to v1.3.283 running on an NVIDIA RTX 3070 w/driver 535.161.8.0:

bilateral_grid_process: Structure id 712 decorated as BufferBlock for variable in Uniform storage class must follow relaxed storage buffer layout rules: member 0 contains an array with stride 4 not satisfying alignment to 8

Other apps seem to fail with similar validation failures.

I'm not entirely sure how to handle alignment offsets within the storage buffer used to pass the parameters. We assume they're all packed together, which apparently isn't a valid assumption. So, we'll likely have to pad the buffer, and copy them into offsets that conform to the alignment.

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 a pull request may close this issue.

1 participant