skia2/tests/sksl
John Stiles 3f37322d71 Fix const function-parameter assertion discovered by fuzzer.
During constant-folding, we baked in an assertion stating that any
const-typed variable reference ought to have an initial value, because
you can't declare a const variable without assigning a value. However,
function parameters are an exception to this rule! They are variable
references and are allowed to be const, but will not have an initial
value. (In this case, `const` just means you can't alter the value.)

In this case, all we needed to do was remove the assertion; we already
treated this case defensively and with the appropriate care.

Change-Id: I61242c6d08c59886c6992898f195771e6334f2b4
Bug: oss-fuzz:37465
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/441239
Commit-Queue: John Stiles <johnstiles@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
2021-08-23 19:28:29 +00:00
..
blend Remove SkBlendMode from SkSL 2021-06-16 21:01:30 +00:00
errors Fix const function-parameter assertion discovered by fuzzer. 2021-08-23 19:28:29 +00:00
folding Fix assertion in constant-folder when using float4(mat2) casts. 2021-08-20 14:04:52 +00:00
glsl When force-high-precision is enabled, change default precision 2021-07-07 19:56:36 +00:00
inliner Remove enum support from SkSL 2021-07-09 14:03:15 +00:00
intrinsics Add trunc/round/roundEven SKSL ES3 public APIs. 2021-08-23 15:44:15 +00:00
metal Enable proper testing of matrix-scalar ops. 2021-05-17 17:36:22 +00:00
runtime Add tests for array assignment with narrowing conversions. 2021-08-11 12:56:40 +00:00
runtime_errors Include non-ES2 numeric types in the root symbol table. 2021-08-17 17:36:43 +00:00
shared Fix const function-parameter assertion discovered by fuzzer. 2021-08-23 19:28:29 +00:00
spirv Improve SPIR-V handling of RTFlip when running the fuzzer. 2021-08-17 22:31:10 +00:00
workarounds Reland "Don't key progams/pipelines on origin."" 2021-07-07 14:50:10 +00:00
README.txt

This directory contains skslc-compiled output from matching source files
in the /resources/sksl/ directory.