forked from microsoft/DirectXShaderCompiler
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fold bitcast-to-base into GEP in MergeGepUse, plus refactor and resou…
…rce fixes (microsoft#3801) * Fold bitcast-to-base into GEP in MergeGepUse, plus refactor - Fixes case where bitcast isn't eliminated under -Od. - Fix issue with constant GEP path that was unintentionally using GEP from failed prior branch. - Change to worklist pattern, which simplifies things. - One case wasn't handled, which was going to complicate code: GEP -> bitcast -> GEP would combine bitcast -> GEP, but not combine outer GEP with the new one. - Add dxilutil::TryReplaceBaseCastWithGep that simply replaces if it matches. * Fix cbuffer layouts when resources are in structs - keep track of resources in type annotation information - fix cbuffer packing locations for things around resources - when translating struct for legacy: - remove resource fields from struct types - properly replace HLSL type - remove unused structs and annotations - don't produce type annotations for silly things - fix other random bugs found along the way * Fix ValidateVersionNotAllowed test issue with external validator It turns out the test wasn't correct in assuming dxil version reported was the one it should expect to be supported by the validator, since that represents the compiler version. The validator version constrains the dxil version supported by the validator, not the compiler version. See comments in the test for details. * Fix error reporting in ValidationTest::RewriteAssemblyToText * Fix tests for translated structs and hostlayout name change.
- Loading branch information
Showing
21 changed files
with
592 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.