Commit Graph

59696 Commits

Author SHA1 Message Date
skia-autoroll
396ff9f275 Roll SwiftShader from 561264b73b36 to fc40ddd2a901 (3 revisions)
https://swiftshader.googlesource.com/SwiftShader.git/+log/561264b73b36..fc40ddd2a901

2022-03-06 swiftshader.regress@gmail.com Regres: Update test lists @ 60bf3b4c
2022-03-04 swiftshader.regress@gmail.com Regres: Update test lists @ 561264b7
2022-03-04 dvet@google.com Update debug info code to compile with latest LLVM

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 brianosman@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: brianosman@google.com
Change-Id: I5578eabea91532cfa8db4cb312d385a0b16d7377
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/516696
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Bot-Commit: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2022-03-07 04:48:48 +00:00
skia-autoroll
0152ee9981 Roll Dawn from d58b7ef97bde to 95f44fd3b3fd (18 revisions)
https://dawn.googlesource.com/dawn.git/+log/d58b7ef97bde..95f44fd3b3fd

2022-03-06 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll vulkan-deps from b207b888452e to 29cf938afd2a (1 revision)
2022-03-06 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll SwiftShader from 60bf3b4cf91b to fc40ddd2a901 (1 revision)
2022-03-06 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll ANGLE from e67027c2df29 to 36132a265702 (1 revision)
2022-03-05 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll vulkan-deps from 8c1205c391dc to b207b888452e (1 revision)
2022-03-05 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll SwiftShader from e1930f0fac2b to 60bf3b4cf91b (1 revision)
2022-03-05 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll ANGLE from bf3cdca5844b to e67027c2df29 (7 revisions)
2022-03-05 enga@chromium.org Remove WGSL readonly-storage to storage binding type promotion
2022-03-05 shrekshao@google.com Allow sparse color attachments
2022-03-05 hao.x.li@intel.com Add timestampWrites on render/compute passes
2022-03-04 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll vulkan-deps from e572921329ff to 8c1205c391dc (6 revisions)
2022-03-04 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll Tint from d1003645cb39 to 4cb132918164 (1 revision)
2022-03-04 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll SwiftShader from 561264b73b36 to e1930f0fac2b (1 revision)
2022-03-04 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll ANGLE from b72718d23720 to bf3cdca5844b (10 revisions)
2022-03-04 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll Tint from c7e2e32d489d to d1003645cb39 (2 revisions)
2022-03-04 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll Tint from 80fa1bbd5615 to c7e2e32d489d (1 revision)
2022-03-04 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll vulkan-deps from 81af4024f34b to e572921329ff (1 revision)
2022-03-04 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll SwiftShader from 39fdd0d506bf to 561264b73b36 (4 revisions)
2022-03-04 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll ANGLE from 7b202392bf9f to b72718d23720 (5 revisions)

Also rolling transitive DEPS:
  https://dawn.googlesource.com/tint from 80fa1bbd5615 to 4cb132918164

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 bclayton@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: bclayton@google.com
Change-Id: I62c4f860aef7d25c6ccadcbc24cd3765a05d1c6e
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/516698
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Bot-Commit: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2022-03-07 04:43:48 +00:00
skia-recreate-skps@skia-swarming-bots.iam.gserviceaccount.com
f029354f16 Update SKP version
Automatic commit by the RecreateSKPs bot.

Change-Id: I8be10a4093ac38d4c98223e601c89e8c204efcce
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/516559
Commit-Queue: skia-recreate-skps@skia-swarming-bots.iam.gserviceaccount.com <skia-recreate-skps@skia-swarming-bots.iam.gserviceaccount.com>
Bot-Commit: skia-recreate-skps@skia-swarming-bots.iam.gserviceaccount.com <skia-recreate-skps@skia-swarming-bots.iam.gserviceaccount.com>
2022-03-06 07:59:41 +00:00
skia-autoroll
d7bcfecfaf Roll SK Tool from c5b107e57d75 to 871de5b784ca
https://skia.googlesource.com/buildbot.git/+log/c5b107e57d75..871de5b784ca

2022-03-06 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 borenet@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: borenet@google.com
Change-Id: Ie7093773a9c8291ca5c133d3446b203da5fe688f
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/516557
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Bot-Commit: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2022-03-06 06:08:16 +00:00
Kevin Lubick
cf67cbeb2f Fix int underflow in SkReadBuffer
We don't want to use any negative index in fFactoryArray.

Change-Id: Ib87b3c0a28fb61653dbffc700a96001421930060
Bug: oss-fuzz:42237
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/516376
Commit-Queue: Kevin Lubick <kjlubick@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
2022-03-04 21:37:18 +00:00
Brian Osman
0817ce7c5b Add SK_LENIENT_SKSL_DESERIALIZATION, enabled in Debugger
When deserializing an SkSL shader, it's possible to encounter code that
doesn't compile (particularly from the last year, when syntax tweaks
were being made). By default, we still treat this as an error and fail
to load the SKP. In the SKP debugger, though, we add a lenient mode that
permits these failures. If any of the children were SkShaders, we
instead return that. If all else fails, we just return nullptr, which
will cause the triggering draw to use a solid paint-color, but at least
allow the SKP to be loaded and viewed.

For color-filters and blenders, we allow malformed SkSL, but always
return nullptr.

The bug that prompted this change involved Android's overscroll stretch
shader, where this approach works particularly well (it turns the
stretch into a simple pass-through of the underlying content).

Change-Id: I756c694739d31b11efa1b82c126f34440a7de66a
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/515543
Reviewed-by: John Stiles <johnstiles@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
2022-03-04 20:58:47 +00:00
John Stiles
694823b5cb Remove unused code from the SPIRVCodeGenerator.
Change-Id: I417dd9716aa1d0e861f98ad27cd18e00c3674131
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/515677
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
2022-03-04 20:36:37 +00:00
John Stiles
dae33f857f Use SkTHashMap for the SkSL Inliner.
Change-Id: Icd175fb400d4c7d7bc8f072a58e9abb9fb42df2f
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/516156
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Arman Uguray <armansito@google.com>
Commit-Queue: Arman Uguray <armansito@google.com>
2022-03-04 20:09:23 +00:00
Ben Wagner
8bf4580c3c Update ImGui power sliders in Viewer
The power sliders have been deprecated in favor of specifying that the
sliders are logarithmic. This doesn't appear to work very well, but at
least it doesn't crash at runtime with an assert.

Change-Id: I2c80aaf8e387efbb878c81a1ca0f754f6c45e80a
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/516160
Commit-Queue: Ben Wagner <bungeman@google.com>
Auto-Submit: Ben Wagner <bungeman@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
2022-03-04 20:00:19 +00:00
John Stiles
1a01d5a1f1 Remove unused members from GLSLCodeGenerator.
Change-Id: I49ed41170d5ac39658554435f806af0218911316
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/516158
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
2022-03-04 19:16:13 +00:00
Ravi Mistry
9a822433df Pull the latest doxygen image
Bug: skia:13020
Change-Id: I32ac1f7593f85da76a883d795cd9803f55a42f24
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/516076
Reviewed-by: Joe Gregorio <jcgregorio@google.com>
Commit-Queue: Ravi Mistry <rmistry@google.com>
2022-03-04 19:08:05 +00:00
John Stiles
bc6b9df7c6 Use SkTHashMap for the MetalCodeGenerator.
We seem to save about 1K of code size each time an unordered_set/map is
replaced.

Change-Id: I7e04076d470e6c7ad4ae8301ded231ae69168bc8
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/515361
Reviewed-by: Arman Uguray <armansito@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
2022-03-04 19:01:18 +00:00
John Stiles
b3deb0a652 Use SkTHashMap for the intrinsic-name map.
This leverages our new ability to initialize a hash map at construction
time (http://review.skia.org/515319)

Change-Id: I2e6038b3a6645f19128930d3c58707a682b5232f
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/515320
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
2022-03-04 18:55:12 +00:00
John Stiles
6105180115 Use SkTHashMap for the PipelineStageCodeGenerator.
Change-Id: I7b10f475598b070b1b690f38dc7d54b40f240f14
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/515676
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
2022-03-04 18:51:46 +00:00
John Stiles
7957918db3 Use SkTHashMap for the BuiltinMap.
Change-Id: I6f50d8020c15acf664cdfcb2918c2e547427b838
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/515321
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
2022-03-04 18:50:03 +00:00
Greg Daniel
11206c3faf [graphite] Add support for caching discardable msaa textures
Bug: skia:12754
Change-Id: I66f5f64dc6d27f3bd9bf936fd5989531e33ecdc7
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/515856
Reviewed-by: Jim Van Verth <jvanverth@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
2022-03-04 17:47:11 +00:00
Robert Phillips
a27ddd9167 [graphite] Add plumbing of prior stage's output to glue code
The blend mode implementation, in particular, will require access to
the prior stage's result.

Bug: skia:12701
Change-Id: I8db0d70edf0c17b934a3d751d2b632765e0900df
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/514958
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
2022-03-04 16:47:35 +00:00
Greg Daniel
2e7a5061b0 [graphite] Use ResourceCache for stencil attachments.
Bug: skia:12754
Change-Id: Iec046dedb088f226e5928712222fa786426b2689
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/515517
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
2022-03-04 15:44:45 +00:00
Greg Daniel
4d428f375c Add ability to query gl format enum from GrBackendTexture.
Change-Id: I5faec55b8fddb718999dae8c6b2e7badb6a85efb
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/515178
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
2022-03-04 14:28:30 +00:00
Joe Gregorio
87496d3cc9 Fix doxygen README.md to use python3.
Change-Id: Ie4ce9604f3c00f31a1f0117afeaa0ea6f30e9bd8
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/515719
Reviewed-by: Ravi Mistry <rmistry@google.com>
2022-03-04 14:21:35 +00:00
skia-autoroll
6bb185bf54 Roll ANGLE from 6cb08a2203e3 to b72718d23720 (11 revisions)
6cb08a2203..b72718d237

2022-03-03 cclao@google.com Vulkan: Fix the data race for mUse from two threads
2022-03-03 abdolrashidi@google.com Add angle_white_box_tests to SwANGLE tests
2022-03-03 tsniatowski@vewd.com Don't create a string out of a nullptr
2022-03-03 hailinzhang@google.com add host cached bit for staging buffer
2022-03-03 jmadill@chromium.org Vulkan: Fix issue with redefining a layered attachment.
2022-03-03 cnorthrop@google.com Capture/Replay: Fix capture on Linux
2022-03-03 timvp@google.com WATCHLISTS: Remove timvp@ from 'vulkan'
2022-03-03 romanl@google.com Fix glClearColor calls to use GLColor32F constants.
2022-03-03 m.maiya@samsung.com Vulkan: Reserve memory in move-constructor of ResourceUseList
2022-03-03 angle-autoroll@skia-public.iam.gserviceaccount.com Roll SwiftShader from 383901609736 to 7089ef18891d (10 revisions)
2022-03-03 angle-autoroll@skia-public.iam.gserviceaccount.com Roll vulkan-deps from 7f867484330b to a30aef1d7967 (4 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 kjlubick@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: kjlubick@google.com
Test: Test: MEC of an existing trace on Linux
Change-Id: I2738e0acb00ffc3171fe2d116ecd9d27cfe457b7
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/515700
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Bot-Commit: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2022-03-04 05:30:11 +00:00
skia-autoroll
3646be8740 Roll SwiftShader from 82d425db023c to 561264b73b36 (10 revisions)
https://swiftshader.googlesource.com/SwiftShader.git/+log/82d425db023c..561264b73b36

2022-03-04 capn@google.com Remove explicit broadcasts of constants in fragment operations
2022-03-03 capn@google.com Fix obtaining the RelaxedPrecision decoration from the result ID
2022-03-03 natsu@google.com Support VK_FORMAT_G10X6_B10X6R10X6_2PLANE_420_UNORM_3PACK16
2022-03-03 dvet@google.com Update googletest submodule to release-1.11.0
2022-03-03 capn@google.com Benchmark mediump GLSL.std.450 instructions
2022-03-03 capn@google.com Simplify obtaining SPIR-V decorations
2022-03-03 capn@google.com Remove duplicate transcendental functions
2022-03-03 capn@google.com Optimize log2() polynomial evaluation using FMA
2022-03-03 capn@google.com Remove exp/log constant propagation TODOs
2022-03-03 capn@google.com Optimize exp2() polynomial evaluation using FMA

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 kjlubick@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: kjlubick@google.com
Change-Id: I6a3d6bd3c333c92d2e62fcf3d26108076723a0fa
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/515699
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Bot-Commit: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2022-03-04 04:48:47 +00:00
skia-autoroll
fb298ad842 Roll Dawn from 2817d1f98dc0 to d58b7ef97bde (8 revisions)
https://dawn.googlesource.com/dawn.git/+log/2817d1f98dc0..d58b7ef97bde

2022-03-03 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll vulkan-deps from 85612ac7910e to 81af4024f34b (6 revisions)
2022-03-03 bclayton@google.com Roll WebGPU IDL, update dawn/node bindings.
2022-03-03 lokokung@google.com Extends current CachedObject interface to allow setting and getting cache keys.
2022-03-03 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll ANGLE from 6cb08a2203e3 to 7b202392bf9f (6 revisions)
2022-03-03 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll SwiftShader from 82d425db023c to 39fdd0d506bf (6 revisions)
2022-03-03 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll vulkan-deps from 195bbd48447b to 85612ac7910e (1 revision)
2022-03-03 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll ANGLE from 15b558c19c9f to 6cb08a2203e3 (2 revisions)
2022-03-03 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll SwiftShader from 58d1eecc2ec8 to 82d425db023c (6 revisions)

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 bclayton@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: bclayton@google.com
Change-Id: I471ac8e08e087c88176f82768128639ac163a44a
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/515701
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Bot-Commit: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2022-03-04 04:43:47 +00:00
John Stiles
6ff07e0b02 Add initializer-list construction to SkTHashSet/Map.
This will allow us to easily replace unordered_set/unordered_map in more
places.

Change-Id: Ic0b5245e8cdce2918d7b043bfc370eca95caf889
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/515319
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Ben Wagner <bungeman@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
2022-03-03 22:40:20 +00:00
John Stiles
227af34e24 Use SkTHashMap for parser layout tokens.
It seems to reduce code size by about 1K every time we remove an
unordered map.

Change-Id: I120aa6130b4283c7d41b9db5bfeec3c2eb99bcd4
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/515545
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
2022-03-03 21:25:41 +00:00
Nathaniel Nifong
3bf76ab829 Add debugger as an optional module in canvaskit
Change-Id: I7d866aab2a74bbb4c8d4f2cf7901d4b679c0cbe9
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/515516
Reviewed-by: Kevin Lubick <kjlubick@google.com>
Commit-Queue: Nathaniel Nifong <nifong@google.com>
2022-03-03 21:06:17 +00:00
John Stiles
7b40626ca9 Fix debugger return-value display with repeated function calls.
The slot-assignment logic has been changed to associate slots with
function calls, instead of function definitions. In our test case, you
can now see that the calls to `get` are now mapped to $15, $17 and $18.
This change also jiggles some existing tests and improves their
register allocation slightly (!).

One minor hitch here is that there's no FunctionCall node associated
with main() (it's never explicitly called). However, our slot map key
can be any IRNode, and we know main() can't be called by anyone else,
so it's harmless to use the function definition as the key in this case.
(This entry could probably stay out the map entirely if it made a
difference, but I don't think it matters.)

Change-Id: I68a6ff24cbd3a2db77f24126502bd3d11e8c0962
Bug: skia:13011
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/514578
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
2022-03-03 20:55:25 +00:00
John Stiles
d9f9f1813c Add test demonstrating issue with function calls.
If a function is called multiple times on one line, stepping over that
line does not show all of the function-call results. It only shows the
last result.

e.g. in this example, I have just stepped over the first line which
calls "get" three times. We should see three results, but we only see
one: http://screen/3WfJoZWm77cSexM

In this test you can see that all three calls to `get` are assigned to
the same slot, $15.

Change-Id: Id0c486ef349a1e527001efbcee2ed2b836f56e83
Bug: skia:13011
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/514577
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
2022-03-03 20:55:25 +00:00
John Stiles
ae8d412b9a Add null check to DebugTracePlayer.
Navigating away from the Debugger in Viewer could lead to a null
dereference.

Change-Id: I2686edd3716e7a375d394a4dc1a296395b5f35b8
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/514579
Reviewed-by: Arman Uguray <armansito@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
2022-03-03 20:55:25 +00:00
Jorge Betancourt
c8e520e722 remove scaled stroke guards
should not be pushed until scuba is updated (cl/431716076)

Change-Id: Ic1b6b76eb0ebd1ab0c9d7875c7b5789af39e21c1
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/514763
Reviewed-by: Florin Malita <fmalita@google.com>
Commit-Queue: Jorge Betancourt <jmbetancourt@google.com>
2022-03-03 20:41:29 +00:00
Robert Phillips
b2ba7ee497 [graphite] Move SkShaderInfo::SnippetEntry to SkShaderSnippet
In a following CL the ShaderSnippet will need to shared between the SkPaintParamsKey and the SkShaderDictionary.

Bug: skia:12701
Change-Id: I69935765a32a5a0eb61a23178037ab6be3d110b3
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/515357
Reviewed-by: Jim Van Verth <jvanverth@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
2022-03-03 20:09:24 +00:00
Dominik Röttsches
b85e213811 Use default palette index when base palette index out of range
If the requested palette index is not found in the font, use default
palette at index 0. This implements the current specification of
https://www.w3.org/TR/css-fonts-4/#base-palette-desc .

Change-Id: I614f1738e75a5dde573ff117c413dadafcca1e52
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/515377
Reviewed-by: Dominik Röttsches <drott@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
2022-03-03 19:54:10 +00:00
John Stiles
6f8a444249 Replace Caps lookup table with an SkTHashMap.
This is rarely accessed so I don't expect much impact on performance,
but it will be interesting to see if it impacts code size.

Change-Id: I407ef5f8dc71f328e541243073b7e82dd1303268
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/515359
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
2022-03-03 18:34:17 +00:00
John Stiles
be46542a7f Update SkTHashSet tests to use std::string/string_view.
This leverages our new support for standard strings in SkGoodHash, added
in prior CL http://review.skia.org/515356.

These tests already included checks for SkString, so it was easy to add
a template which tested std::string and std::string_view with the same
checks.

Change-Id: Ia2d9b889e66a50556a25e40493d14a5b692214a8
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/515358
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Ben Wagner <bungeman@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
2022-03-03 18:09:00 +00:00
John Stiles
847f03ab20 Add std::string/string_view support to SkGoodHash.
This will allow these types to be used as the key in an SkTHashSet/Map
without providing a custom Traits class.

Change-Id: I41bfc1d43f3909d3653b4f12ac39e2a288235052
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/515356
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Ben Wagner <bungeman@google.com>
2022-03-03 18:09:00 +00:00
Dominik Röttsches
d83760cddc Fix typo in SkFontDescriptor palette setter method
Change-Id: Ibadff5873ca410a1c1287800690d6230febc5022
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/515436
Auto-Submit: Dominik Röttsches <drott@chromium.org>
Reviewed-by: Ben Wagner <bungeman@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
2022-03-03 18:00:47 +00:00
Jorge Betancourt
bf9bc6de39 [skottie] scale stroke on text layers after shaping
Change-Id: I657e1ad43dc440fe8b24f690674308ec9b312e9e
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/514956
Reviewed-by: Florin Malita <fmalita@google.com>
Commit-Queue: Jorge Betancourt <jmbetancourt@google.com>
2022-03-03 16:18:16 +00:00
Kevin Lubick
5fb37db69f [bazel] Use bazel to build task drivers
One very important, but agonizing to discover, change was
to go_repositories.bzl. Without it, we see cryptic errors like:
external/org_chromium_go_luci/cipd/api/cipd/v1/BUILD.bazel:22:17: no such package '@org_chromium_go_luci//go.chromium.org/luci/cipd/api/cipd/v1': BUILD file not found in directory 'go.chromium.org/luci/cipd/api/cipd/v1' of external repository @org_chromium_go_luci. Add a BUILD file to a directory to mark it as a package. and referenced by '@org_chromium_go_luci//cipd/api/cipd/v1:api_go_proto'

The rest of these changes are very similar to
https://skia-review.googlesource.com/c/buildbot/+/514074
which also has justification for the use of task drivers,
even in a Bazel-driven world.

All the BUILD.bazel files under infra/bots/task_drivers were
generated by Gazelle.

Note that the infra/bots/BUILD.bazel can happily build and
package up the task drivers from the infra repo. The old
build_task_drivers tasks did this too, because we have some
task drivers that are used in both repos.

Change-Id: I13c46c62bc7a6a4bfe7935b28efbfb34caabb6f2
Bug: skia:12541
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/515296
Reviewed-by: Eric Boren <borenet@google.com>
Commit-Queue: Kevin Lubick <kjlubick@google.com>
2022-03-03 16:12:18 +00:00
Greg Daniel
5bec818c1f [graphite] Add validation checks to ResourceCache
Bug: skia:12754
Change-Id: Ie88290f18864d61138964eb618dc6ac2d6ff4fe0
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/508916
Reviewed-by: Jim Van Verth <jvanverth@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
2022-03-03 14:59:11 +00:00
skia-autoroll
404c7e1b39 Roll ANGLE from 51967b4fcf92 to 6cb08a2203e3 (6 revisions)
51967b4fcf..6cb08a2203

2022-03-03 ynovikov@chromium.org Revert "Increase end2end timeout and sharding on Pixel 6"
2022-03-02 m.maiya@samsung.com Fix unaligned reads on armeabi-v7a
2022-03-02 angle-autoroll@skia-public.iam.gserviceaccount.com Roll vulkan-deps from 6f0521f42451 to 7f867484330b (2 revisions)
2022-03-02 angle-autoroll@skia-public.iam.gserviceaccount.com Roll SwiftShader from 6e9eafd34639 to 383901609736 (1 revision)
2022-03-02 angle-autoroll@skia-public.iam.gserviceaccount.com Roll Chromium from 4f52dd6c4de1 to e2a60c1d35cf (443 revisions)
2022-03-02 cnorthrop@google.com Vulkan: Disable shader validation cache on Android

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 kjlubick@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: kjlubick@google.com
Test: Test: VertexAttributeTestES3.DrawWithUnalignedData*
Test: Test: angle_end2end_tests --gtest_filter="*GLSLTest*Fragment*ES3_Vulkan"
Change-Id: Ia79e75b29517a0a138f2cb4da7c568e2dfebb644
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/515217
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Bot-Commit: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2022-03-03 05:46:46 +00:00
skia-autoroll
fa5b111fa1 Roll SwiftShader from 383901609736 to 82d425db023c (7 revisions)
https://swiftshader.googlesource.com/SwiftShader.git/+log/383901609736..82d425db023c

2022-03-03 capn@google.com Disambiguate operations on single-component swizzles
2022-03-02 srisser@google.com Roll git-hooks forward
2022-03-02 capn@google.com Optimize sin() range reduction using FMA
2022-03-02 capn@google.com Optimize sin/cos polynomial evaluation using FMA
2022-03-02 capn@google.com Implement implicit broadcast of scalar constants
2022-03-02 capn@google.com Treat YCbCr images bound to Android hardware buffers as disjoint
2022-03-02 nicolascapens@google.com Merge changes Id4b3df16,Id12e7fe6

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 kjlubick@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: kjlubick@google.com
Change-Id: Ie5e280abd064e2e31e0c7be5bd10d14bcc4356dd
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/515216
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Bot-Commit: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2022-03-03 04:46:51 +00:00
skia-autoroll
3b499cb785 Roll Dawn from a24acf2fbc8a to 2817d1f98dc0 (8 revisions)
https://dawn.googlesource.com/dawn.git/+log/a24acf2fbc8a..2817d1f98dc0

2022-03-03 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll Tint from ecb570ff6489 to 80fa1bbd5615 (1 revision)
2022-03-02 enga@chromium.org Vulkan: Skip newLayout transition on import if not specified
2022-03-02 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll Tint from 17601930e496 to ecb570ff6489 (7 revisions)
2022-03-02 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll vulkan-deps from 7f867484330b to 195bbd48447b (1 revision)
2022-03-02 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll Tint from 4acf466ff916 to 17601930e496 (1 revision)
2022-03-02 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll ANGLE from 37bfc40d1bfc to 15b558c19c9f (5 revisions)
2022-03-02 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll SwiftShader from 383901609736 to 58d1eecc2ec8 (1 revision)
2022-03-02 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll vulkan-deps from 6f0521f42451 to 7f867484330b (2 revisions)

Also rolling transitive DEPS:
  https://dawn.googlesource.com/tint from 4acf466ff916 to 80fa1bbd5615

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 bclayton@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: bclayton@google.com
Change-Id: Ia146e1e75a876f72eda324558dcae686d955e9ed
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/515218
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Bot-Commit: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2022-03-03 04:42:42 +00:00
Jim Van Verth
e43d00a219 [graphite] Add isGaneshBacked and isGraphiteBacked
Bug: skia:12845
Change-Id: Ib0b87966b1559b368759ce69c48f0fd27597503a
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/514836
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Jim Van Verth <jvanverth@google.com>
2022-03-02 23:35:16 +00:00
Ben Wagner
d1b52f58a7 Roll HarfBuzz from a8b7f188 to 8d1b000a (207 commits)
a8b7f18804..8d1b000a3e

Updates to 4.0.0.

Change-Id: Id5fafcb6c811b4f0b2cb5fc5a4fb552979833872
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/514175
Reviewed-by: Kevin Lubick <kjlubick@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
Auto-Submit: Ben Wagner <bungeman@google.com>
2022-03-02 22:34:16 +00:00
John Stiles
8a5575ded9 Combine fVariableMap and fReturnValueMap into one map.
Both maps are tracking the same information (slot value associated with
a given SkSL IR construct) so it probably reduces overhead to combine
them into one.

Also, replaced unordered_map with SkTHashMap since Skia hash maps tend
to be much more efficient in general.

Change-Id: I80f8fc214423685c888b18ead6d4148e32a7ccb6
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/515116
Commit-Queue: John Stiles <johnstiles@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
2022-03-02 22:15:41 +00:00
Jim Van Verth
5d6e655004 [graphite] Add SkImage::makeTextureImage for Graphite.
Also adds in asView for texture-backed Image as well as stubs for
other Image types.

Bug: skia:12845
Change-Id: I58a90068d4d151ad35f411b08c8484c740253722
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/507336
Reviewed-by: Robert Phillips <robertphillips@google.com>
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Jim Van Verth <jvanverth@google.com>
2022-03-02 21:30:10 +00:00
Ben Wagner
2381876f4f Roll FreeType from 5e9caaee to 034e5dbf (41 commits)
5e9caaee78..034e5dbf92

Change-Id: I31988c03239e6ed3c3cd24f8f576515a29671459
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/515036
Commit-Queue: Ben Wagner <bungeman@google.com>
Auto-Submit: Ben Wagner <bungeman@google.com>
Reviewed-by: Kevin Lubick <kjlubick@google.com>
Commit-Queue: Kevin Lubick <kjlubick@google.com>
2022-03-02 20:35:49 +00:00
Greg Daniel
a025a1b17e [graphite] Fix ResourceCache thread safety when purging resources.
Because it is possible for a Resource to get added to a ReturnQueue
after we've decided to purge it from the Cache (see comments in change
for scenarios), the current ResourceCache could end up deleting the
Resource while something is still trying to use it. This CL fixes those
issues with a few key changes:

1) We don't allow a Resource to be added to the ReturnQueue multiple
times.
2) We make use of a third ref, fCacheRef, to track a Resource being
held in the Cache or Cache's ReturnQueue.

Bug: skia:12754
Change-Id: I9ab2b5967057daa5a83dc24a9f5bf255218b46cb
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/514119
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
2022-03-02 19:21:47 +00:00
Robert Phillips
b61366b54f [graphite] Rename SkUniformBlock to SkPipelineData
and:
 UniformCache -> PipelineDataCache
 UniformCacheTest -> PipelineDataCacheTest

Bug: skia:12701
Change-Id: Ia28c223edb8d741d15fa9fa83695ac6b99284d5e
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/514156
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
2022-03-02 17:01:07 +00:00
John Stiles
60c5837632 Fix Housekeeper-PerCommit-CheckGeneratedFiles.
I added a comment and didn't rebuild; this shifted line numbers around,
which is reflected in the debug trace opcodes.

Change-Id: I1b8e00ff65557a03483e8d7ff0c4dbec9852866f
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/514777
Commit-Queue: John Stiles <johnstiles@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Kevin Lubick <kjlubick@google.com>
Commit-Queue: Kevin Lubick <kjlubick@google.com>
2022-03-02 16:42:10 +00:00