commit | 43ac7e631561c0f530442743d14eafbf37241248 | [log] [tgz] |
---|---|---|
author | John Stiles <johnstiles@google.com> | Wed Aug 25 12:43:22 2021 -0400 |
committer | SkCQ <skcq-be@skia-corp.google.com.iam.gserviceaccount.com> | Wed Aug 25 17:52:50 2021 +0000 |
tree | 4d16f2ef39ca01c2f9e5e021662e27de80764cae | |
parent | b61014d31064cec1bc1e5d1cf6b05ec4c9a77fd4 [diff] |
Fix parsing error with SPIR-V negating a uint. Our SPIR-V code generator did not implement support for negating a uint. However, this is something that GLSL allows (as does the rest of SkSL). I checked glslang and it uses OpSNegate here. The SPIR-V docs indicate that OpSNegate allows any type of integer, and the validator lets it pass, so we now use OpSNegate here as well. http://screen/33mkq92uxAT5Xu8 http://screen/4YBTh3gCWz8eZx7 http://screen/388HtXyytcN5vLZ Change-Id: I8c142018fd5e162dcd051abe1bc5d69a6e034794 Bug: oss-fuzz:37627 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/441880 Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: Brian Osman <brianosman@google.com> Commit-Queue: John Stiles <johnstiles@google.com> Auto-Submit: John Stiles <johnstiles@google.com>