- upconvert to 6.0 in dxc.exe and d3dcompiler_dxc_bridge
- restrict to 6.0 in dxcompiler API
- restrict to 6.0 in DxilValidator
- allow loading of SM < 6.0 for now on DXIL 0.7
- Add DxilSignatureAllocator for signature packing
- Fix signature validation. Add more validation.
- Fix and add validation tests.
- Fix codegen for inout params with SV like SV_Coverage
- fix m_SemanticStartIndex on DxilSignatureElement::Initialize
- fix DxilSignatureElement::GetColsAsMask for start col == 2
- Add diags for signature allocation failures
- Use Regex in ValidationTest
This commit adds initial support for extension intrinsics and defines, including:
-Support for recognizing hlsl extensions as new intrinsic functions.
-Support for requesting lowering of extensions.
-Support for preserving semantic defines.
-Support for validating semantic defines.
This commit adds support for hlsl extensions in the form of additional
intrisic functions and semantic defines.
We now allow a dxcompiler instance to register that it can handle
additional intrinsic functions beyond the standard hlsl intrinsics. These
new intrinsics are called extensions. For each extension, the compiler
supplies a lowering strategy that is used by the dxcompiler to translate
from the source level intrinsic to a high-level dxil intrinsic.
We initially support the two lowering strategies: replicate and pack.
The replicate strategy will scalarize the vector elements in the call
and replicate the function call once for each element in the vector.
The pack strategy changes the vector arguments into literal struct
arguments.
We also now include support for "semantic defines". A semantic define is
a source level define whose value is preserved in the final dxil as
metatdata. The source level define can come as either a #define in
the hlsl source or a /D define from the command line.
We provide a hook to validate that a semantic define has a legal value
(for example to ensure that the value is an integer). Validation failures
can produce warnings and errors that will be emitted through the standard
clang diagnostic mechanism.
This code was originally written by marcelolr and modified by dmpots to
support packed lowering of intriniscs and validation of semantic defines.
- Pass input stream for hlsl intrinsics function instead of hard-coding
the file location.
- Keep enum namespace as a property of hlsl_db
- Compatibility changes for python3.
* Fix#6: Produce dxil container output when validation is disabled.
Make sure that we wrap the llvm bitcode module in a dxil container
even when validation is disabled.
Note that we still produce a raw bitcode module output when only a
high- level compilation is requested by /fcgl.
When the llvm module is serialized to a dxil container we strip the
debug info. When using the internal validator we need to make a copy of
the llvm module before serializing so that debug info is present for
validation error messages.
Added a test to check that validation error messages have valid debug
info.
Improve new developer experience
Update README and hctstart.cmd tools to help new developers.
Update README
* Add instructions on how to setup the build environment
from the command line.
* Add note to install common tools for c++ to get the atl headers.
* Change cmake download to point to cmake 3.4.3. Version 3.4 did
not work for me (it could not find the Visual Studio compiler tools).
Modify hctstart.cmd
* Explicitly check for the d3d12.h header from the 10240 windows kit.
Without this early check we get a build error much later.
* Check for cmake version 3.4.3 and warn if not found.
Update gitignore for visual studio code temporary files.