forked from google/skia
-
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.
Detect invalid layout(push_constant) modifier.
Previously, the frontend would allow this flag combination through. However, the SPIR-V backend asserts when layout(push_constant) is applied to an in-variable or out-variable, or when a binding/set is used. Bug: oss-fuzz:58375 Change-Id: Ibad8879b50818a9ba6953918b85edaa64654e2cc Reviewed-on: https://skia-review.googlesource.com/c/skia/+/683200 Commit-Queue: Arman Uguray <[email protected]> Auto-Submit: John Stiles <[email protected]> Reviewed-by: Arman Uguray <[email protected]>
- Loading branch information
1 parent
1efb703
commit 487475e
Showing
7 changed files
with
25 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
layout (push_constant) in s { int x; }; | ||
|
||
half4 main(float2) { | ||
return half4(0); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
### Compilation failed: | ||
|
||
error: 1: layout qualifier 'push_constant' is not permitted here | ||
layout (push_constant) in s { int x; }; | ||
^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
1 error |