You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Addresses 3 SPIRV mesh shader write bugs as outlined in #9033.
This PR conflicts with #8057, so I will need to update it after 8057 is accepted.
I'm also interested in #8982. I trimmed a lesser solution from this PR, but I'd need 8982 before proceeding with several more mesh shader PR's that I'd like to open. They depend on these 3, so for now I'll create issues. Diego Novillo (@dnovillo)
setFloat(vertices[0].position.y.x) is a valid scalar swizzle, but the new argument handling rejects it. Condensing .x stops at the scalar-to-float1 splat; removing that splat exposes .y, which collectMSOutDest cannot collect. Repeat swizzle normalization after removing scalar splats so the inner component is preserved, and add this call to the regression test.
Parenthesized mesh output arguments are incorrectly rejected
tools/clang/lib/SPIRV/SpirvEmitter.cpp:3427
setFloat((vertices[0]).value) is rejected as an unsupported mesh output argument, although it is equivalent to the supported unparenthesized call. isMSOutputAccess unwraps parentheses, but collectArrayStructIndices stops at the ParenExpr beneath the member access and never identifies the output array. Normalize expr with IgnoreParens() at the start of each recursive collection step, and add this spelling to the out-argument regression test.
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Addresses 3 SPIRV mesh shader write bugs as outlined in #9033.
This PR conflicts with #8057, so I will need to update it after 8057 is accepted.
I'm also interested in #8982. I trimmed a lesser solution from this PR, but I'd need 8982 before proceeding with several more mesh shader PR's that I'd like to open. They depend on these 3, so for now I'll create issues. Diego Novillo (@dnovillo)