commit | 70a0479261e1f0a9cb3d7f48efa60134b0af1597 | [log] [tgz] |
---|---|---|
author | Jim Van Verth <jvanverth@google.com> | Tue Apr 30 11:40:36 2019 -0400 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Tue Apr 30 18:11:16 2019 +0000 |
tree | 09f804626b8bf85c2a96b57cf7fba9f778979773 | |
parent | c4f6df8a5bfecdc5fa7607243e6827577ecb69fd [diff] |
Use correct packing for Metal uniform arrays. In Metal, the alignment requirements for float and float2 arrays allow them to be packed tightly. Packing them loosely was uploading the data to the wrong locations in GPU memory. Bug: skia:8243 Change-Id: Ie09edf3363a1f3cefc1da73aa85c4352f0fbedf0 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/211341 Reviewed-by: Greg Daniel <egdaniel@google.com> Commit-Queue: Jim Van Verth <jvanverth@google.com>