* llvm: fix UB when building with sized-deletion ON
This issue can show up with compiling DXC with libasan.
It has been fixed upstream:
21c303e9ea
Signed-off-by: Nathan Gauër <brioche@google.com>
* [spirv] specify correct SPV env for disassembling
When DXC finishes generating SPIR-V, the binary is disassembled and
printed to stdout.
The target env was hardcoded to Vulkan1.1, meaning disassembly would
fail if we tried disassembling Vulkan1.2+ SPIR-V.
Fixes#4067
Signed-off-by: Nathan Gauër <brioche@google.com>
* [spirv] Fix Layer & ViewportIndex ext in 1.2+
Back in Vulkan1.1, ShaderViewportIndexLayer was required to use
SV_RenderTargetArrayIndex. This was promoted in VK1.2:
https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VK_EXT_shader_viewport_index_layer.html
Sadly, DXC didn't checked the target SPV environment, and always
requested the extension. This commit addresses this.
Fixes#4067
Signed-off-by: Nathan Gauër <brioche@google.com>
Signed-off-by: Nathan Gauër <brioche@google.com>