You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[SPIR-V] vk::SpirvType used as T in vk::RawBuffer APIs causes SIGSEGV #6963
Description
Tried to use a sized inline SpirvType for uint8_t with RawBuffer because I couldn't use my own bda::__ref (inline Spir-V PhysicalStorageBuffer class pointer to type T) because of #6951 not being merged yet fixing the Spir-V Type of Spir-V Type issue.
We need to add special handling for the types in the vulkan name space. An easy solution to fix just this issue is to assume that the type is not an array or struct type that requires layout information. However that will not work for all cases. Some more investigation should be done to check how layout rules can be handled.
Activity
s-perron commentedon Oct 28, 2024
We are hitting an assert:
DirectXShaderCompiler/tools/clang/lib/SPIRV/SpirvEmitter.cpp
Line 7003 in 6a7eae1
The issues is that the vk::SpirvType is a record type, but not a structured type. The type is:
We need to add special handling for the types in the vulkan name space. An easy solution to fix just this issue is to assume that the type is not an array or struct type that requires layout information. However that will not work for all cases. Some more investigation should be done to check how layout rules can be handled.
[SPIRV] Treat vk::Spirv*Type as opaque when reconstructing
[SPIRV] Treat vk::Spirv*Type as opaque when reconstructing (#7454)
Update submodules: DirectX-Headers to 61c77189, SPIRV-Headers to 5c60…
Update submodules: DirectX-Headers to 61c77189, SPIRV-Headers to 5c60…
Update submodules: DirectX-Headers to 61c77189, SPIRV-Headers to fb13…