Henri Verbeet pushed to branch master at wine / vkd3d
Commits: 2903831f by Giovanni Mascellani at 2025-11-12T15:19:33+01:00 tests/hlsl: Test using an SRV in combination with a CBV larger than the declared uniforms.
This appears to be valid on native (no validation message is raised) but is not properly handled by vkd3d.
- - - - - 7f377879 by Giovanni Mascellani at 2025-11-12T15:24:30+01:00 vkd3d-shader/spirv: Clamp push constant CBV sizes to those of the push constant ranges backing them.
Otherwise invalid SPIR-V may be generated, because the CBV field in "push_cb_struct" may end up overlapping with a subsequent one.
- - - - -
3 changed files:
- libs/vkd3d-shader/spirv.c - libs/vkd3d-shader/vkd3d_shader_private.h - tests/hlsl/descriptors.shader_test
View it on GitLab: https://gitlab.winehq.org/wine/vkd3d/-/compare/4039168bcabe49375109baf7ac4aa...