b6f91bc023
We had all the moving parts in place, but had neglected to check `simplify_constant_equality` for structs. It worked for structs that boiled down to the same expression tree, but not for mismatched structs. Comparison of known structs should be allowed in a constant-expression. Change-Id: I3a52abf4530d1fe25d17eb482c1e29b5b8e03cf6 Bug: skia:13387 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/547444 Auto-Submit: John Stiles <johnstiles@google.com> Commit-Queue: Brian Osman <brianosman@google.com> Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: John Stiles <johnstiles@google.com> |
||
---|---|---|
.. | ||
ArrayFolding.glsl | ||
ArraySizeFolding.glsl | ||
AssignmentOps.glsl | ||
BoolFolding.glsl | ||
CastFolding.glsl | ||
FloatFolding.glsl | ||
IntFoldingES2.glsl | ||
IntFoldingES3.glsl | ||
MatrixFoldingES2.glsl | ||
MatrixFoldingES3.glsl | ||
Negation.glsl | ||
PreserveSideEffects.glsl | ||
SelfAssignment.glsl | ||
ShortCircuitBoolFolding.glsl | ||
StructFieldFolding.glsl | ||
StructFieldNoFolding.glsl | ||
SwitchCaseFolding.glsl | ||
SwizzleFolding.glsl | ||
TernaryFolding.glsl | ||
VectorScalarFolding.glsl | ||
VectorVectorFolding.glsl |