skia2/src
John Stiles 2396fb8be5 Convert division-by-literal in SPIR-V to multiplication.
This is particularly relevant for "vector / scalar" divides, as these
end up generating an extra OpFDiv to take the reciprocal of the scalar.
This meant we were generating code to calculate "literal 1 / literal N"
at runtime whenever dividing vector V against scalar N. This fix moves
the reciprocal calculation to compile-time. And of course, it's a valid
strength reduction in all cases.

Change-Id: I0986057e516120fe872e70135f1ac365155d5377
Bug: skia:11792
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/389156
Commit-Queue: John Stiles <johnstiles@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
2021-03-26 02:30:54 +00:00
..
android More hiding of legacy drawImage calls 2021-01-22 13:53:42 +00:00
c Migrate to drawImage w/ sampling 2021-01-22 22:38:02 +00:00
codec get image from skcodec 2021-01-25 21:50:16 +00:00
core No one needs legacy sprite behavior 2021-03-25 14:18:15 +00:00
effects Remove supported for (removed) inheriting paint filter-quality 2021-03-09 00:58:09 +00:00
fonts Make SkFontMgr::onMakeFromStreamArgs pure virtual. 2020-06-28 01:16:34 +00:00
gpu Revert "Don't reuse scratch textures when texsub image banned for FBO textures" 2021-03-25 11:05:05 +00:00
image If no sampling is passed, assume NN for surface.draw 2021-03-20 21:48:16 +00:00
images Bitmap.asImage() 2020-12-23 15:54:57 +00:00
lazy Replace 'typedef xxxxx INHERITED' with 'using INHERITED = xxxx;'. 2020-09-03 03:41:26 +00:00
opts remove SkRP TODOs 2021-02-09 02:44:14 +00:00
pathops guard pathops debug feature better 2021-01-29 21:46:48 +00:00
pdf remove paint from SkGlyphRunList 2021-03-23 15:21:48 +00:00
ports Support PaintTranslate in COLRv1 rasterisation 2021-03-25 20:14:21 +00:00
sfnt Enable ClangTidy check llvm-namespace-comment. 2020-08-06 19:07:52 +00:00
shaders Reland "Reland "Add GrRuntimeFPBuilder"" 2021-03-24 16:11:42 +00:00
sksl Convert division-by-literal in SPIR-V to multiplication. 2021-03-26 02:30:54 +00:00
svg remove paint from SkGlyphRunList 2021-03-23 15:21:48 +00:00
utils remove unused Mode from GrBlurredEdgeFP 2021-02-25 22:28:30 +00:00
xml Less string copies of text in XML parsing. 2021-02-05 15:36:43 +00:00
xps remove paint from SkGlyphRunList 2021-03-23 15:21:48 +00:00