skia2/tests/sksl
John Stiles 3c74a5357a Add GLSL workaround for 4x2 diagonal matrix bug.
GLSL now emits 4x2 diagonal matrices as:
	`(mat4x2(1.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0) * n)`
instead of
	`mat4x2(n)`.

This works around a long-standing GLSL bug in both Mesa and glslang that
affects several drivers:
https://github.com/KhronosGroup/glslang/issues/2645

Change-Id: If529d5cd150ce720f436cb3634a2fd3423919278
Bug: skia:12003
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/410137
Auto-Submit: John Stiles <johnstiles@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
2021-05-18 22:50:19 +00:00
..
blend Revert "Vectorize scalars in SPIR-V using ConstructorSplat." 2021-05-14 14:29:33 +00:00
dslfp Large simplification of the CType mapper logic in SkSL 2021-05-18 21:40:14 +00:00
errors Remove layout(override_coverage) 2021-05-18 19:39:54 +00:00
folding Optimize not() intrinsic. 2021-05-11 14:08:39 +00:00
fp Large simplification of the CType mapper logic in SkSL 2021-05-18 21:40:14 +00:00
glsl Remove specific blend mode layout qualifiers 2021-02-23 15:45:55 +00:00
inliner Evaluate single-argument generic intrinsics at compile time. 2021-05-10 14:50:50 +00:00
intrinsics Revert "Vectorize scalars in SPIR-V using ConstructorSplat." 2021-05-14 14:29:33 +00:00
metal Enable proper testing of matrix-scalar ops. 2021-05-17 17:36:22 +00:00
runtime Optimize compound constructors containing constant vars. 2021-05-05 16:42:56 +00:00
runtime_errors Evaluate single-argument generic intrinsics at compile time. 2021-05-10 14:50:50 +00:00
shared Add GLSL workaround for 4x2 diagonal matrix bug. 2021-05-18 22:50:19 +00:00
spirv Enable proper testing of matrix-scalar ops. 2021-05-17 17:36:22 +00:00
workarounds Rewrite matrix * vector multiplication on ARM GPUs. 2021-03-24 19:21:44 +00:00
README.txt Migrate SkSL test inputs to the resources/ directory. 2021-01-22 18:57:29 +00:00

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