skia2/src
Ethan Nicholas 6f62412c92 Fixed integer divide / remainder in sksl interpreter
Our integer tests were broken: constant folding was optimizing away
the actual operations, so nothing was actually being tested. This
allowed us to not realize that integer divide / remainder didn't
work: vector division signals if any of divisor's lanes are zero,
and zeroes are common in masked-off lanes.

This replaces naive vector operations with loops and mask checks
for integer divide and remainder, and corrects the various broken
integer tests so they are actually doing stuff.

Change-Id: I6ffcad9e7b38a0bfd1604097f86d0faa24e1dbc7
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/243698
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
2019-09-24 17:35:42 +00:00
..
android SkAnimatedImage: Update HEIF duration 2019-08-28 19:49:06 +00:00
atlastext Remove GrPixelConfig from GrColorSpaceInfo. 2019-07-02 13:43:41 +00:00
c Revert "add guard to switch to SkPathTypes" 2019-09-14 19:13:44 +00:00
codec Move is_orientation_marker into its own file 2019-09-24 17:08:03 +00:00
core Limit sigma for software blurs 2019-09-24 14:00:36 +00:00
effects Limit sigma for software blurs 2019-09-24 14:00:36 +00:00
fonts Add SkUNREACHABLE to definition of SK_ABORT. 2019-08-09 20:43:39 +00:00
gpu Clean up cruft left over from addition GrGpu::createBackendTexture chokepoint 2019-09-24 17:00:33 +00:00
image New proposed syntax for SkColorTypes 2019-09-19 20:42:55 +00:00
images New proposed syntax for SkColorTypes 2019-09-19 20:42:55 +00:00
lazy Remove std::move()s from returns of std::unique_ptrs 2019-08-15 23:48:59 +00:00
opts Fix accessing off end of pixmap for R16G16_float in SSE2/SSE4.1 mode 2019-09-24 17:28:33 +00:00
pathops Revert "add guard to switch to SkPathTypes" 2019-09-14 19:13:44 +00:00
pdf Revert "add guard to switch to SkPathTypes" 2019-09-14 19:13:44 +00:00
ports Basic changes to get XPS drawing text. 2019-08-26 16:20:44 +00:00
sfnt Add Symbol encoding when renaming a font. 2019-08-07 20:35:28 +00:00
shaders Remove a few GrSurfaceProxy::config() usages 2019-09-23 15:43:34 +00:00
sksl Fixed integer divide / remainder in sksl interpreter 2019-09-24 17:35:42 +00:00
svg [svgcanvas] Refactor clipping 2019-09-04 14:36:32 +00:00
utils Revert "add guard to switch to SkPathTypes" 2019-09-14 19:13:44 +00:00
xml [svgcanvas] Add flag to suppress newlines and tabs in XML 2019-08-21 20:17:37 +00:00
xps Basic changes to get XPS drawing text. 2019-08-26 16:20:44 +00:00