Граф коммитов

1185 Коммитов

Автор SHA1 Сообщение Дата
Xiang Li 9ed2eec376 Don't generate decl for effect object to avoid codegen crash. (#94)
* Don't generate decl for effect object to avoid codegen crash.

* Add technique11 and rewriter test for effect.

* Skip the initializer of effect object.
2017-02-16 17:19:24 -08:00
Young Kim df1fe2ba41 Fix build fail for x86 (#96)
- resolving signed/unsigned comparison issue
2017-02-16 15:22:07 -08:00
Young Kim f7c215bc2b Enable Upper Case for Registers (#95)
- enable upper case for valid registers ('B', 'C', 'I', 'S', 'T', 'U')
- fix VerifyHelper.py to output ast when expected errors are present
- fix buffer view register validation check
2017-02-16 13:35:57 -08:00
Xiang Li 726c754221 Only promote local resource when has store of handle. (#87)
* Only promote local resource when has store of handle.

* Report error when cannot map local resource usage to global resource.

* Promote static resource when optimization is disabled too.

* Take care PHINode on local resource.
2017-02-15 18:16:30 -08:00
Young Kim c6282faa12 Treat half suffixes as floats (#92)
* Treat half suffixes as floats
  treat h/H suffixes as f/F as "half" scalar type is converted to float type.
  This should be changed in the future when we support true half types.
2017-02-15 13:59:24 -08:00
Xiang Li 379e1f339b Only save root signature for entry function. (#86) 2017-02-14 20:13:29 -08:00
Tex Riddell 51898662c9 Close #75 - Pack prefix-stable by default (#90)
* Implement prefix-stable packing and make this the default.
* Add signature packing options -pack_prefix_stable and -pack_optimized.
2017-02-14 18:22:54 -08:00
Tex Riddell e57dcfd53f Merge pull request #93 from tex3d/integration
Merge latest fixes from integration branch.
2017-02-14 17:55:06 -08:00
Xiang Li fa22112d1a Use i32 for GEP index. (#85) 2017-02-14 16:57:33 -08:00
Xiang Li dedba5e584 Take care ParenExpr when get concrete type for literal. (#91) 2017-02-14 16:24:16 -08:00
Xiang Li 553c09c2fc Ignore export instead of report error. (#82) 2017-02-13 11:55:20 -08:00
Marcelo Lopez Ruiz 98f201b5fd Close #54 - hctstart should include python if missing (#84)
python 2.7 is now looked for the same way other dependencies are.

Improves logging as well by providing minimal console output during
build, while providing a file logger with additional details.
2017-02-13 11:47:26 -08:00
Young Kim 6b01781e58 Fix dxc option to supress warnings. (#83)
* Fix dxc option to supress warnings.

 - Modifying option handling to enable no-warnings as expected

* Fix OutputWarnings option to enable by default
2017-02-13 11:45:43 -08:00
Tex Riddell e48f472bc3 Merge remote-tracking branch 'ms/master' into dxil-v1.0 2017-02-10 15:08:07 -08:00
Tex Riddell 7c2e8223ee Merge branch 'fix-master-merge' into dxil-v1.0 2017-02-10 15:07:17 -08:00
Tex Riddell f97b206404 Merge pull request #13 from python3kgae/validation_fix
Validation fix
2017-02-10 12:30:27 -08:00
Tex Riddell 1d67cd2ebe Fix build break from automatic merge. 2017-02-10 12:16:46 -08:00
Tex Riddell 4d6c990159 Merge pull request #77 from tex3d/vstools-x64
Use amd64 VS build tools instead of default x86 tools
2017-02-10 12:14:43 -08:00
Xiang Li c1e67e9a93 Enable SampleCmpLevelZero for all shader profiles. 2017-02-10 12:14:36 -08:00
Xiang Li 3f405a564f Use i32 to fake 64bit for buffer load/store. (#63) 2017-02-10 12:14:29 -08:00
Tex Riddell 588da18897 Merge pull request #80 from python3kgae/local4
Enable SampleCmpLevelZero for all shader profiles.
2017-02-10 12:11:06 -08:00
Xiang Li 9ea3e5f44b Enable SampleCmpLevelZero for all shader profiles. 2017-02-10 11:43:30 -08:00
Tex Riddell bbc14d28f7 Use amd64 VS build tools instead of default x86 tools
- avoids running out of memory during incremental linking
2017-02-09 19:38:02 -08:00
Tex Riddell b8594d7ddc Fix build break from automatic merge. 2017-02-09 19:03:47 -08:00
Tex Riddell a6433c18f8 Merge pull request #76 from tex3d/integration
Integrate validation, dxc option, and other changes
2017-02-09 17:33:45 -08:00
Tex Riddell 57040f64d2 Merge pull request #7 from tex3d/val
Integrate validation and dxc option updates
2017-02-08 17:05:54 -08:00
Chas. Boyd 0eaca4e379 Update README.md
Added notice of nVidia driver availability.
2017-02-08 14:02:07 -08:00
yurido1 459fa804b8 Fix includes for no-STL version. (#12) 2017-02-08 13:24:30 -08:00
yurido1 f9fd30a62b Added verification of root signature against shader resources. (#11)
Fixed root signature range containment bug.
Added verification of root signature against shader resources.
2017-02-08 11:51:15 -08:00
Xiang Li cb0ba446c1 Fix validation bugs. (#10) 2017-02-07 22:18:10 -08:00
Xiang Li 4fcc616d9b Keep rowIdx for array of gs input. (#72) 2017-02-07 17:47:05 -08:00
Young Kim b238ed36c3 Dxc fix verifyrootsignature option (#6)
* Dxc fix verifyrootsignature option

- distinguish stream type (stdout, stderr) when printing to console
- verifyrootsignature option returns correct errorlevel depending on its result
- adding more test cases to hcttest for verifyrootsignature option
- enable verifyrootsignature option when dxil.dll not present

* Fixes from review

- Change parameters for writing to consoles from File* to DWORD
- Change comment when dxil.dll does not exist
2017-02-07 17:02:14 -08:00
Xiang Li 2032a2c9a5 Update attribute for intrinsic. (#8) 2017-02-07 17:00:41 -08:00
yurido1 edfe849282 Changed intrinsic opcode attributes for DXIL. (#9) 2017-02-07 16:59:38 -08:00
Tex Riddell 627763e563 Add tests and fix bugs with container and root signature validation (#5)
* Fix ValidateDxilBitcode PSV generation for Root Signature validation.
- also fix validation for empty patch constant signature.
* Test container and root signature validation.
* Fix DXASSERT when PC in/out patch sig mismatch HS.
2017-02-07 16:57:07 -08:00
Xiang Li fcba1d9c6b Support more than 1 primitive inputs for GS. (#71) 2017-02-07 13:59:13 -08:00
Tex Riddell f6d4581fc6 Merge branch 'integration' into val 2017-02-07 13:03:53 -08:00
Tex Riddell 74049c5852 Integrate: Fix to CATCH_CPP_ASSIGN_HRESULT and validation of named metadata 2017-02-07 13:02:37 -08:00
Xiang Li 5091d4f189 Add default for switch to avoid warnings. (#70) 2017-02-07 11:34:34 -08:00
Tex Riddell a3e0b5828d ContainerAssembler and Validation fixes.
- zero DxilProgramSignatureElement to prevent garbage in signature
- rewrite bitcode when stripping root signature
- use correct part when reading debug module in ValidateDxilContainer
- report general error message when signature validation fails
2017-02-03 19:04:02 -08:00
Young Kim 3a24e158ef Fixing Dxc Options (#4)
* Clean up dxc options:

setrootsignature, setprivate :
 Allow replacing existing rootsignature or private data and make a new container with new parts
(e.g dxc /dumpbin private.dxil /setprivate private.data /Fo private.new.dxil)

extractrootsignature:
Make it back compatible with fxc by returning dxil container with RTS0 part only and having the user to provide /Fo option.

Other Options:
For unimplemented options that was from fxc, ignore those options and proceed given operation.
For unimplemented options that was not from fxc, remove them for now.
Add more test cases for dxc command line operations.
Fix ISenseOption flag to have valid HLSL version check for dxc (disable 2015)

* Fix Preprocess option for dxc
Fix hcttestcmd for testing invalid rootsignature
2017-02-03 15:49:45 -08:00
Xiang Li 7b998429f3 Disable race condition check (#3)
* Write thread group uniform value will not cause race condition.

* Only report race condition when know the data is not uniform.

* Disable race condition check.
2017-02-03 15:37:57 -08:00
Tex Riddell 3e0e6e5e23 Fix break in HLModule. 2017-02-03 15:04:17 -08:00
Tex Riddell 9fe61f42a2 Remove old kDxilRootSignatureTag. 2017-02-03 14:45:19 -08:00
Tex Riddell 0647154af0 Move Signature metadata to named node and some other cleanup. 2017-02-03 14:28:21 -08:00
Tex Riddell 2444ae3b10 Add DxcValidatorFlags_RootSignatureOnly. 2017-02-03 12:28:57 -08:00
Tex Riddell 4fbd33a449 Merge pull request #60 from tex3d/integration
Merge opcode and dxc options changes to dxil-v1.0
2017-02-03 10:58:57 -08:00
Xiang Li 4072c971dd Don't need store the return val after call. (#64) 2017-02-03 10:37:21 -08:00
Tex Riddell 7c2c2c5d54 More RootSignature validation fixes.
- Implement RootSignatureHandle::Deserialize()
- Fix/clean up validation usage
2017-02-03 00:08:08 -08:00
Tex Riddell 6de3365aa2 Fix RootSignature Validation bugs. 2017-02-02 20:54:35 -08:00