DirectXShaderCompiler/lib
Nathan Gauër 6d62e57524
Fix Layer & ViewportIndex ext in 1.2+ (#4597)
* 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>
2022-09-15 21:17:30 +02:00
..
Analysis Taught DxilValueCache to handle complex switch statements. (#4403) 2022-04-21 11:53:45 -07:00
AsmParser Revert license text in banner comments to original llvm verbage (#33) 2017-01-24 17:54:00 -08:00
Bitcode Change getPassName return type to StringRef. (#4247) 2022-02-10 14:14:43 -08:00
CodeGen Change getPassName return type to StringRef. (#4247) 2022-02-10 14:14:43 -08:00
DXIL Initialize all DxilModule members (#4617) 2022-08-25 19:02:10 -04:00
DebugInfo Revert license text in banner comments to original llvm verbage (#33) 2017-01-24 17:54:00 -08:00
DxcBindingTable Added -binding-table-define (#4044) 2021-11-01 18:46:13 -07:00
DxcSupport Change /P to match cl.exe /P behavior. (#4624) 2022-08-31 22:07:30 -04:00
DxilContainer Dedup semantic names in IO signature parts for valver 1.7 (#4406) 2022-04-21 15:02:36 -07:00
DxilDia Weirdness with common subroutines for exported functions in libs (#4555) 2022-07-14 15:10:52 -07:00
DxilPIXPasses build: fix include in header files. (#4652) 2022-09-15 16:00:29 +02:00
DxilRootSignature build: fix include in header files. (#4652) 2022-09-15 16:00:29 +02:00
DxrFallback Fix the link issue in readme.md (#3149) 2020-09-22 13:02:56 -07:00
ExecutionEngine Rename 'module' to 'hModule' for C++20 compat (#2667) 2020-03-01 18:12:31 -08:00
Fuzzer Clean up mistakes made when fixing copyright banners. 2017-01-25 14:36:50 -08:00
HLSL build: fix include in header files. (#4652) 2022-09-15 16:00:29 +02:00
IR Change getPassName return type to StringRef. (#4247) 2022-02-10 14:14:43 -08:00
IRReader Revert license text in banner comments to original llvm verbage (#33) 2017-01-24 17:54:00 -08:00
LTO Revert license text in banner comments to original llvm verbage (#33) 2017-01-24 17:54:00 -08:00
Linker [linux-port] Minor changes towards cross-platform compilation. (#1352) 2018-06-19 10:36:53 -04:00
MC Fix build failure with undefined variable (#3647) 2021-03-31 09:54:00 -04:00
MSSupport [linux-port] Enhance FS interface support (#1420) 2018-07-17 12:50:42 -04:00
Miniz Removed source from debug module. Support slim PDB. (#3348) 2021-01-20 12:25:28 -08:00
Object Revert license text in banner comments to original llvm verbage (#33) 2017-01-24 17:54:00 -08:00
Option Fixed a bug in pdb where -W[...] type options are split into two tokens (#3646) 2021-03-30 14:26:11 -07:00
PassPrinters Change getPassName return type to StringRef. (#4247) 2022-02-10 14:14:43 -08:00
Passes Revert license text in banner comments to original llvm verbage (#33) 2017-01-24 17:54:00 -08:00
ProfileData [linux-port] Evade unused in LLVM code (#1327) 2018-06-05 14:07:51 -04:00
Support Fix Layer & ViewportIndex ext in 1.2+ (#4597) 2022-09-15 21:17:30 +02:00
TableGen Revert license text in banner comments to original llvm verbage (#33) 2017-01-24 17:54:00 -08:00
Target [linux-port] Fix warnings from lambda functions (#1320) 2018-05-31 13:39:26 -04:00
Transforms build: fix include in header files. (#4652) 2022-09-15 16:00:29 +02:00
CMakeLists.txt Remove LTO and ArgumentPromotion passes (#4078) 2021-11-12 18:46:58 -08:00
LLVMBuild.txt Remove LTO and ArgumentPromotion passes (#4078) 2021-11-12 18:46:58 -08:00