d77dda5bd5
The inliner contained a type error when attempting to inline a function that takes an array as input. The scratch copy of the array was created as `float[123] var;` instead of `float var[123];`. This led to an assertion in VarDeclaration::Make. Change-Id: I5128fe71462bb59a015a7b4e59c1a74800828b16 Bug: oss-fuzz:37466 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/441576 Commit-Queue: John Stiles <johnstiles@google.com> Commit-Queue: Ethan Nicholas <ethannicholas@google.com> Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
17 lines
401 B
Metal
17 lines
401 B
Metal
#include <metal_stdlib>
|
|
#include <simd/simd.h>
|
|
using namespace metal;
|
|
struct Inputs {
|
|
};
|
|
struct Outputs {
|
|
float4 sk_FragColor [[color(0)]];
|
|
};
|
|
fragment Outputs fragmentMain(Inputs _in [[stage_in]], bool _frontFacing [[front_facing]], float4 _fragCoord [[position]]) {
|
|
Outputs _out;
|
|
(void)_out;
|
|
array<float, 2> y;
|
|
array<float, 2> _0_v = y;
|
|
_0_v[0] = _0_v[1];
|
|
return _out;
|
|
}
|