skia2/tests/sksl
John Stiles 1b27c3d7a3 Check array bounds when a constant array index is used.
This sort of error would be detected by most backend compilers. This
case was also detected by the bytecode generator. It's easy for us to do
a similar check during SkSL IR generation and report the error sooner.

Also, `convertIndex` had migrated a few hundred lines away from
`convertIndexExpression`, so I moved it back to live next to its parent.

Change-Id: I715d3abf42581782b55ba60df30d0296355667d4
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/341377
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
2020-12-07 18:17:30 +00:00
..
blend Fix SPIR-V and Metal support for enum types. 2020-11-30 18:05:48 +00:00
errors Check array bounds when a constant array index is used. 2020-12-07 18:17:30 +00:00
fp Reland "Remove inliner from IR generation stage." 2020-11-20 18:44:07 +00:00
glsl Add golden outputs for the Metal backend. 2020-09-25 17:46:43 +00:00
inliner Add global struct definitions to SkSL. 2020-11-30 15:26:14 +00:00
metal Detect cases in Metal where out params are swizzled. 2020-12-07 17:12:09 +00:00
shared Detect cases in Metal where out params are swizzled. 2020-12-07 17:12:09 +00:00
spirv Disallow global variables containing arrays of opaque types. 2020-12-01 20:04:14 +00:00
workarounds Avoid inlining functions that are called repeatedly. 2020-11-23 21:51:43 +00:00