Commit Graph

55972 Commits

Author SHA1 Message Date
Mike Reed
cd947ac177 Extend blendmodes bench to time sprites
Change-Id: I3801e869d8a2e177dae108a494a221d502c3caaf
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/425182
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Mike Reed <reed@google.com>
2021-07-07 16:21:23 +00:00
Brian Osman
66657d17c6 Switch to using intrinsicKind to detect "sample" calls
Change-Id: I2b6b3ec24e42859b811de0125276f1d33d5f5037
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/425181
Commit-Queue: Brian Osman <brianosman@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
Auto-Submit: Brian Osman <brianosman@google.com>
Reviewed-by: John Stiles <johnstiles@google.com>
2021-07-07 15:28:23 +00:00
Sylar
78b7397995 Fix compile warning in GrD3DGpu::onCreateCompressedTexture
This is an imported pull request from
https://github.com/google/skia/pull/82

GitOrigin-RevId: 6e5ca6e5b209b46c11d8d8082c580bd5dd9d0729
Change-Id: I01f95f7ff768453364989372e09c6fd092a74e81
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/424716
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
2021-07-07 15:28:20 +00:00
Ethan Nicholas
001461ebdd Added SkSL Literal type
Previously kScalar was doing double-duty and standing in for both scalar
and literal types. This breaks it out into a separate enum value.

Change-Id: Ic975eeba87fb430d9fe183e284107f6aaff9b244
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/425180
Reviewed-by: John Stiles <johnstiles@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
2021-07-07 15:23:42 +00:00
recipe-roller
be9aa64ff9 Roll recipe dependencies (trivial).
This is an automated CL created by the recipe roller. This CL rolls
recipe changes from upstream projects (depot_tools, recipe_engine) into this repository.

depot_tools:
09f358bae3~..b39f6bbf82e3a9bfbed3d24b561726c247d7a48d
  09f358b (ehmaldonado@google.com)
      metrics: Don't collect metrics on DEPOT_TOOLS_METRICS=0
  534f505 (songfangzhen@bytedance.com)
      Update format of `git cl split`
  3ac55bc (nodir@chromium.org)
      Revert "[dirmd] Roll dirmd"
  9f6aa1b (raphael.kubo.da.costa@intel.com)
      gerrit_util: Make GceAuthenticator also consider proxy errors i...
  6f0df68 (dpranke@google.com)
      Add use_python3 to codereview.settings to set default for PRESU...
  a73eec2 (fdegans@google.com)
      Add a new argument to skip shebang checks on python3
  2a6dffa (tikuta@chromium.org)
      Reland "use python3 for goma related scripts"
  4577360 (sokcevic@google.com)
      Reland "Reland "Update gsutil to use gsutil version 4.61, pytho...
  fc3fb20 (brucedawson@chromium.org)
      Revert "Reland "use python3 for goma related scripts""
  a806594 (brucedawson@chromium.org)
      Reland "Reland "use python3 for goma related scripts""
  db632b6 (sokcevic@google.com)
      Use main as default branch in documentation
  a50bd44 (vadimsh@chromium.org)
      [cipd] Update CIPD client to 2.6.0.
  965a05b (kyleju@chromium.org)
      Fix py3 presubmit error. Use unicode strings explicitly.
  1bfda8e (sigurds@chromium.org)
      Respect git config cl.date-order in `git cl st`
  6b08432 (sokcevic@google.com)
      Use main as default branch for git recipe module
  866be0f (wnwen@chromium.org)
      Add an option to specify pylint version
  f0d7ed8 (sokcevic@google.com)
      Allow custom filters for json validation
  0aabd63 (victorsamun@yandex-team.ru)
      Fix python2/3 compatibility in DownloadUsingHttp function
  b3d52d3 (sokcevic@google.com)
      Revert "Use main as default branch for git recipe module"
  c079895 (vadimsh@chromium.org)
      [cipd] Update CIPD client and vpython.
  26adc2a (sokcevic@google.com)
      Fix generating man pages
  eb140ae (yyanagisawa@chromium.org)
      Roll out new goma client binary VERSION=225
  b39f6bb (bryner@google.com)
      Roll new vpython to depot_tools.

recipe_engine:
fe59faf05e~..af228e7f3c4fe44fe10fd65d866dccaedff4a219
  fe59faf (tikuta@chromium.org)
      cas: get cipd package revision from file
  fd22f03 (tikuta@chromium.org)
      cas: simplify _version a bit
  f6ae625 (chromium-autoroll@skia-public.iam.gserviceaccount.com)
      Roll CAS Client from 34b847e00d95 to bcbbe2d4b506
  b19a5af (yuanjunh@google.com)
      [python3] Make recipes doc command py3-compatible
  7b628b8 (iannucci@chromium.org)
      [python3] Add indicator for python3 compat at recipe/module level.
  d731cbd (iannucci@chromium.org)
      Add ability to read + simulate GLOBAL_SHUTDOWN.
  0032604 (tandrii@google.com)
      Make autoroller owner of CAS Client pin.
  f62b45d (chromium-autoroll@skia-public.iam.gserviceaccount.com)
      Roll CAS Client from 78702ac003f3 to 76ddc72fae59
  010e03b (chromium-autoroll@skia-public.iam.gserviceaccount.com)
      Roll CAS Client from c277f3162d43 to 1403fab7e195
  1b6e184 (chromium-autoroll@skia-public.iam.gserviceaccount.com)
      Roll CAS Client from f8fee322da09 to 68a9d9f74279
  b14cfa0 (chromium-autoroll@skia-public.iam.gserviceaccount.com)
      Roll CAS Client from 8dce0cb59e09 to 9464003f0708
  bc01d1b (qyearsley@chromium.org)
      [python3 compatibility] Switch to iteritems in recipe engine un...
  cd13c55 (qyearsley@chromium.org)
      recipe engine: Spellcheck and minor formatting
  78cc13b (chromium-autoroll@skia-public.iam.gserviceaccount.com)
      Roll CAS Client from 9464003f0708 to 8dd195b8fed9
  fad480e (qyearsley@chromium.org)
      [python3 compatibility] Run some futurize "stage 2" fixers on r...
  89cf3c8 (chromium-autoroll@skia-public.iam.gserviceaccount.com)
      Roll CAS Client from 8dd195b8fed9 to e14bb15691db
  4abe5ab (chromium-autoroll@skia-public.iam.gserviceaccount.com)
      Roll CAS Client from e14bb15691db to 13eb6a325aaa
  4543597 (martiniss@google.com)
      Improve cas archive default
  e16a16a (chromium-autoroll@skia-public.iam.gserviceaccount.com)
      Roll CAS Client from 102bb894249d to 40001c4c5150
  e88454d (chromium-autoroll@skia-public.iam.gserviceaccount.com)
      Roll CAS Client from eba70e5d7b53 to c85e8f0ecb90
  284f8eb (chromium-autoroll@skia-public.iam.gserviceaccount.com)
      Roll CAS Client from c85e8f0ecb90 to 01ae064f288d
  434b4f0 (chromium-autoroll@skia-public.iam.gserviceaccount.com)
      Roll CAS Client from 6fa1788bbb0e to 713757bf8a41
  8238109 (chromium-autoroll@skia-public.iam.gserviceaccount.com)
      Roll CAS Client from 8b378ab01c51 to 40f945205c86
  f0f25eb (chromium-autoroll@skia-public.iam.gserviceaccount.com)
      Roll CAS Client from f50bf9c6481d to 63c49027cfa9
  18e4134 (chromium-autoroll@skia-public.iam.gserviceaccount.com)
      Roll CAS Client from 63c49027cfa9 to 89085d1a792a
  442820a (tikuta@chromium.org)
      tricium: show comment even if it exceeds 50
  d44e046 (chromium-autoroll@skia-public.iam.gserviceaccount.com)
      Roll CAS Client from da9c74b88f55 to d425349380f6
  92a7948 (chromium-autoroll@skia-public.iam.gserviceaccount.com)
      Roll CAS Client from d425349380f6 to 13d1aa30c73d
  56686d5 (chromium-autoroll@skia-public.iam.gserviceaccount.com)
      Roll CAS Client from 13d1aa30c73d to d5505d31f87f
  443bf98 (chromium-autoroll@skia-public.iam.gserviceaccount.com)
      Roll CAS Client from 4f05b72dc873 to dddfb00ee624
  30dbfb4 (chromium-autoroll@skia-public.iam.gserviceaccount.com)
      Roll CAS Client from dddfb00ee624 to d60b89d9dffa
  1951b83 (chromium-autoroll@skia-public.iam.gserviceaccount.com)
      Roll CAS Client from d60b89d9dffa to e29eacaa51b1
  3606812 (chromium-autoroll@skia-public.iam.gserviceaccount.com)
      Roll CAS Client from 02e723041f2e to af2dc3835e4f
  46491c0 (iannucci@chromium.org)
      Add RECIPES_DEBUG_SLEEP to have engine do sleep for led.
  bb91c77 (chromium-autoroll@skia-public.iam.gserviceaccount.com)
      Roll CAS Client from af2dc3835e4f to 9a1c1dd351da
  8a92136 (iannucci@chromium.org)
      Add function to compute effective python compatibility.
  2ad13e4 (chromium-autoroll@skia-public.iam.gserviceaccount.com)
      Roll CAS Client from 9a1c1dd351da to 5e2c34b93cdf
  e47c6d4 (chromium-autoroll@skia-public.iam.gserviceaccount.com)
      Roll CAS Client from 5e2c34b93cdf to aca8d68f3040
  1c85729 (chromium-autoroll@skia-public.iam.gserviceaccount.com)
      Roll CAS Client from b53f44dad74f to f483cf4004ef
  e4db17b (chromium-autoroll@skia-public.iam.gserviceaccount.com)
      Roll CAS Client from 0862ebb13f0c to 61d5434b44c8
  8d05dc8 (tikuta@chromium.org)
      isolated: remove on_path
  c4b8357 (chromium-autoroll@skia-public.iam.gserviceaccount.com)
      Roll CAS Client from 9f7beee9fe44 to 91cf324fb7a0
  478f380 (chromium-autoroll@skia-public.iam.gserviceaccount.com)
      Roll CAS Client from 3fadd3e58f93 to 74b60d9d714f
  af228e7 (chromium-autoroll@skia-public.iam.gserviceaccount.com)
      Roll CAS Client from 74b60d9d714f to 6808332cfd84

More info is at https://goo.gl/zkKdpD. Use https://goo.gl/noib3a to file a bug.

R=borenet@google.com

Recipe-Tryjob-Bypass-Reason: Autoroller
Bugdroid-Send-Email: False
Change-Id: I43f528d39adae46c34f695fc92f65b939b0f790d
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/425144
Commit-Queue: Recipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
Bot-Commit: Recipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
2021-07-07 15:15:41 +00:00
Brian Salomon
d8d85b9b89 Reland "Don't key progams/pipelines on origin.""
Reland works around Adreno issue with this formulation of sk_Clockwise:
 (sk_RTFlip.y < 0.0 ? !gl_FrontFacing : gl_FrontFacing)

and instead adds this to the top of the function:
 bool sk_Clockwise = gl_FrontFacing;
 if (sk_RTFlip.y < 0.0) {
      sk_Clockwise = !sk_Clockwise;
 }

Original description:

SkSL language features that are origin sensitive now use a uniform
to conditionally flip their result rather than generating different
code.

Previously we would insert a "rt height" uniform if sk_FragCoord needed
to be flipped. sk_FragCoord,y was implemented as "realFragCoord.y" or
"rtHeight - realFragCoord.y" depending on SkSL::ProgramSettings::fFlipY.

Now we instead use a two component vector rtFlip and sk_FragCoord.y is
always "rtFlip.x + rtFlip.y*realFragCoord.y". We configure rtFlip as
either (0, 1) or (rtHeight, -1). sk_Clockwise and dFdy simiarly use
rtFlip.y to emit code that always works with either origin.

Bug: skia:12037
Change-Id: I3a2ad6f5667eb4dcd823b939abd5698f89b58929
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/425178
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
2021-07-07 14:50:10 +00:00
Robert Phillips
550de7f872 Depower GrPipeline.h
This is mainly to get GrTextureEffect.h out of this header. Its distribution keeps gumming up efforts to make more classes V1-only.

Bug: skia:11837
Change-Id: I6d5aae20bb20cfe3fb4d93c526efe8cf7e5e0c52
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/425017
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
2021-07-07 13:56:23 +00:00
skia-autoroll
24096ec243 Roll ANGLE from 3b0fcf6a913f to 51937ab38622 (5 revisions)
3b0fcf6a91..51937ab386

2021-07-06 jmadill@chromium.org Re-land "Add SearchType to OpenSharedLibraryWithExtension."
2021-07-06 syoussefi@chromium.org Vulkan: SPIR-V Gen: Fixes to std430 block definition
2021-07-06 tikuta@chromium.org infra/config: remove unused isolated property
2021-07-06 angle-autoroll@skia-public.iam.gserviceaccount.com Roll SwiftShader from 69deca60e70d to 6f1260556b10 (2 revisions)
2021-07-06 angle-autoroll@skia-public.iam.gserviceaccount.com Roll Chromium from 38c67803c283 to 1d5cc5e25281 (194 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 djsollen@google.com on the revert to ensure that a human
is aware of the problem.

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: djsollen@google.com
Change-Id: I090e0152e2de0ca4d3d966e43a6af05b4284612d
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/425098
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2021-07-07 05:17:47 +00:00
skia-autoroll
34d94c9234 Roll Chromium from 5f1024ce4fc1 to 692b194693a6 (259 revisions)
5f1024ce4f..692b194693

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 djsollen@google.com on the revert to ensure that a human
is aware of the problem.

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: djsollen@google.com
Change-Id: Ic3b1869e5f575ccffa03d08d9a23a6ba063db537
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/425076
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2021-07-07 05:05:52 +00:00
skia-autoroll
4a5a6a8a45 Roll SwiftShader from 6f1260556b10 to 3c89f07b349b (5 revisions)
https://swiftshader.googlesource.com/SwiftShader.git/+log/6f1260556b10..3c89f07b349b

2021-07-06 srisser@google.com Replace curl command with git-hooks submodule
2021-07-06 capn@google.com Clarify contributing documentation for Windows users
2021-07-06 capn@google.com Fix -Wundefined-var-template warnings for ARM32 and MIPS32
2021-07-06 capn@google.com Define constant static template members as constexpr
2021-07-06 capn@google.com Make Subzero opcode pointer constant

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 djsollen@google.com on the revert to ensure that a human
is aware of the problem.

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: djsollen@google.com
Change-Id: If4f9315f27ff88c2ba5bf08b4888b58a3217e314
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/425096
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2021-07-07 04:50:52 +00:00
skia-autoroll
18a42b8954 Roll Dawn from 435ebfcc40a2 to 4a811043ccd2 (6 revisions)
https://dawn.googlesource.com/dawn.git/+log/435ebfcc40a2..4a811043ccd2

2021-07-06 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll Tint from 9545fb76b66d to facb5ced00ae (1 revision)
2021-07-06 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll Tint from 692fc2079778 to 9545fb76b66d (1 revision)
2021-07-06 cwallez@chromium.org Add support for dump_translated_shaders to the Metal backend
2021-07-06 bclayton@google.com D3D12: Improve dump_translated_shaders debugging
2021-07-06 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll Tint from 5d8eb4a7582d to 692fc2079778 (1 revision)
2021-07-06 bclayton@google.com D3D12: Re-enable FXC tests

Also rolling transitive DEPS:
  https://dawn.googlesource.com/tint from 5d8eb4a7582d to facb5ced00ae

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 bajones@google.com on the revert to ensure that a human
is aware of the problem.

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: bajones@google.com
Change-Id: Icc77b1a173eaebd817afe3c9af66b681a52502b9
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/425097
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2021-07-07 04:46:12 +00:00
Chris Dalton
3cc03c59bf Rm "GR_DISABLE_GL_ANGLE_instanced_arrays" guard
Bug: chromium:1220246
Change-Id: I8ec147bb501ec7a94c6ad503f9d7ede8d633a105
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/425037
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Chris Dalton <csmartdalton@google.com>
2021-07-06 23:15:55 +00:00
Brian Salomon
40586cf1f8 SkShaders::Blend requires valid src/dst shaders
There was some idea that we'd substitute the paint color for the missing
input shader. However, the implementation (CPU) would also apply
the paint's alpha after the blend shader, meaning the alpha was used
twice.

If a caller wants to blend a shader against a constant color there are
already at least two ways:
1) SkColorFilters::Blend()
2) SkShaders::Blend() where one input is SkShaders::Color().

Rather than come up with a more rational implementation for CPU and
make GPU follow suit, just make this invalid input and return nullptr.

Change-Id: I99c3415707ec7dc8036709322727b7769ea85f21
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/425058
Auto-Submit: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Commit-Queue: Mike Reed <reed@google.com>
Reviewed-by: Mike Reed <reed@google.com>
2021-07-06 21:35:15 +00:00
Brian Salomon
55b81a8690 add mskps/ to .gitignore
This is the default location for nanobench and viewer to look for
mskp files.

Change-Id: Icd23382dcfa3ca4789b5d15a11aaed02f7d18eb7
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/425059
Commit-Queue: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Auto-Submit: Brian Salomon <bsalomon@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
2021-07-06 21:04:55 +00:00
Brian Salomon
40242241c3 Revert "Don't key progams/pipelines on origin."
This reverts commit 943108b0b2.

Reason for revert: clockwise GM bad on android.

Original change's description:
> Don't key progams/pipelines on origin.
>
> SkSL language features that are origin sensitive now use a uniform
> to conditionally flip their result rather than generating different
> code.
>
> Previously we would insert a "rt height" uniform if sk_FragCoord needed
> to be flipped. sk_FragCoord,y was implemented as "realFragCoord.y" or
> "rtHeight - realFragCoord.y" depending on SkSL::ProgramSettings::fFlipY.
>
> Now we instead use a two component vector rtFlip and sk_FragCoord.y is
> always "rtFlip.x + rtFlip.y*realFragCoord.y". We configure rtFlip as
> either (0, 1) or (rtHeight, -1). sk_Clockwise and dFdy simiarly use
> rtFlip.y to emit code that always works with either origin.
>
> Bug: skia:12037
>
> Change-Id: I7a09d0caac60a58d72b76645ff31bcabde4086b6
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/414796
> Commit-Queue: Brian Salomon <bsalomon@google.com>
> Reviewed-by: Greg Daniel <egdaniel@google.com>
> Reviewed-by: Ethan Nicholas <ethannicholas@google.com>

TBR=egdaniel@google.com,bsalomon@google.com,ethannicholas@google.com

Change-Id: I91cc0d86be216f6c32e453a231de088c991be4b2
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: skia:12037
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/425056
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
2021-07-06 19:21:26 +00:00
Robert Phillips
cc44feb654 Start using skgpu::v1 and skgpu::v2 namespaces
Bug: skia:11837
Change-Id: I042775dae34c99c20048d6d70aa6f06b2a6a268b
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/424117
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
2021-07-06 18:28:54 +00:00
Brian Salomon
943108b0b2 Don't key progams/pipelines on origin.
SkSL language features that are origin sensitive now use a uniform
to conditionally flip their result rather than generating different
code.

Previously we would insert a "rt height" uniform if sk_FragCoord needed
to be flipped. sk_FragCoord,y was implemented as "realFragCoord.y" or
"rtHeight - realFragCoord.y" depending on SkSL::ProgramSettings::fFlipY.

Now we instead use a two component vector rtFlip and sk_FragCoord.y is
always "rtFlip.x + rtFlip.y*realFragCoord.y". We configure rtFlip as
either (0, 1) or (rtHeight, -1). sk_Clockwise and dFdy simiarly use
rtFlip.y to emit code that always works with either origin.

Bug: skia:12037

Change-Id: I7a09d0caac60a58d72b76645ff31bcabde4086b6
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/414796
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
2021-07-06 18:08:06 +00:00
Mike Reed
3037d9f322 Make setBlender the real name
Change-Id: Ifd590a3653760c5d3967c0b1bcf00d0be1a7658f
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/424396
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Mike Reed <reed@google.com>
Auto-Submit: Mike Reed <reed@google.com>
2021-07-06 16:08:14 +00:00
Tao Wu
ad77b4db8d Disable draw instanced support on virgl.
Bug: b/188410972
Change-Id: Ic2f6daf4b919efa76c8136345e763bfa17bb1050
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/420716
Auto-Submit: Tao Wu <lepton@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
2021-07-06 15:13:55 +00:00
Mike Reed
a8ac441411 Move Mode() factory into SkBlender
This frees the SkBlenders names for optional effects, and better
reflects the fact that the "core" relies on this Mode() factory.

... and makes this clearer:
https://skia-review.googlesource.com/c/skia/+/424417

Maybe this isn't important. I see SkShaders is in core header, but
SkImageFilters is in effects, so I guess we don't have a consistent
notion for this naming yet. What I do think is semi-important is
that core headers include effects that core uses, so in this case
a Mode() factory does make sense to be in a core header, just have to
decide/bikeshed how to scope it.

Change-Id: I94da47cfaa6c1ea22894bf66a48604d3722b4062
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/424416
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Mike Reed <reed@google.com>
2021-07-06 13:39:05 +00:00
skia-autoroll
fcd068ad72 Roll Chromium from 74a98997e468 to 5f1024ce4fc1 (226 revisions)
74a98997e4..5f1024ce4f

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 djsollen@google.com on the revert to ensure that a human
is aware of the problem.

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: djsollen@google.com
Change-Id: I5d1318bd54cab2c585fa02273abd5199fd6113a6
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/424756
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2021-07-06 05:25:54 +00:00
skia-autoroll
8b22e1a4af Roll SwiftShader from 69deca60e70d to 6f1260556b10 (2 revisions)
https://swiftshader.googlesource.com/SwiftShader.git/+log/69deca60e70d..6f1260556b10

2021-07-05 capn@google.com Fix -Wundefined-var-template warnings
2021-07-05 capn@google.com Regres: Increase MaxProcMemory to 6 GiB

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 djsollen@google.com on the revert to ensure that a human
is aware of the problem.

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: djsollen@google.com
Change-Id: Ide19822c823d3a6051089815de7da31d56b72fc5
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/424776
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2021-07-06 05:04:05 +00:00
skia-autoroll
cc228a5df1 Roll ANGLE from 1bffabe8800e to 3b0fcf6a913f (9 revisions)
1bffabe880..3b0fcf6a91

2021-07-06 syoussefi@chromium.org Vulkan: SPIR-V Gen: Support type casts in constructors
2021-07-06 angle-autoroll@skia-public.iam.gserviceaccount.com Roll vulkan-deps from e0136f0880da to 6dda7d6b86d6 (7 revisions)
2021-07-05 ynovikov@chromium.org Revert "Add SearchType to OpenSharedLibraryWithExtension."
2021-07-05 ynovikov@chromium.org Ignore VUID-VkSpecializationMapEntry-constantID-00776
2021-07-05 syoussefi@chromium.org Vulkan: SPIR-V Gen: texture and image built-ins
2021-07-05 jmadill@chromium.org Update TextureState::getEnabledLevelCount.
2021-07-05 syoussefi@chromium.org Fix angle_commit.h dependency when git packs refs
2021-07-05 angle-autoroll@skia-public.iam.gserviceaccount.com Roll Chromium from 3406cb648bea to 38c67803c283 (515 revisions)
2021-07-05 angle-autoroll@skia-public.iam.gserviceaccount.com Roll SwiftShader from 314508f788b2 to 69deca60e70d (1 revision)

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 djsollen@google.com on the revert to ensure that a human
is aware of the problem.

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: djsollen@google.com
Change-Id: I085d84989ab1c3e8d30e67a0d4f270cc234c84ec
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/424796
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2021-07-06 04:55:54 +00:00
skia-autoroll
e355e73eed Roll Dawn from aeff235dc373 to 435ebfcc40a2 (4 revisions)
https://dawn.googlesource.com/dawn.git/+log/aeff235dc373..435ebfcc40a2

2021-07-06 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll Tint from b4ff73e250ab to 5d8eb4a7582d (2 revisions)
2021-07-05 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll Tint from 5cb31a8a7fb5 to b4ff73e250ab (7 revisions)
2021-07-05 cwallez@chromium.org Allowed mismatch sampler/comparison sampler when using SPIRV-Cross
2021-07-05 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll Tint from 0e4174728128 to 5cb31a8a7fb5 (1 revision)

Also rolling transitive DEPS:
  https://dawn.googlesource.com/tint from 0e4174728128 to 5d8eb4a7582d

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 bajones@google.com on the revert to ensure that a human
is aware of the problem.

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: bajones@google.com
Change-Id: I3b5154ddb548a129db5856eb1ae3168878e2635f
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/424757
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2021-07-06 04:48:54 +00:00
skia-autoroll
8cbd2b476c Roll SwiftShader from 314508f788b2 to 69deca60e70d (1 revision)
https://swiftshader.googlesource.com/SwiftShader.git/+log/314508f788b2..69deca60e70d

2021-07-02 jerumble@gmail.com Fix gcc < 9 builds

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 djsollen@google.com on the revert to ensure that a human
is aware of the problem.

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: djsollen@google.com
Change-Id: I0be1db87847744dc4b8c1e0c7b732c4c6e727ff1
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/424636
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2021-07-05 04:52:48 +00:00
skia-autoroll
1332d491d9 Roll ANGLE from 4a3fc4b56681 to 1bffabe8800e (5 revisions)
4a3fc4b566..1bffabe880

2021-07-03 pkasting@chromium.org Fix -Wunreachable-code-aggressive.
2021-07-02 gert.wollny@collabora.com Capture/Replay: Only capture initialized renderbuffer content
2021-07-02 angle-autoroll@skia-public.iam.gserviceaccount.com Roll VK-GL-CTS from 5e375439542a to 875c981f4c59 (9 revisions)
2021-07-02 angle-autoroll@skia-public.iam.gserviceaccount.com Roll SwiftShader from 1231b445b902 to 314508f788b2 (2 revisions)
2021-07-02 angle-autoroll@skia-public.iam.gserviceaccount.com Roll Chromium from 69ddea72a93b to 3406cb648bea (368 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 djsollen@google.com on the revert to ensure that a human
is aware of the problem.

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: djsollen@google.com
Change-Id: I30d33839f3efa1b938712f511bee8575b832a172
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/424637
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2021-07-05 04:51:48 +00:00
skia-autoroll
525c78801d Roll Dawn from a5f24e590ae0 to aeff235dc373 (7 revisions)
https://dawn.googlesource.com/dawn.git/+log/a5f24e590ae0..aeff235dc373

2021-07-04 bajones@chromium.org Drop deprecated rowsPerImage/bytesPerRow behavior
2021-07-03 cwallez@chromium.org Vulkan: Check for required limits when initializing adapters
2021-07-03 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll Tint from 3124d43fda3f to 0e4174728128 (6 revisions)
2021-07-02 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll Tint from 9bf951eee520 to 3124d43fda3f (6 revisions)
2021-07-02 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll Tint from 37cabbb46828 to 9bf951eee520 (1 revision)
2021-07-02 hao.x.li@intel.com Fix internal storage buffer usage
2021-07-02 cwallez@chromium.org Roll third_party/swiftshader/ 8f075627d..314508f78 (15 commits)

Also rolling transitive DEPS:
  https://dawn.googlesource.com/tint from 37cabbb46828 to 0e4174728128

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 sarahmashay@google.com on the revert to ensure that a human
is aware of the problem.

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: sarahmashay@google.com
Change-Id: I6b23efa07fd9f57def9af3a05a0c38861ad24516
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/424617
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2021-07-05 04:47:48 +00:00
skia-autoroll
47540bb361 Roll Chromium from ed08a40dbb11 to 74a98997e468 (482 revisions)
ed08a40dbb..74a98997e4

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 djsollen@google.com on the revert to ensure that a human
is aware of the problem.

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: djsollen@google.com
Change-Id: Ifaa3bd2c48ae7e56b54eef9fc5ae90202189e195
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/424616
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2021-07-05 04:39:08 +00:00
skia-autoroll
e5d312975f Roll SK Tool from 7ef0f9ef2c10 to 9cdcbb807fe4
https://skia.googlesource.com/buildbot.git/+log/7ef0f9ef2c10..9cdcbb807fe4

2021-07-04 skia-recreate-skps@skia-swarming-bots.iam.gserviceaccount.com Update CIPD Packages

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 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: I8dcd9579c61d0e60d10ba8216ec7055c0ac05097
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/424516
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2021-07-04 06:19:43 +00:00
Brian Osman
04d79fc594 GrSkSLFP: Avoid making a global copy of inColor most of the time
We still need *a* copy, to satisfy SkSL that mutates the input color
parameter, but it almost never needs to be global, unless there are
calls to sample() from a function other than main.

With that tweak, we generate much better SkSL/GLSL code from every one
of our effects, avoiding the proliferation of global variables.

Bug: skia:12140
Change-Id: I5c3bd42df34a095969abcbbc60e69c653a08087a
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/424299
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
2021-07-02 21:06:21 +00:00
Brian Osman
e9ab391765 Reland "Convert GrDitherEffect to a runtime FP"
This reverts commit 3dd52c758b.

Change-Id: Ie873ad570ffc57b3edd6ffe8612cbc2c73d40450
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/424259
Reviewed-by: Brian Osman <brianosman@google.com>
2021-07-02 17:33:15 +00:00
Brian Osman
1c467774e5 Revert "Convert GrConfigConversionEffect to a runtime FP"
This reverts commit 4a77813008.

Reason for revert: Memory regression in Chrome.

Original change's description:
> Convert GrConfigConversionEffect to a runtime FP
>
> Change-Id: I7f22447cf3356b1558d73665ff3e9b61639ebe83
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/423576
> Auto-Submit: Brian Osman <brianosman@google.com>
> Commit-Queue: Brian Salomon <bsalomon@google.com>
> Reviewed-by: Brian Salomon <bsalomon@google.com>

TBR=bsalomon@google.com,brianosman@google.com,ethannicholas@google.com

Change-Id: I05497295b88b378f0aa236f18118fe676bbf05c9
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/424256
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
2021-07-02 13:11:40 +00:00
Ben Wagner
a149e8ff05 Add support for FT_COLR_PAINTFORMAT_SCALE
ff40776591..d3dc2da9b2

This was added to the specification and recently added to FreeType. This
also involves rolling FreeType.

Change-Id: I8784bf6af900a7ecedbd1647cfcd851ad8a81dd1
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/424096
Commit-Queue: Dominik Röttsches <drott@google.com>
Reviewed-by: Dominik Röttsches <drott@chromium.org>
2021-07-02 08:07:01 +00:00
skia-autoroll
9c060b55e1 Roll Dawn from 2b1b14527d03 to a5f24e590ae0 (2 revisions)
https://dawn.googlesource.com/dawn.git/+log/2b1b14527d03..a5f24e590ae0

2021-07-02 enga@chromium.org Validate textures with filtering/non-filtering/comparison samplers
2021-07-01 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll Tint from d4c64af11783 to 37cabbb46828 (1 revision)

Also rolling transitive DEPS:
  https://dawn.googlesource.com/tint from d4c64af11783 to 37cabbb46828

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 sarahmashay@google.com on the revert to ensure that a human
is aware of the problem.

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: sarahmashay@google.com
Change-Id: Idfb3e1df4fc9b7ce1d96bff61ec5384889e4b676
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/424196
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2021-07-02 05:08:24 +00:00
skia-autoroll
6915b5b49f Roll SwiftShader from 1231b445b902 to 314508f788b2 (2 revisions)
https://swiftshader.googlesource.com/SwiftShader.git/+log/1231b445b902..314508f788b2

2021-07-01 capn@google.com Work around MemorySanitizer false-positive
2021-07-01 cwallez@google.com Increase max workgroup size for WebGPU

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 bungeman@google.com on the revert to ensure that a human
is aware of the problem.

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: bungeman@google.com
Change-Id: I0d028d4722d3391f5ce063c862232e240c3f583a
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/424095
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2021-07-02 05:03:48 +00:00
skia-autoroll
137edf77f6 Roll ANGLE from dba2e1361d2d to 4a3fc4b56681 (2 revisions)
dba2e1361d..4a3fc4b566

2021-07-01 angle-autoroll@skia-public.iam.gserviceaccount.com Roll SwiftShader from 9c5d0d73e2f3 to 1231b445b902 (1 revision)
2021-07-01 angle-autoroll@skia-public.iam.gserviceaccount.com Roll Chromium from 20cc6c3bb504 to 69ddea72a93b (424 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 bungeman@google.com on the revert to ensure that a human
is aware of the problem.

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: bungeman@google.com
Change-Id: I50ed3ef8ecfb7c4b7fa65c4747e35226224b1d68
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/424197
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2021-07-02 05:03:19 +00:00
skia-autoroll
b14bdcfee9 Roll Chromium from 6083e24534e3 to ed08a40dbb11 (385 revisions)
6083e24534..ed08a40dbb

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 bungeman@google.com on the revert to ensure that a human
is aware of the problem.

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: bungeman@google.com
Change-Id: I8ad04ba025f0e81e712545f17717e8ff8e8734ce
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/424094
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2021-07-02 04:54:08 +00:00
Brian Osman
3dd52c758b Revert "Convert GrDitherEffect to a runtime FP"
This reverts commit 2fa843abc2.

Reason for revert: Oops, SkSL error in the ES2 path.

Original change's description:
> Convert GrDitherEffect to a runtime FP
>
> Includes a change so that we can create non-ES2 runtime effects, even
> outside of tests/tools. It's still locked to a private API, so clients
> can't access the functionality.
>
> Change-Id: Ie0643da2071bd223fccf05b35f3a7b6f7bbc4876
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/423578
> Reviewed-by: Brian Salomon <bsalomon@google.com>
> Commit-Queue: Brian Osman <brianosman@google.com>

TBR=bsalomon@google.com,brianosman@google.com,ethannicholas@google.com,michaelludwig@google.com

Change-Id: Icff68da3cadd00868c94b84fbb39e470a7bf45d0
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/424100
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
2021-07-01 22:36:09 +00:00
Chris Dalton
202441f518 ES2ify fixed count tessellation shaders
Removes integers, non-square matrices, etc. The fixed count shaders
should all compile now on es2.

Bug: chromium:1220246
Change-Id: I5739a7ba397614bbb25a6f70a1bd53c699ffbcd7
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/423736
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Chris Dalton <csmartdalton@google.com>
2021-07-01 22:17:07 +00:00
Joe Gregorio
3c227305ac Add Spin513 bots to the tree.
Bug: skia:11876
Change-Id: I78b705f781e43216716aabf975a41d7350c795db
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/420123
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Joe Gregorio <jcgregorio@google.com>
2021-07-01 21:30:19 +00:00
Brian Osman
2fa843abc2 Convert GrDitherEffect to a runtime FP
Includes a change so that we can create non-ES2 runtime effects, even
outside of tests/tools. It's still locked to a private API, so clients
can't access the functionality.

Change-Id: Ie0643da2071bd223fccf05b35f3a7b6f7bbc4876
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/423578
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
2021-07-01 20:58:54 +00:00
Florin Malita
a8d2bf7b29 Disable large png bench
(missing resource)

Change-Id: I9a436c07723a5029fccb38ecd1d0e7e76a3aca80
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/424099
Commit-Queue: Florin Malita <fmalita@chromium.org>
Commit-Queue: Ben Wagner <bungeman@google.com>
Auto-Submit: Florin Malita <fmalita@chromium.org>
Reviewed-by: Ben Wagner <bungeman@google.com>
2021-07-01 20:55:59 +00:00
Florin Malita
d584ddd151 Add skottie-vs-png decode bench
Three flavors:

  - png data  -> bitmap
  - json data -> skottie::Animation -> SkPicture
  - json data -> skottie::Animation

    micros   	bench
     70.20  	decode_png_small	nonrendering
      4.32 ?	decode_skottiepic_small	nonrendering
      3.71 ?	decode_skottie_small	nonrendering

   4589.10  	decode_png_medium	nonrendering
    117.48 ?	decode_skottiepic_medium	nonrendering
     76.69 ?	decode_skottie_medium	nonrendering

  30895.97  	decode_png_large	nonrendering
   4911.16  	decode_skottiepic_large	nonrendering
   4640.39  	decode_skottie_large	nonrendering

Change-Id: Id93be15f453b70e8cb51ea38f33adc1ebc9ce562
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/423819
Reviewed-by: Florin Malita <fmalita@google.com>
Commit-Queue: Florin Malita <fmalita@google.com>
2021-07-01 20:18:03 +00:00
Robert Phillips
4d45e09202 Rename experimental app to 'sorttoy'
Bug: skia:11837
Change-Id: Id111281d0ec9ab0ebf93b9352a64eef9574bfcb0
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/424040
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
2021-07-01 19:11:26 +00:00
Robert Phillips
7cef6789fd Change architecture #defines to be SK_GPU_V1 and SK_GPU_V2
A strictly mechanical CL

Bug: skia:11837
Change-Id: Id794d1fefe261d685b19e5d4d599cdab5e021cf7
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/424038
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
2021-07-01 18:42:53 +00:00
Brian Salomon
db1748475c BackendAllocationTest doesn't need blend for alpha-only color types
Change-Id: I989cae92d24eb487ce5ddf7b0c513982d35bb688
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/423998
Commit-Queue: Robert Phillips <robertphillips@google.com>
Auto-Submit: Brian Salomon <bsalomon@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
2021-07-01 18:34:13 +00:00
Chris Dalton
6904303a66 Add an isinf() polyfill for tessellation shaders
Tessellation uses infinity to flag conics, and also as a conic weight
that converts them into triangles. The es2 shading language doesn't
support infinity. This CL adds a "portable infinity" mode, where we
pretend inputs >= 2^126 are infinity. The rationale for doing this is
that those numbers are so large, they will overflow if we try to do any
bezier math with then anyway.

Bug: chromium:1220246
Change-Id: I3ad29ebb6fbbad5d23cfdba7a2717605009f8180
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/423697
Commit-Queue: Chris Dalton <csmartdalton@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
2021-07-01 18:30:13 +00:00
Mike Reed
ebf89a0eed Simplify uses of asBlendMode
Takes advantage of optional == operators

Change-Id: Ia83c99c487a6398c314b3c05f3ae47d3fe989348
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/423818
Reviewed-by: Florin Malita <fmalita@chromium.org>
Commit-Queue: Mike Reed <reed@google.com>
2021-07-01 18:00:34 +00:00
Chris Dalton
bb995e60a3 Add an sk_VertexID workaround for tessellated stroking
Tessellation should now be completely free of its dependence on
sk_VertexID.

Bug: chromium:1220246
Change-Id: I4027099392b92e45aee7d8417945335352e3416e
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/423496
Commit-Queue: Chris Dalton <csmartdalton@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
2021-07-01 17:43:23 +00:00
Robert Phillips
024668cf7f Rename gn options to skgpu_v1 and skgpu_v2
Bug: skia:11837
Change-Id: Ie9221d2cd8e42bebb6a8a9a8ef51ba4a488ce6ca
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/424036
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
2021-07-01 17:09:33 +00:00