Skip to content
New issue

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

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

Already on GitHub? # to your account

False positive validation warnings about SPIR-V layout #35

Open
jkunstwald opened this issue Jun 16, 2020 · 0 comments
Open

False positive validation warnings about SPIR-V layout #35

jkunstwald opened this issue Jun 16, 2020 · 0 comments
Labels
vulkan Related to the Vulkan backend

Comments

@jkunstwald
Copy link
Collaborator

jkunstwald commented Jun 16, 2020

If using shaders compiled with the -fvk-use-dx-layout DXC flag, validation layers warn about incorrect stride, ie. if using an array of float3 which is no longer padded to 16 bytes. This remains the case with the enabled VK_KHR_relaxed_block_layout extension (which shouldn't be necessary as it is core in Vk 1.1)

Related (closed) issues:
KhronosGroup/Vulkan-ValidationLayers#275
microsoft/DirectXShaderCompiler#1498
Error might be on our side, but consequences are just warnings and possibly disabled GBV instrumentation.

@jkunstwald jkunstwald added the vulkan Related to the Vulkan backend label Jun 16, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
vulkan Related to the Vulkan backend
Projects
None yet
Development

No branches or pull requests

1 participant