commit | 3c74a5357a883e3e3406b848f415a75c39e24c49 | [log] [tgz] |
---|---|---|
author | John Stiles <johnstiles@google.com> | Tue May 18 17:31:48 2021 -0400 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Tue May 18 22:50:19 2021 +0000 |
tree | f12ae30069c6b8ff5485c2f1cc794874ad359551 | |
parent | a5569ac9c46801ea6ce865dbeddcd8131fccb61d [diff] |
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>