Enable matrix-negation interpreter test
This was disabled a long time ago, when this was (incorrectly) forbidden by the IR generator, most likely. Change-Id: I14585d249104b263c152fa59cbeba0c4e9a2e074 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/354666 Commit-Queue: Brian Osman <brianosman@google.com> Reviewed-by: John Stiles <johnstiles@google.com>
This commit is contained in:
parent
bfd330d081
commit
035606d291
@ -374,11 +374,9 @@ DEF_TEST(SkSLInterpreterMatrix, r) {
|
||||
for (int i = 0; i < 16; ++i) { expected[i] = 1.0f / (float)(i + 1); }
|
||||
test(r, "float4x4 main(float4x4 m) { return 1.0 / (m + 1); }", in, expected);
|
||||
|
||||
#if 0
|
||||
// Matrix negation - legal in GLSL, not in SkSL?
|
||||
// Matrix negation
|
||||
for (int i = 0; i < 16; ++i) { expected[i] = (float)(-i); }
|
||||
test(r, "float4x4 main(float4x4 m) { return -m; }", in, 16, expected);
|
||||
#endif
|
||||
test(r, "float4x4 main(float4x4 m) { return -m; }", in, expected);
|
||||
|
||||
// M*V, V*M
|
||||
for (int i = 0; i < 3; ++i) {
|
||||
|
Loading…
Reference in New Issue
Block a user