-
Notifications
You must be signed in to change notification settings - Fork 705
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add load for argument matrix subscript lowering (#3065)
Matrix lowering was not handling subscript oeprations when the matrix was a shader input. copying the matrix to a temporary explicitly or implicitly as part of a copy in function call worked around the problem. When the argument copy was eliminated, this problem was exposed. By adding a load for the indicated matrix for a subscript of a shader input matrix, the lowering can procede using the lowered matrix from the load. Additionally, hull shaders with their uninlineable functions were failing to detect the constanthull function as a graphics function so the subscript lowering was being treated as if it were in a library. Even when it got to signature lowering, there was no support for lowering matrix loads. The test for shaderism now tests the function attributes of the module's entry function. The signature lowering for matrix loads is moved into a function that is called by input lowering for both the constant hull and entry functions. Added general tests for matrix subscripts from different memory types as well as specific tests for the argument passing problem in pixel and domain shaders. A more correct way to identify functions that should delay the lowering of their matrix parameters to signature lowering time is to query whether the function has a signature. This covers entry functions for graphics shaders and also constant patch functions. Fixes #2958
- Loading branch information
Showing
8 changed files
with
320 additions
and
91 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.