Commit Graph

57420 Commits

Author SHA1 Message Date
John Stiles
31e4c38236 Add support for function prototypes in Pipeline stage.
Previously we did not have a Pipeline callback function for prototyping
a function, so prototypes would be discarded during translation. This
failure mode can be seen in http://review.skia.org/454741, where
FunctionPrototype.sksl is made more complex (thwarting the inliner).
This causes us to emit invalid GLSL, and dm asserts/fails in the SkSL
tests: http://screen/4PkEEWn4m4tF5e7

This CL makes the same changes to FunctionPrototype, but does not crash.

Change-Id: Ia342c7811a454f62f52677440d247e628a1bdc4f
Bug: skia:12488
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/454740
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
2021-09-30 20:02:19 +00:00
John Stiles
57f3fc4cde Mark GLSL reserved names as reserved in SkSL grammar.
We now reject every reserved name in the ES2 docs as an unexpected
token, except for the rule that all names beginning with `gl_` are
reserved. (Unfortunately, sksl_frag bends the rules by directly
declaring a builtin variable named `gl_SecondaryFragColorEXT`.)

Change-Id: I5dcb40b754720ca97fe3d80e2f9072beaa39fcdb
Bug: skia:11115
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/454737
Auto-Submit: John Stiles <johnstiles@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
2021-09-30 19:55:47 +00:00
Kyle Carlstrom
4aef06d231 Added TextExpressionAnimator
Change-Id: If60d4a7893da5987176163ce9fa258f846b1f2e3
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/448650
Reviewed-by: Florin Malita <fmalita@google.com>
Reviewed-by: Avinash Parchuri <aparchur@google.com>
Commit-Queue: Avinash Parchuri <aparchur@google.com>
2021-09-30 19:28:31 +00:00
Greg Daniel
f69f21e601 Add MtlTexture class.
Bug: skia:12466
Change-Id: I6207af8bb34ccab28265ced733e1930f42e2db8b
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/454776
Reviewed-by: Robert Phillips <robertphillips@google.com>
Reviewed-by: Jim Van Verth <jvanverth@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
2021-09-30 18:24:48 +00:00
Robert Phillips
091694fe16 [graphite] Add ContextFactory
Bug: skia:12466
Change-Id: I3299940af72cffde3904cf5f6262955807d6d1bc
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/453637
Reviewed-by: Jim Van Verth <jvanverth@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
2021-09-30 18:04:54 +00:00
John Stiles
67f443beb4 Rename shaders named input in test code.
`input` is a reserved word in GLSL. http://screen/85m4iRwvJRadKbV

Change-Id: I94ac0901964daa6c5fa01fc40ea3dbd733f821b7
Bug: skia:11115
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/454739
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
2021-09-30 17:24:11 +00:00
John Stiles
d240c6bebf Rename external function named external in test code.
`external` is a GLSL reserved word: http://screen/85m4iRwvJRadKbV

Change-Id: I4b4bff378a75f83a7824c7cfd33b9802bea257a7
Bug: skia:11115
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/454738
Commit-Queue: John Stiles <johnstiles@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
2021-09-30 17:13:31 +00:00
John Stiles
9c0b844173 Output Runtime Effect files from import_conformance_tests.
Previously the results were dumped to stdout.

Change-Id: I20a634744f287f97e660912549f429ebea479162
Bug: skia:12484
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/454636
Auto-Submit: John Stiles <johnstiles@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
2021-09-30 16:56:42 +00:00
skia-autoroll
30d55d11fc Roll SK Tool from 7e6380bef0f0 to 5e2ef4b59af0
https://skia.googlesource.com/buildbot.git/+log/7e6380bef0f0..5e2ef4b59af0

2021-09-30 kjlubick@google.com [infra] Remove old power build target
2021-09-30 kjlubick@google.com [debugger] Fix TS issues and eslint warnings
2021-09-29 kjlubick@google.com Apply eslint --fix to entire code base
2021-09-29 rmistry@google.com [skcq] Do not use JWTServiceAccount TS when running locally
2021-09-29 rmistry@google.com Author is a gerrit.Person not a string

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/sk-tool-skia
Please CC kjlubick@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Skia: https://bugs.chromium.org/p/skia/issues/entry

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Tbr: kjlubick@google.com
Change-Id: I77209b089e0e026f2716bd94689f2074e0adbf91
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/454796
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Bot-Commit: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2021-09-30 16:41:49 +00:00
John Stiles
469fb3c619 Rename variables named input in test files.
`input` is a reserved word in GLSL. http://screen/85m4iRwvJRadKbV

Change-Id: Iffc0a47d916a2419a27767902c839e09bfa7fe26
Bug: skia:11115
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/454736
Commit-Queue: John Stiles <johnstiles@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
2021-09-30 16:39:21 +00:00
Greg Daniel
b2d20e02e7 [graphite] Add basic Texture files.
Bug: skia:12466
Change-Id: If708d8a4bd00802e60a860215edcb64db179e573
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/454616
Commit-Queue: Greg Daniel <egdaniel@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
Reviewed-by: Jim Van Verth <jvanverth@google.com>
2021-09-30 15:29:50 +00:00
Herb Derby
37035fc648 work around Fuchsia's compiler eccentricities
Fuchsia was interpreting this assert differently than all other
compilers.
int ia = ?,
    ib = ?;
SkASSERT(-ib <= ia && ia <= UINT16_MAX - ib);

It interpreted UINT16_MAX - ib as an unsigned int forcing ia to be
interpreted as an unsigned int causing a negative number to be a very
large unsigned number.

Just use the value 65535 instead of UINT16_MAX.

Change-Id: I97b244d21f5f1624427d62d67c754def585ce03c
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/454256
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Herb Derby <herb@google.com>
2021-09-30 15:19:27 +00:00
Ravi Mistry
4ae3fd33cf Remove AUTHORS check from PRESUBMIT.py
This is now done in SkCQ

Bug: skia:12487
Change-Id: I5a1414b7594ef371727c3391b18dbe6948b6c25a
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/454457
Reviewed-by: Eric Boren <borenet@google.com>
Commit-Queue: Ravi Mistry <rmistry@google.com>
2021-09-30 14:12:18 +00:00
Kevin Lubick
bb71c1bea2 [canvaskit] Update SKP and RTShader examples
Loading an old SKP stops working after a while, so this changes
it to draw something and then deserialize it immediately.

I also noticed that the CPU backend supports atan, so we can
use a more complete example there.

Change-Id: I70bec69d05184c5ea041b143132ddbbd7f63f004
Bug: skia:12439
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/454456
Reviewed-by: Brian Osman <brianosman@google.com>
2021-09-30 13:00:30 +00:00
Ravi Mistry
c076abe32a Use AUTHORS verification from SkCQ
Bug: skia:12487
Change-Id: I5c906315ae3f9435bbb2eabf1c9c1bc3285a8038
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/454220
Reviewed-by: Eric Boren <borenet@google.com>
Commit-Queue: Ravi Mistry <rmistry@google.com>
2021-09-30 12:57:44 +00:00
skia-autoroll
4b6421f947 Roll ANGLE from 394dc64df28b to 8d1e74abd5d6 (10 revisions)
394dc64df2..8d1e74abd5

2021-09-30 weiweilin@google.com [milo] update test presentation config to show GPU column
2021-09-29 adkushwa@microsoft.com Add a new variant to the labeling API.
2021-09-29 gman@chromium.org Set the viewport missing from a few tests
2021-09-29 sugoi@google.com SwANGLE copy to IOSurface
2021-09-29 b.schade@samsung.com Vulkan: Fixed an issue with primitives generated query
2021-09-29 jmadill@chromium.org Buffer: Notify contents changed in a separate observer list.
2021-09-29 gman@chromium.org fix GLSLTest_ES3.GLVertexIDIntegerTextureDrawArrays
2021-09-29 cnorthrop@google.com FrameCapture: Fix GLES1 VertexArrayState
2021-09-29 angle-autoroll@skia-public.iam.gserviceaccount.com Roll SwiftShader from 562df4889b81 to d625b6424dba (2 revisions)
2021-09-29 angle-autoroll@skia-public.iam.gserviceaccount.com Roll Chromium from de11715e63f4 to 5353b9932896 (497 revisions)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/angle-skia-autoroll
Please CC csmartdalton@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in ANGLE: https://bugs.chromium.org/p/angleproject/issues/entry
To file a bug in Skia: https://bugs.chromium.org/p/skia/issues/entry

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Cq-Include-Trybots: skia/skia.primary:Build-Debian10-Clang-x86_64-Release-ANGLE;skia/skia.primary:Test-Win10-Clang-AlphaR2-GPU-RadeonR9M470X-x86_64-Debug-All-ANGLE;skia/skia.primary:Test-Win10-Clang-Golo-GPU-QuadroP400-x86_64-Debug-All-ANGLE;skia/skia.primary:Test-Win10-Clang-NUC5i7RYH-GPU-IntelIris6100-x86_64-Debug-All-ANGLE;skia/skia.primary:Test-Win10-Clang-NUC6i5SYK-GPU-IntelIris540-x86_64-Debug-All-ANGLE;skia/skia.primary:Test-Win10-Clang-NUC8i5BEK-GPU-IntelIris655-x86_64-Debug-All-ANGLE;skia/skia.primary:Test-Win10-Clang-NUCD34010WYKH-GPU-IntelHD4400-x86_64-Debug-All-ANGLE
Tbr: csmartdalton@google.com
Test: Test: Zillow MEC (GLES 1)
Change-Id: Ib40d58fc4da875554929c4f35387304386e62446
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/454181
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Bot-Commit: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2021-09-30 05:38:18 +00:00
skia-autoroll
a92b268f7d Roll SwiftShader from d625b6424dba to cde65f7a8816 (2 revisions)
https://swiftshader.googlesource.com/SwiftShader.git/+log/d625b6424dba..cde65f7a8816

2021-09-29 capn@google.com Don't initialize memory allocations in MSan builds
2021-09-29 yikong@google.com Fix unused-command-line-argument warning

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/swiftshader-skia-autoroll
Please CC csmartdalton@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in SwiftShader: https://bugs.chromium.org/p/swiftshader/issues/entry
To file a bug in Skia: https://bugs.chromium.org/p/skia/issues/entry

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Cq-Include-Trybots: skia/skia.primary:Test-Debian10-Clang-GCE-GPU-SwiftShader-x86_64-Debug-All-SwiftShader
Bug: None
Tbr: csmartdalton@google.com
Change-Id: I929bd5c769d16ffea4a4672a0ea78e338efa4a8f
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/454316
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Bot-Commit: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2021-09-30 05:13:52 +00:00
skia-autoroll
3a0651535a Roll Chromium from cdbb91142b6a to 3ccf9544137c (470 revisions)
cdbb91142b..3ccf954413

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/chromium-skia-autoroll
Please CC csmartdalton@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Chromium: https://bugs.chromium.org/p/chromium/issues/entry
To file a bug in Skia: https://bugs.chromium.org/p/skia/issues/entry

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Cq-Include-Trybots: skia/skia.primary:Perf-Mac10.13-Clang-MacBookPro11.5-GPU-RadeonHD8870M-x86_64-Release-All-CommandBuffer;skia/skia.primary:Test-Mac10.13-Clang-MacBookPro11.5-GPU-RadeonHD8870M-x86_64-Debug-All-CommandBuffer
Tbr: csmartdalton@google.com
Change-Id: I3cdc4b9596ea0e6d30dd06098855c9e6391750ee
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/454180
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Bot-Commit: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2021-09-30 04:53:52 +00:00
skia-autoroll
ddbb97d741 Roll Dawn from 3c0925b4807b to 4d2bc396ea3b (8 revisions)
https://dawn.googlesource.com/dawn.git/+log/3c0925b4807b..4d2bc396ea3b

2021-09-30 bajones@chromium.org Improve validation errors in RenderPipeline
2021-09-29 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll Tint from efe1f1468521 to 1ca6fbad8f23 (1 revision)
2021-09-29 bajones@chromium.org Add debug group logging to validation errors
2021-09-29 bajones@chromium.org Improve validation errors, Part 3
2021-09-29 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll Tint from ac958bd1dd8b to efe1f1468521 (1 revision)
2021-09-29 bclayton@google.com dawn_node: Add Module.cpp
2021-09-29 cwallez@chromium.org Revert "OpenGL: delete shaders and pipelines when they are not used any longer"
2021-09-29 bclayton@google.com dawn_node: Add binding/GPUDevice.cpp

Also rolling transitive DEPS:
  https://dawn.googlesource.com/tint from ac958bd1dd8b to 1ca6fbad8f23

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/dawn-skia-autoroll
Please CC cwallez@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Dawn: https://bugs.chromium.org/p/dawn/issues/entry
To file a bug in Skia: https://bugs.chromium.org/p/skia/issues/entry

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Cq-Include-Trybots: skia/skia.primary:Build-Debian10-Clang-x86_64-Debug-Dawn
Bug: None
Tbr: cwallez@google.com
Change-Id: I67f314d72b883d8abe17fccef871f4bae5f147fc
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/454182
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Bot-Commit: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2021-09-30 04:39:27 +00:00
Ethan Nicholas
58014fa9a6 Moved SkSL intrinsics from IRGenerator to Context
Moving stuff out of IRGenerator in preparation for its eventual
deletion.

Change-Id: Ib4290158670fecbca02bc71452b9bf4691094fe3
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/453943
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Reviewed-by: John Stiles <johnstiles@google.com>
2021-09-29 22:15:49 +00:00
Jim Van Verth
0f833ca8ae [graphite] Add Metal trampoline.
Adds the interface between C++ and Objective-C code so we can create
the Gpu.

Bug: skia:12466
Change-Id: I0c4b5d21ddaa119c21682105dc84d75769f069f6
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/453952
Commit-Queue: Jim Van Verth <jvanverth@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
2021-09-29 22:12:20 +00:00
Herb Derby
86eb628f56 Reland "lowp bilerp_clamp_8888"
This is a reland of ef96fa9e83

Addition: add the flag SK_SUPPORT_LEGACY_BILERP_HIGHP to
          enable fixing chrome unittests and blink tests

Original change's description:
> lowp bilerp_clamp_8888
>
> Use scaling multipy, _mm_mulhrs_epi16(Intel) and vqrdmulhq_s16(ARM),
> to implement bilerp_8888_clamp.
>
> This CL results in 756usec to 590usec improvement for
> samplingoptions_filter_1_mipmap_0 on Intel. For ARM, this improvement
> is 1180usec -> 897usec.
>
> This CL introduces scaled_mult which takes fixed-point numbers on the
> interval [-1, 1) and returns a result which is rescaled to the
> interval [-1, 1).
>
> It also introduces the notion of constrained_add(I16, U16) where the
> result is guaranteed to be U16. This avoids moving to a 32-bit integer
> for during the computation.
>
> Change-Id: I410e494364039df63e5976f433f7e68355e9cfbf
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/443896
> Reviewed-by: Brian Osman <brianosman@google.com>
> Commit-Queue: Herb Derby <herb@google.com>

Change-Id: I43e572226e11a75a6e7de5b124f2b1ae3cc37c87
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/453556
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Herb Derby <herb@google.com>
2021-09-29 21:27:45 +00:00
skia-autoroll
a20c60d9e5 Roll skcms from 9aafe826f922 to a00edc64c486 (1 revision)
https://skia.googlesource.com/skcms.git/+log/9aafe826f922..a00edc64c486

2021-09-29 lovisolo@google.com [bazel] SkCMS RBE config for Windows.

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/skcms-skia-autoroll
Please CC csmartdalton@google.com,brianosman@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Skia: https://bugs.chromium.org/p/skia/issues/entry

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Cq-Include-Trybots: skia/skia.primary:Canary-Chromium
Tbr: csmartdalton@google.com,brianosman@google.com
Change-Id: Icd362e9d4e8ce2cfad591e836f7c26c784ecf443
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/454176
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Bot-Commit: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2021-09-29 20:26:20 +00:00
Ravi Mistry
55e012180a Add trusted service accounts to AUTHORS file
The check is soon going to be moved from PRESUBMIT.py to SkCQ and did not want to add exceptions for these SAs in SkCQ outside this repo.

Bug: skia:12487
Change-Id: Iad59bd7d4a6505ee7de9c104700b09890ee0a403
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/454138
Reviewed-by: Eric Boren <borenet@google.com>
Reviewed-by: Heather Miller <hcm@google.com>
Commit-Queue: Ravi Mistry <rmistry@google.com>
2021-09-29 20:18:40 +00:00
Robert Phillips
d034db791d [graphite] Add GraphiteTestContext
Bug: skia:12466
Change-Id: I90ebec9ee744de3822bd82d474858015d2490d72
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/453636
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Jim Van Verth <jvanverth@google.com>
2021-09-29 19:09:48 +00:00
Brian Salomon
56c3968f66 Reland "Don't keep a non-msaa FBO with EXT_multisampled_render_to_texture"
This is a reland of I060988c63edbfeb628d5a6c34cda3e159066114a

Original change's description:
> Don't keep a non-msaa FBO with EXT_multisampled_render_to_texture
>
> This seems to cause bugs on various platforms. Instead, do the same
> thing we do for dmsaa: reconfigure a single FBO as msaa or not,
> based on need.
>
> Bug: chromium:1222095
> Change-Id: I4ca4aff32772ee2a9607c92c586ae9494f955229
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/442565
> Commit-Queue: Jim Van Verth <jvanverth@google.com>
> Reviewed-by: Brian Salomon <bsalomon@google.com>

Change-Id: I0bb9e9178170da391be0a295758879994bf4be0d
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/452724
Reviewed-by: Chris Dalton <csmartdalton@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
2021-09-29 18:49:42 +00:00
Herb Derby
501e8e1a2c fix rcp_precise for compiling with AVX
This will move highp AVX users from AVX to SSE41. This is about
7.5%[1] of users for software.

The underlying problem is that AVX works well with floating point,
it has little support for integer operations. So for lowp, AVX works
as SSE41 and in highp it works as HSW and SKX. The rcp_precise
has the distinction as being the only function that works as highp and
lowp. So, when compiled with -mavx it doesn't compile because in
highp it has 8 elements and in lowp it has 4 elements. So, move
it to be with SSE41 for highp.

[1] https://uma.googleplex.com/p/chrome/histograms?sid=ec095beddef4b2771a6a3f12a78f32c1

Bug: skia:12453

Change-Id: I2929312ef36cc0c0a68515ac74e5d953c0b7fd09
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/453716
Reviewed-by: Brian Osman <brianosman@google.com>
2021-09-29 18:25:16 +00:00
Michael Ludwig
6abafd681e [graphite] fix assert in Device ctor
Bug: skia:12466
Change-Id: Ida0113701b7ba2b45b5bddcc76d2729c8658fb14
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/453948
Commit-Queue: Michael Ludwig <michaelludwig@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Auto-Submit: Michael Ludwig <michaelludwig@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
2021-09-29 18:24:20 +00:00
Jim Van Verth
b6b6ecf04e [graphite] Address nits from https://review.skia.org/453796
Bug: skia:12466
Change-Id: Ibe9f09c3801ca22a9b390b0e7a7623a6b73da162
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/453944
Auto-Submit: Jim Van Verth <jvanverth@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Jim Van Verth <jvanverth@google.com>
2021-09-29 18:18:18 +00:00
John Stiles
9b428d1d3f Convert ES2 conformance tests to usable SkSL.
This generates usable code, but emits it all to stdout. The next step
should be automation of testing.

The output from the script:
http://go/diid/1kg7HB-DxUQ5qsKkq5LsI4nnSkmDcLd7G/view

Change-Id: I638f33dcccaf9b36b79b77ae04cb65950042dc01
Bug: skia:12484
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/453947
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
2021-09-29 17:36:47 +00:00
skia-autoroll
27a6998e01 Roll SK Tool from 0e04094ce2ea to 3eca46e2dd9e
https://skia.googlesource.com/buildbot.git/+log/0e04094ce2ea..3eca46e2dd9e

2021-09-29 rmistry@google.com [skcq] Move AUTHORS verification directly into SkCQ
2021-09-29 borenet@google.com [task scheduler] Perftest: add --save_queue and --check_queue to test correctness
2021-09-29 geofflang@google.com Remove win-asan from the angle-chromium autoroller trybots

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/sk-tool-skia
Please CC kjlubick@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Skia: https://bugs.chromium.org/p/skia/issues/entry

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Tbr: kjlubick@google.com
Change-Id: I02d1d008fc097b10ec0361cc3b881e0292e4284d
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/454056
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Bot-Commit: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2021-09-29 17:31:23 +00:00
John Stiles
31a94580b7 Implement parser for ES2 conformance '.test' files.
This parser can decode all of the .test files that we are interested in.
(It struggles with linkage.test, but we will not be using that one
anyway.)

Input files can be found here:
https://github.com/KhronosGroup/VK-GL-CTS/tree/master/data/gles2/shaders

Change-Id: I254033ea2af219581c676daa30238c42f6de926b
Bug: skia:12484
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/453757
Auto-Submit: John Stiles <johnstiles@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
2021-09-29 16:48:14 +00:00
Kevin Lubick
6beb4e4de6 Remove Flaky S7 job from CQ
Change-Id: I8c3beed4dae8df7ae9c68a191069c2d6ec21ed93
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/453945
Reviewed-by: Greg Daniel <egdaniel@google.com>
2021-09-29 16:31:29 +00:00
Greg Daniel
d73cff0e2d [graphite] Add TextureInfo class.
Also adds the Mtl subclass as well

Bug: skia:12466
Change-Id: Ia3a81f33a00374a96765fde3a3442c5e13188ad1
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/453719
Commit-Queue: Greg Daniel <egdaniel@google.com>
Reviewed-by: Jim Van Verth <jvanverth@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
2021-09-29 16:31:27 +00:00
Jim Van Verth
8c7467c440 [graphite] Flesh out more of Metal Caps.
Allocates and initializes the caps with GpuFamily and Group info.

Bug: skia:12466
Change-Id: I7abb8b6df2acf2ac70f3fbe56e935f44815776dd
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/453796
Commit-Queue: Jim Van Verth <jvanverth@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
2021-09-29 14:55:57 +00:00
Kevin Lubick
b96c20f259 [infra] Update ChromeOS Spin514 to M96
Change-Id: I2c8815fea8d3ab11ebe12c1193294e5f1682211e
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/453453
Reviewed-by: Joe Gregorio <jcgregorio@google.com>
2021-09-29 14:30:42 +00:00
Ben Wagner
639f71ace6 Roll FreeType from 61903609 to 12ef831f (10 commits)
6190360967..12ef831fc3

Also update the roll script to something useful.

Disable: treat-URL-as-trailer
Change-Id: I6fd0e77c06d353568031ebb745fceda44c6ae498
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/453758
Reviewed-by: Herb Derby <herb@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
2021-09-29 14:28:39 +00:00
Kevin Lubick
f748a6739f [infra] Update ChromeOS Spin513 to M94
Tried one recovery image from M96 and flashing via that
didn't work (black screen, with eventual reboot),
so we fell back to 94.

There are still known failing tests

Change-Id: I2fcf181e4722ae56be67fcd295133244bd4221fe
Bug: skia:12486
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/453537
Reviewed-by: Joe Gregorio <jcgregorio@google.com>
2021-09-29 13:53:21 +00:00
skia-autoroll
38c07f968c Roll ANGLE from 998fd0d9e315 to 394dc64df28b (8 revisions)
998fd0d9e3..394dc64df2

2021-09-29 gman@chromium.org Change this expectation to skip on AMD only
2021-09-28 sugoi@google.com Add new GL_RGBX8_ANGLEX format
2021-09-28 ianelliott@google.com Suppress VVL error: *InterfaceTypeMismatch
2021-09-28 geofflang@google.com Expose EGL_KHR_no_config_context on more backends.
2021-09-28 angle-autoroll@skia-public.iam.gserviceaccount.com Roll vulkan-deps from b1e5bf7dd9c3 to 788a2f62acbe (13 revisions)
2021-09-28 angle-autoroll@skia-public.iam.gserviceaccount.com Roll SwiftShader from efbbb2f07b36 to 562df4889b81 (7 revisions)
2021-09-28 angle-autoroll@skia-public.iam.gserviceaccount.com Roll Chromium from f340a513a5b7 to de11715e63f4 (90 revisions)
2021-09-28 geofflang@google.com Disable clearing textures for robust init on Mac.

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/angle-skia-autoroll
Please CC csmartdalton@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in ANGLE: https://bugs.chromium.org/p/angleproject/issues/entry
To file a bug in Skia: https://bugs.chromium.org/p/skia/issues/entry

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Cq-Include-Trybots: skia/skia.primary:Build-Debian10-Clang-x86_64-Release-ANGLE;skia/skia.primary:Test-Win10-Clang-AlphaR2-GPU-RadeonR9M470X-x86_64-Debug-All-ANGLE;skia/skia.primary:Test-Win10-Clang-Golo-GPU-QuadroP400-x86_64-Debug-All-ANGLE;skia/skia.primary:Test-Win10-Clang-NUC5i7RYH-GPU-IntelIris6100-x86_64-Debug-All-ANGLE;skia/skia.primary:Test-Win10-Clang-NUC6i5SYK-GPU-IntelIris540-x86_64-Debug-All-ANGLE;skia/skia.primary:Test-Win10-Clang-NUC8i5BEK-GPU-IntelIris655-x86_64-Debug-All-ANGLE;skia/skia.primary:Test-Win10-Clang-NUCD34010WYKH-GPU-IntelHD4400-x86_64-Debug-All-ANGLE
Tbr: csmartdalton@google.com
Change-Id: I3c430055f7dc54e666e77a52ca2606e98922f5e6
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/453858
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Bot-Commit: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2021-09-29 05:24:48 +00:00
skia-autoroll
1fde72432f Roll SwiftShader from 562df4889b81 to d625b6424dba (2 revisions)
https://swiftshader.googlesource.com/SwiftShader.git/+log/562df4889b81..d625b6424dba

2021-09-28 capn@google.com Regres: Skip the Vulkan Loader
2021-09-28 swiftshader.regress@gmail.com Regres: Update test lists @ 562df488

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/swiftshader-skia-autoroll
Please CC csmartdalton@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in SwiftShader: https://bugs.chromium.org/p/swiftshader/issues/entry
To file a bug in Skia: https://bugs.chromium.org/p/skia/issues/entry

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Cq-Include-Trybots: skia/skia.primary:Test-Debian10-Clang-GCE-GPU-SwiftShader-x86_64-Debug-All-SwiftShader
Bug: None
Tbr: csmartdalton@google.com
Change-Id: Ie641bb7af63c9ee37bfed262c968e963d3406674
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/453857
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Bot-Commit: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2021-09-29 05:18:56 +00:00
skia-autoroll
9633ad12ca Roll Chromium from 87b96a650c54 to cdbb91142b6a (499 revisions)
87b96a650c..cdbb91142b

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/chromium-skia-autoroll
Please CC csmartdalton@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Chromium: https://bugs.chromium.org/p/chromium/issues/entry
To file a bug in Skia: https://bugs.chromium.org/p/skia/issues/entry

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Cq-Include-Trybots: skia/skia.primary:Perf-Mac10.13-Clang-MacBookPro11.5-GPU-RadeonHD8870M-x86_64-Release-All-CommandBuffer;skia/skia.primary:Test-Mac10.13-Clang-MacBookPro11.5-GPU-RadeonHD8870M-x86_64-Debug-All-CommandBuffer
Tbr: csmartdalton@google.com
Change-Id: I26560a97e05c203792d28fed4f49c1888b5b0880
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/453836
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Bot-Commit: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2021-09-29 05:03:57 +00:00
skia-autoroll
95f654e076 Roll Dawn from 2be4b8483c74 to 3c0925b4807b (31 revisions)
https://dawn.googlesource.com/dawn.git/+log/2be4b8483c74..3c0925b4807b

2021-09-29 jiawei.shao@intel.com Avoid redundant creation of RenderPipelineBase in GetCachedRenderPipeline
2021-09-29 jiawei.shao@intel.com OpenGL: delete shaders and pipelines when they are not used any longer
2021-09-28 bclayton@google.com dawn_node: Add binding/GPUBuffer.cpp
2021-09-28 bajones@chromium.org Improve validation errors, Part 2
2021-09-28 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll Tint from 2228ad19afa9 to ac958bd1dd8b (3 revisions)
2021-09-28 shrekshao@google.com Overridable constants vulkan implementation and tests
2021-09-28 bclayton@google.com Fix build on GCC: Add missing include
2021-09-28 bclayton@google.com dawn_node: Fix Converter<Napi::TypedArrayOf<T>>::FromJS
2021-09-28 bclayton@google.com dawn_node: Add binding/GPURenderBundleEncoder.cpp
2021-09-28 bclayton@google.com dawn_node: Add binding/GPUAdapter.cpp
2021-09-28 aleksi@sapon.ca CMake: fix third parties when dawn is a sub-build
2021-09-28 bclayton@google.com dawn_node: Add binding/GPUCommandEncoder.cpp
2021-09-28 bclayton@google.com dawn_node: Add binding/GPUComputePassEncoder.cpp
2021-09-28 bclayton@google.com dawn_node: Add binding/GPU.cpp
2021-09-28 bclayton@google.com dawn_node: Add binding/GPUQueue.cpp
2021-09-28 bclayton@google.com dawn_node: Add binding/GPURenderPassEncoder.cpp
2021-09-28 cwallez@chromium.org Only call WillBeginRenderPass when encoder is current
2021-09-28 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll Tint from 9c7cd9e9c3ee to 2228ad19afa9 (1 revision)
2021-09-28 lokokung@google.com Refactors dawn_native objects for list tracking and adds destroy skeleton API.
2021-09-28 bclayton@google.com dawn_node: Add binding/GPUShaderModule.cpp
2021-09-28 bclayton@google.com dawn_node: Add binding/GPUTexture.cpp
2021-09-28 bclayton@google.com dawn_node: Add binding .cpp files for trivial types
2021-09-28 bclayton@google.com dawn_node: Add binding/Converter.[cpp,h]
2021-09-28 bclayton@google.com dawn_node: Add all the headers for the binding classes
2021-09-28 bclayton@google.com dawn_node: Add binding/AsyncRunner
2021-09-28 bclayton@google.com dawn_node: Add binding/Errors.[cpp,h]
2021-09-28 kainino@chromium.org Add 'reason' argument to device lost callback
2021-09-28 bclayton@google.com dawn_node: Begin working on the CMake rules
2021-09-28 bclayton@google.com dawn_node: Add template files
2021-09-28 bclayton@google.com dawn_node: Add interop/Core.[h,cpp]
2021-09-28 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll Tint from 231b50baab51 to 9c7cd9e9c3ee (1 revision)

Also rolling transitive DEPS:
  https://dawn.googlesource.com/tint from 231b50baab51 to ac958bd1dd8b

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/dawn-skia-autoroll
Please CC cwallez@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Dawn: https://bugs.chromium.org/p/dawn/issues/entry
To file a bug in Skia: https://bugs.chromium.org/p/skia/issues/entry

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Cq-Include-Trybots: skia/skia.primary:Build-Debian10-Clang-x86_64-Debug-Dawn
Bug: None
Tbr: cwallez@google.com
Change-Id: Iabc21a338c2c276f190666a6afa3245f3c8c8060
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/453856
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Bot-Commit: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2021-09-29 04:54:19 +00:00
Robert Phillips
e19164d9f4 [graphite] Move some basic include/gpu files over to Graphite
This is mainly to make make MtlBackendContext available.

GrTypes has to go to GraphiteTypes due to a name collision with Types.h in in sktext.

Bug: skia:12466
Change-Id: If073d5540c3dbf3fbfb404808d80deab42c40aa6
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/453497
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
Reviewed-by: Jim Van Verth <jvanverth@google.com>
2021-09-28 21:11:25 +00:00
Michael Ludwig
949aebff35 [graphite] Fix build for DrawPass
Bug: skia:12466
Change-Id: I2ba1f1541c273ba90032c93a92ed3770dc5b0080
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/453756
Commit-Queue: Michael Ludwig <michaelludwig@google.com>
Commit-Queue: Jim Van Verth <jvanverth@google.com>
Auto-Submit: Michael Ludwig <michaelludwig@google.com>
Reviewed-by: Jim Van Verth <jvanverth@google.com>
2021-09-28 20:38:18 +00:00
Ben Wagner
2dc9c5d98f Roll HarfBuzz from 6f190943 to a52c6df3 (2 commits)
6f19094398..a52c6df38a

Pick up fixes for component depth tracking.

Also ensure all build files are listed to simplify updating the build
when rolling. Add a check to the roll script to check for source files
listed multiple times.

Change-Id: I5aa5fb5246cd123019b43fe5207a47d9672752d0
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/453576
Reviewed-by: Herb Derby <herb@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
2021-09-28 18:52:38 +00:00
Michael Ludwig
4a19f2c52e [graphite] Define DrawPass for SDC
Updates SDC's state to be a current DL and a list of pending passes,
RenderPassTask then takes over the DrawPasses.

Does not rename SDC to DrawContext as discussed in 9/27 meeting.

Bug: skia:12466
Change-Id: I358d15bc93663729438e5b6f7163eee22dc6769f
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/453296
Commit-Queue: Michael Ludwig <michaelludwig@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
Reviewed-by: Jim Van Verth <jvanverth@google.com>
2021-09-28 17:46:53 +00:00
Jim Van Verth
47b6286e6e [graphite] Stub in more Metal classes
Bug: skia:12466
Change-Id: I83ebf7dbea0d67b3c121b011f62e7b729f5e5257
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/453577
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Jim Van Verth <jvanverth@google.com>
2021-09-28 17:46:28 +00:00
Chris Dalton
aaa81ab61e Specify DrawList as using a z test of "GREATER"
A test of GREATER, as opposed to GEQUAL, allows us to avoid double
blends during stroking.

Change-Id: I1d39b54416934ee354146fe42c58299f00f7a6e9
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/453616
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
Commit-Queue: Chris Dalton <csmartdalton@google.com>
2021-09-28 17:39:20 +00:00
Brian Osman
0f124cd7cd Remove API owners check from presubmit script
This is now enforced using OWNERS

Change-Id: Iee0c639731376d7bc4c3deaa65ccadef3fae53f4
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/445642
Reviewed-by: Kevin Lubick <kjlubick@google.com>
Reviewed-by: Ravi Mistry <rmistry@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
2021-09-28 16:01:56 +00:00
Kevin Lubick
f8af49ebd8 [infra] Update Sparky360 ChromeOS machines
Change-Id: Ibd5657e675e85dab546970040491fd67af315af4
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/453495
Reviewed-by: Joe Gregorio <jcgregorio@google.com>
2021-09-28 15:18:31 +00:00