skia2/tests/sksl/blend
John Stiles 2e6f60f423 Fix color fringes on blend_hue and blend_saturation.
Previously, we checked for division against zero, but didn't do anything
to prevent division against extraordinarily small values. Now, we only
saturate if the delta between max and min is greater than 0.00001.

Change-Id: I7d1df3430941c7e1a7f94e597d5449f9259612d6
Bug: skia:9320
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/527498
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
2022-04-05 19:46:58 +00:00
..
BlendClear.asm.frag Revert "Revert "Added more RelaxedPrecision decorations"" 2021-03-23 19:34:42 +00:00
BlendClear.glsl Change sksl tests to avoid SPIR-V validation errors 2021-03-16 13:39:53 +00:00
BlendClear.metal Reland "Add support for half-precision types in Metal." 2021-10-30 14:33:52 +00:00
BlendClearStandaloneSettings.glsl Change sksl tests to avoid SPIR-V validation errors 2021-03-16 13:39:53 +00:00
BlendColor.asm.frag Use unordered comparisons for != in SPIR-V. 2022-02-25 22:22:43 +00:00
BlendColor.glsl Use $ prefix on built-in private functions. 2022-01-25 15:21:42 +00:00
BlendColor.metal Use $ prefix on built-in private functions. 2022-01-25 15:21:42 +00:00
BlendColorBurn.asm.frag Use $ prefix on built-in private functions. 2022-01-25 15:21:42 +00:00
BlendColorBurn.glsl Use $ prefix on built-in private functions. 2022-01-25 15:21:42 +00:00
BlendColorBurn.metal Use $ prefix on built-in private functions. 2022-01-25 15:21:42 +00:00
BlendColorBurnStandaloneSettings.glsl Use $ prefix on built-in private functions. 2022-01-25 15:21:42 +00:00
BlendColorDodge.asm.frag Use $ prefix on built-in private functions. 2022-01-25 15:21:42 +00:00
BlendColorDodge.glsl Use $ prefix on built-in private functions. 2022-01-25 15:21:42 +00:00
BlendColorDodge.metal Use $ prefix on built-in private functions. 2022-01-25 15:21:42 +00:00
BlendColorDodgeStandaloneSettings.glsl Use $ prefix on built-in private functions. 2022-01-25 15:21:42 +00:00
BlendColorStandaloneSettings.glsl Use $ prefix on built-in private functions. 2022-01-25 15:21:42 +00:00
BlendDarken.asm.frag Revert "Revert "Added more RelaxedPrecision decorations"" 2021-03-23 19:34:42 +00:00
BlendDarken.glsl Change sksl tests to avoid SPIR-V validation errors 2021-03-16 13:39:53 +00:00
BlendDarken.metal Reland "Add support for half-precision types in Metal." 2021-10-30 14:33:52 +00:00
BlendDarkenStandaloneSettings.glsl Change sksl tests to avoid SPIR-V validation errors 2021-03-16 13:39:53 +00:00
BlendDifference.asm.frag Revert "Revert "Added more RelaxedPrecision decorations"" 2021-03-23 19:34:42 +00:00
BlendDifference.glsl Change sksl tests to avoid SPIR-V validation errors 2021-03-16 13:39:53 +00:00
BlendDifference.metal Reland "Add support for half-precision types in Metal." 2021-10-30 14:33:52 +00:00
BlendDifferenceStandaloneSettings.glsl Change sksl tests to avoid SPIR-V validation errors 2021-03-16 13:39:53 +00:00
BlendDst.asm.frag Revert "Revert "Refactored SPIR-V RelaxedPrecision handling"" 2021-03-18 15:01:15 +00:00
BlendDst.glsl Change sksl tests to avoid SPIR-V validation errors 2021-03-16 13:39:53 +00:00
BlendDst.metal Reland "Add support for half-precision types in Metal." 2021-10-30 14:33:52 +00:00
BlendDstAtop.asm.frag Revert "Revert "Added more RelaxedPrecision decorations"" 2021-03-23 19:34:42 +00:00
BlendDstAtop.glsl Change sksl tests to avoid SPIR-V validation errors 2021-03-16 13:39:53 +00:00
BlendDstAtop.metal Reland "Add support for half-precision types in Metal." 2021-10-30 14:33:52 +00:00
BlendDstAtopStandaloneSettings.glsl Change sksl tests to avoid SPIR-V validation errors 2021-03-16 13:39:53 +00:00
BlendDstIn.asm.frag Revert "Revert "Added more RelaxedPrecision decorations"" 2021-03-23 19:34:42 +00:00
BlendDstIn.glsl Change sksl tests to avoid SPIR-V validation errors 2021-03-16 13:39:53 +00:00
BlendDstIn.metal Reland "Add support for half-precision types in Metal." 2021-10-30 14:33:52 +00:00
BlendDstInStandaloneSettings.glsl Change sksl tests to avoid SPIR-V validation errors 2021-03-16 13:39:53 +00:00
BlendDstOut.asm.frag Revert "Revert "Added more RelaxedPrecision decorations"" 2021-03-23 19:34:42 +00:00
BlendDstOut.glsl Change sksl tests to avoid SPIR-V validation errors 2021-03-16 13:39:53 +00:00
BlendDstOut.metal Reland "Add support for half-precision types in Metal." 2021-10-30 14:33:52 +00:00
BlendDstOutStandaloneSettings.glsl Change sksl tests to avoid SPIR-V validation errors 2021-03-16 13:39:53 +00:00
BlendDstOver.asm.frag Revert "Revert "Added more RelaxedPrecision decorations"" 2021-03-23 19:34:42 +00:00
BlendDstOver.glsl Change sksl tests to avoid SPIR-V validation errors 2021-03-16 13:39:53 +00:00
BlendDstOver.metal Reland "Add support for half-precision types in Metal." 2021-10-30 14:33:52 +00:00
BlendDstOverStandaloneSettings.glsl Change sksl tests to avoid SPIR-V validation errors 2021-03-16 13:39:53 +00:00
BlendDstStandaloneSettings.glsl Change sksl tests to avoid SPIR-V validation errors 2021-03-16 13:39:53 +00:00
BlendExclusion.asm.frag Revert "Revert "Added more RelaxedPrecision decorations"" 2021-03-23 19:34:42 +00:00
BlendExclusion.glsl Change sksl tests to avoid SPIR-V validation errors 2021-03-16 13:39:53 +00:00
BlendExclusion.metal Reland "Add support for half-precision types in Metal." 2021-10-30 14:33:52 +00:00
BlendExclusionStandaloneSettings.glsl Change sksl tests to avoid SPIR-V validation errors 2021-03-16 13:39:53 +00:00
BlendHardLight.asm.frag Use $ prefix on built-in private functions. 2022-01-25 15:21:42 +00:00
BlendHardLight.glsl Use $ prefix on built-in private functions. 2022-01-25 15:21:42 +00:00
BlendHardLight.metal Use $ prefix on built-in private functions. 2022-01-25 15:21:42 +00:00
BlendHardLightStandaloneSettings.glsl Use $ prefix on built-in private functions. 2022-01-25 15:21:42 +00:00
BlendHue.asm.frag Fix color fringes on blend_hue and blend_saturation. 2022-04-05 19:46:58 +00:00
BlendHue.glsl Fix color fringes on blend_hue and blend_saturation. 2022-04-05 19:46:58 +00:00
BlendHue.metal Fix color fringes on blend_hue and blend_saturation. 2022-04-05 19:46:58 +00:00
BlendHueStandaloneSettings.glsl Fix color fringes on blend_hue and blend_saturation. 2022-04-05 19:46:58 +00:00
BlendLighten.asm.frag Revert "Revert "Added more RelaxedPrecision decorations"" 2021-03-23 19:34:42 +00:00
BlendLighten.glsl Change sksl tests to avoid SPIR-V validation errors 2021-03-16 13:39:53 +00:00
BlendLighten.metal Reland "Add support for half-precision types in Metal." 2021-10-30 14:33:52 +00:00
BlendLightenStandaloneSettings.glsl Change sksl tests to avoid SPIR-V validation errors 2021-03-16 13:39:53 +00:00
BlendLuminosity.asm.frag Use unordered comparisons for != in SPIR-V. 2022-02-25 22:22:43 +00:00
BlendLuminosity.glsl Use $ prefix on built-in private functions. 2022-01-25 15:21:42 +00:00
BlendLuminosity.metal Use $ prefix on built-in private functions. 2022-01-25 15:21:42 +00:00
BlendLuminosityStandaloneSettings.glsl Use $ prefix on built-in private functions. 2022-01-25 15:21:42 +00:00
BlendModulate.asm.frag Revert "Revert "Refactored SPIR-V RelaxedPrecision handling"" 2021-03-18 15:01:15 +00:00
BlendModulate.glsl Change sksl tests to avoid SPIR-V validation errors 2021-03-16 13:39:53 +00:00
BlendModulate.metal Reland "Add support for half-precision types in Metal." 2021-10-30 14:33:52 +00:00
BlendModulateStandaloneSettings.glsl Change sksl tests to avoid SPIR-V validation errors 2021-03-16 13:39:53 +00:00
BlendMultiply.asm.frag Revert "Revert "Added more RelaxedPrecision decorations"" 2021-03-23 19:34:42 +00:00
BlendMultiply.glsl Change sksl tests to avoid SPIR-V validation errors 2021-03-16 13:39:53 +00:00
BlendMultiply.metal Reland "Add support for half-precision types in Metal." 2021-10-30 14:33:52 +00:00
BlendMultiplyStandaloneSettings.glsl Change sksl tests to avoid SPIR-V validation errors 2021-03-16 13:39:53 +00:00
BlendOverlay.asm.frag Use $ prefix on built-in private functions. 2022-01-25 15:21:42 +00:00
BlendOverlay.glsl Use $ prefix on built-in private functions. 2022-01-25 15:21:42 +00:00
BlendOverlay.metal Use $ prefix on built-in private functions. 2022-01-25 15:21:42 +00:00
BlendOverlayStandaloneSettings.glsl Use $ prefix on built-in private functions. 2022-01-25 15:21:42 +00:00
BlendPlus.asm.frag Revert "Vectorize scalars in SPIR-V using ConstructorSplat." 2021-05-14 14:29:33 +00:00
BlendPlus.glsl Change sksl tests to avoid SPIR-V validation errors 2021-03-16 13:39:53 +00:00
BlendPlus.metal Reland "Add support for half-precision types in Metal." 2021-10-30 14:33:52 +00:00
BlendPlusStandaloneSettings.glsl Change sksl tests to avoid SPIR-V validation errors 2021-03-16 13:39:53 +00:00
BlendSaturation.asm.frag Fix color fringes on blend_hue and blend_saturation. 2022-04-05 19:46:58 +00:00
BlendSaturation.glsl Fix color fringes on blend_hue and blend_saturation. 2022-04-05 19:46:58 +00:00
BlendSaturation.metal Fix color fringes on blend_hue and blend_saturation. 2022-04-05 19:46:58 +00:00
BlendSaturationStandaloneSettings.glsl Fix color fringes on blend_hue and blend_saturation. 2022-04-05 19:46:58 +00:00
BlendScreen.asm.frag Revert "Revert "Added more RelaxedPrecision decorations"" 2021-03-23 19:34:42 +00:00
BlendScreen.glsl Change sksl tests to avoid SPIR-V validation errors 2021-03-16 13:39:53 +00:00
BlendScreen.metal Reland "Add support for half-precision types in Metal." 2021-10-30 14:33:52 +00:00
BlendScreenStandaloneSettings.glsl Change sksl tests to avoid SPIR-V validation errors 2021-03-16 13:39:53 +00:00
BlendSoftLight.asm.frag [sksl] Special-case unary negation on matrix types in MSL/SPIR-V 2022-03-01 20:14:46 +00:00
BlendSoftLight.glsl Use $ prefix on built-in private functions. 2022-01-25 15:21:42 +00:00
BlendSoftLight.metal Use $ prefix on built-in private functions. 2022-01-25 15:21:42 +00:00
BlendSoftLightStandaloneSettings.glsl Use $ prefix on built-in private functions. 2022-01-25 15:21:42 +00:00
BlendSrc.asm.frag Revert "Revert "Refactored SPIR-V RelaxedPrecision handling"" 2021-03-18 15:01:15 +00:00
BlendSrc.glsl Change sksl tests to avoid SPIR-V validation errors 2021-03-16 13:39:53 +00:00
BlendSrc.metal Reland "Add support for half-precision types in Metal." 2021-10-30 14:33:52 +00:00
BlendSrcAtop.asm.frag Revert "Revert "Added more RelaxedPrecision decorations"" 2021-03-23 19:34:42 +00:00
BlendSrcAtop.glsl Change sksl tests to avoid SPIR-V validation errors 2021-03-16 13:39:53 +00:00
BlendSrcAtop.metal Reland "Add support for half-precision types in Metal." 2021-10-30 14:33:52 +00:00
BlendSrcAtopStandaloneSettings.glsl Change sksl tests to avoid SPIR-V validation errors 2021-03-16 13:39:53 +00:00
BlendSrcIn.asm.frag Revert "Revert "Added more RelaxedPrecision decorations"" 2021-03-23 19:34:42 +00:00
BlendSrcIn.glsl Change sksl tests to avoid SPIR-V validation errors 2021-03-16 13:39:53 +00:00
BlendSrcIn.metal Reland "Add support for half-precision types in Metal." 2021-10-30 14:33:52 +00:00
BlendSrcInStandaloneSettings.glsl Change sksl tests to avoid SPIR-V validation errors 2021-03-16 13:39:53 +00:00
BlendSrcOut.asm.frag Revert "Revert "Added more RelaxedPrecision decorations"" 2021-03-23 19:34:42 +00:00
BlendSrcOut.glsl Change sksl tests to avoid SPIR-V validation errors 2021-03-16 13:39:53 +00:00
BlendSrcOut.metal Reland "Add support for half-precision types in Metal." 2021-10-30 14:33:52 +00:00
BlendSrcOutStandaloneSettings.glsl Change sksl tests to avoid SPIR-V validation errors 2021-03-16 13:39:53 +00:00
BlendSrcOver.asm.frag Revert "Revert "Added more RelaxedPrecision decorations"" 2021-03-23 19:34:42 +00:00
BlendSrcOver.glsl Change sksl tests to avoid SPIR-V validation errors 2021-03-16 13:39:53 +00:00
BlendSrcOver.metal Reland "Add support for half-precision types in Metal." 2021-10-30 14:33:52 +00:00
BlendSrcOverStandaloneSettings.glsl Change sksl tests to avoid SPIR-V validation errors 2021-03-16 13:39:53 +00:00
BlendSrcStandaloneSettings.glsl Change sksl tests to avoid SPIR-V validation errors 2021-03-16 13:39:53 +00:00
BlendXor.asm.frag Revert "Revert "Added more RelaxedPrecision decorations"" 2021-03-23 19:34:42 +00:00
BlendXor.glsl Change sksl tests to avoid SPIR-V validation errors 2021-03-16 13:39:53 +00:00
BlendXor.metal Reland "Add support for half-precision types in Metal." 2021-10-30 14:33:52 +00:00
BlendXorStandaloneSettings.glsl Change sksl tests to avoid SPIR-V validation errors 2021-03-16 13:39:53 +00:00