Commit Graph

59447 Commits

Author SHA1 Message Date
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
Nathaniel Nifong
387d661db9 Dump path in json representaion of DrawPath command
Bug: skia:6981
Change-Id: Ib4654b0182167e9f7d3e6240359c2d56cad5818f
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/514460
Reviewed-by: Kevin Lubick <kjlubick@google.com>
Auto-Submit: Nathaniel Nifong <nifong@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
2022-03-02 16:34:46 +00:00
John Stiles
e11a14d17f Add workaround for LLVM crash in macOS 12 on Intel or M1.
The `break_loop` test causes LLVM to get confused and crash when
compiled on some GPUs. The crash goes away if we pass a literal 5
instead of a 5 that is computed at runtime. This also results in a
simpler test for SkVM, for better or worse, but we still have
coverage for dynamic loop exits in other tests.

LLVM crash: https://paste.googleplex.com/4718583155261440
Dangerous shader: https://paste.googleplex.com/4776089520963584

Change-Id: Ic6cbd55a36d2de58e5dd3459d4dfd74acdbc9f91
Bug: skia:13005
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/514538
Reviewed-by: Arman Uguray <armansito@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
2022-03-02 15:20:10 +00:00
John Stiles
7bc2701ae8 Disable SkSLUnaryPositiveNegative test on Mali 400 (Android One).
This GPU has lots of basic problems with matrices in GLSL, so this is
not entirely unexpected.

Change-Id: I21f663f7637f10320f7ce8a2a66e5e621bbca621
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/514776
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Kevin Lubick <kjlubick@google.com>
Commit-Queue: Kevin Lubick <kjlubick@google.com>
2022-03-02 15:10:18 +00:00
dependabot[bot]
98b1cc92c7 Bump karma from 6.3.2 to 6.3.16 in /modules/canvaskit
Bumps [karma](https://github.com/karma-runner/karma) from 6.3.2 to 6.3.16.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/karma-runner/karma/releases">karma's releases</a>.</em></p>
<blockquote>
<h2>v6.3.16</h2>
<h2><a href="https://github.com/karma-runner/karma/compare/v6.3.15...v6.3.16">6.3.16</a> (2022-02-10)</h2>
<h3>Bug Fixes</h3>
<ul>
<li><strong>security:</strong> mitigate the &quot;Open Redirect Vulnerability&quot; (<a href="ff7edbb2ff">ff7edbb</a>)</li>
</ul>
<h2>v6.3.15</h2>
<h2><a href="https://github.com/karma-runner/karma/compare/v6.3.14...v6.3.15">6.3.15</a> (2022-02-05)</h2>
<h3>Bug Fixes</h3>
<ul>
<li><strong>helper:</strong> make mkdirIfNotExists helper resilient to concurrent calls (<a href="d9dade2f00">d9dade2</a>), closes <a href="https://github-redirect.dependabot.com//github-redirect.dependabot.com/karma-runner/karma-coverage/issues/434/issues/issuecomment-1017939333">karma-runner/karma-coverage#434</a></li>
</ul>
<h2>v6.3.14</h2>
<h2><a href="https://github.com/karma-runner/karma/compare/v6.3.13...v6.3.14">6.3.14</a> (2022-02-05)</h2>
<h3>Bug Fixes</h3>
<ul>
<li>remove string template from client code (<a href="91d5acda63">91d5acd</a>)</li>
<li>warn when <code>singleRun</code> and <code>autoWatch</code> are <code>false</code> (<a href="69cfc763c8">69cfc76</a>)</li>
<li><strong>security:</strong> remove XSS vulnerability in <code>returnUrl</code> query param (<a href="839578c45a">839578c</a>)</li>
</ul>
<h2>v6.3.13</h2>
<h2><a href="https://github.com/karma-runner/karma/compare/v6.3.12...v6.3.13">6.3.13</a> (2022-01-31)</h2>
<h3>Bug Fixes</h3>
<ul>
<li><strong>deps:</strong> bump log4js to resolve security issue (<a href="5bf2df3044">5bf2df3</a>), closes <a href="https://github-redirect.dependabot.com/karma-runner/karma/issues/3751">#3751</a></li>
</ul>
<h2>v6.3.12</h2>
<h2><a href="https://github.com/karma-runner/karma/compare/v6.3.11...v6.3.12">6.3.12</a> (2022-01-24)</h2>
<h3>Bug Fixes</h3>
<ul>
<li>remove depreciation warning from log4js (<a href="41bed33bf4">41bed33</a>)</li>
</ul>
<h2>v6.3.11</h2>
<h2><a href="https://github.com/karma-runner/karma/compare/v6.3.10...v6.3.11">6.3.11</a> (2022-01-13)</h2>
<h3>Bug Fixes</h3>
<ul>
<li><strong>deps:</strong> pin colors package to 1.4.0 due to security vulnerability (<a href="a5219c52e2">a5219c5</a>)</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/karma-runner/karma/blob/master/CHANGELOG.md">karma's changelog</a>.</em></p>
<blockquote>
<h2><a href="https://github.com/karma-runner/karma/compare/v6.3.15...v6.3.16">6.3.16</a> (2022-02-10)</h2>
<h3>Bug Fixes</h3>
<ul>
<li><strong>security:</strong> mitigate the &quot;Open Redirect Vulnerability&quot; (<a href="ff7edbb2ff">ff7edbb</a>)</li>
</ul>
<h2><a href="https://github.com/karma-runner/karma/compare/v6.3.14...v6.3.15">6.3.15</a> (2022-02-05)</h2>
<h3>Bug Fixes</h3>
<ul>
<li><strong>helper:</strong> make mkdirIfNotExists helper resilient to concurrent calls (<a href="d9dade2f00">d9dade2</a>), closes <a href="https://github-redirect.dependabot.com//github-redirect.dependabot.com/karma-runner/karma-coverage/issues/434/issues/issuecomment-1017939333">karma-runner/karma-coverage#434</a></li>
</ul>
<h2><a href="https://github.com/karma-runner/karma/compare/v6.3.13...v6.3.14">6.3.14</a> (2022-02-05)</h2>
<h3>Bug Fixes</h3>
<ul>
<li>remove string template from client code (<a href="91d5acda63">91d5acd</a>)</li>
<li>warn when <code>singleRun</code> and <code>autoWatch</code> are <code>false</code> (<a href="69cfc763c8">69cfc76</a>)</li>
<li><strong>security:</strong> remove XSS vulnerability in <code>returnUrl</code> query param (<a href="839578c45a">839578c</a>)</li>
</ul>
<h2><a href="https://github.com/karma-runner/karma/compare/v6.3.12...v6.3.13">6.3.13</a> (2022-01-31)</h2>
<h3>Bug Fixes</h3>
<ul>
<li><strong>deps:</strong> bump log4js to resolve security issue (<a href="5bf2df3044">5bf2df3</a>), closes <a href="https://github-redirect.dependabot.com/karma-runner/karma/issues/3751">#3751</a></li>
</ul>
<h2><a href="https://github.com/karma-runner/karma/compare/v6.3.11...v6.3.12">6.3.12</a> (2022-01-24)</h2>
<h3>Bug Fixes</h3>
<ul>
<li>remove depreciation warning from log4js (<a href="41bed33bf4">41bed33</a>)</li>
</ul>
<h2><a href="https://github.com/karma-runner/karma/compare/v6.3.10...v6.3.11">6.3.11</a> (2022-01-13)</h2>
<h3>Bug Fixes</h3>
<ul>
<li><strong>deps:</strong> pin colors package to 1.4.0 due to security vulnerability (<a href="a5219c52e2">a5219c5</a>)</li>
</ul>
<h2><a href="https://github.com/karma-runner/karma/compare/v6.3.9...v6.3.10">6.3.10</a> (2022-01-08)</h2>
<h3>Bug Fixes</h3>
<ul>
<li><strong>logger:</strong> create parent folders if they are missing (<a href="0d24bd937f">0d24bd9</a>), closes <a href="https://github-redirect.dependabot.com/karma-runner/karma/issues/3734">#3734</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="ab4b32898b"><code>ab4b328</code></a> chore(release): 6.3.16 [skip ci]</li>
<li><a href="ff7edbb2ff"><code>ff7edbb</code></a> fix(security): mitigate the &quot;Open Redirect Vulnerability&quot;</li>
<li><a href="c1befa04b3"><code>c1befa0</code></a> chore(release): 6.3.15 [skip ci]</li>
<li><a href="d9dade2f00"><code>d9dade2</code></a> fix(helper): make mkdirIfNotExists helper resilient to concurrent calls</li>
<li><a href="653c762be4"><code>653c762</code></a> ci: prevent duplicate CI tasks on creating a PR</li>
<li><a href="c97e562319"><code>c97e562</code></a> chore(release): 6.3.14 [skip ci]</li>
<li><a href="91d5acda63"><code>91d5acd</code></a> fix: remove string template from client code</li>
<li><a href="69cfc763c8"><code>69cfc76</code></a> fix: warn when <code>singleRun</code> and <code>autoWatch</code> are <code>false</code></li>
<li><a href="839578c45a"><code>839578c</code></a> fix(security): remove XSS vulnerability in <code>returnUrl</code> query param</li>
<li><a href="db53785b3e"><code>db53785</code></a> chore(release): 6.3.13 [skip ci]</li>
<li>Additional commits viewable in <a href="https://github.com/karma-runner/karma/compare/v6.3.2...v6.3.16">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=karma&package-manager=npm_and_yarn&previous-version=6.3.2&new-version=6.3.16)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language

You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/google/skia/network/alerts).

</details>

This is an imported pull request from
https://github.com/google/skia/pull/95

GitOrigin-RevId: ae940f93cbf5ebba6d02f722e0c9bc44f49c35c5
Change-Id: Ic9abd882cba29cdd130d5811f7c56fdfae9290de
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/514659
Reviewed-by: Ravi Mistry <rmistry@google.com>
Reviewed-by: Kevin Lubick <kjlubick@google.com>
2022-03-02 14:36:51 +00:00
dependabot[bot]
1c167606cc Bump karma from 6.3.14 to 6.3.16 in /modules/pathkit
Bumps [karma](https://github.com/karma-runner/karma) from 6.3.14 to 6.3.16.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/karma-runner/karma/releases">karma's releases</a>.</em></p>
<blockquote>
<h2>v6.3.16</h2>
<h2><a href="https://github.com/karma-runner/karma/compare/v6.3.15...v6.3.16">6.3.16</a> (2022-02-10)</h2>
<h3>Bug Fixes</h3>
<ul>
<li><strong>security:</strong> mitigate the &quot;Open Redirect Vulnerability&quot; (<a href="ff7edbb2ff">ff7edbb</a>)</li>
</ul>
<h2>v6.3.15</h2>
<h2><a href="https://github.com/karma-runner/karma/compare/v6.3.14...v6.3.15">6.3.15</a> (2022-02-05)</h2>
<h3>Bug Fixes</h3>
<ul>
<li><strong>helper:</strong> make mkdirIfNotExists helper resilient to concurrent calls (<a href="d9dade2f00">d9dade2</a>), closes <a href="https://github-redirect.dependabot.com//github-redirect.dependabot.com/karma-runner/karma-coverage/issues/434/issues/issuecomment-1017939333">karma-runner/karma-coverage#434</a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/karma-runner/karma/blob/master/CHANGELOG.md">karma's changelog</a>.</em></p>
<blockquote>
<h2><a href="https://github.com/karma-runner/karma/compare/v6.3.15...v6.3.16">6.3.16</a> (2022-02-10)</h2>
<h3>Bug Fixes</h3>
<ul>
<li><strong>security:</strong> mitigate the &quot;Open Redirect Vulnerability&quot; (<a href="ff7edbb2ff">ff7edbb</a>)</li>
</ul>
<h2><a href="https://github.com/karma-runner/karma/compare/v6.3.14...v6.3.15">6.3.15</a> (2022-02-05)</h2>
<h3>Bug Fixes</h3>
<ul>
<li><strong>helper:</strong> make mkdirIfNotExists helper resilient to concurrent calls (<a href="d9dade2f00">d9dade2</a>), closes <a href="https://github-redirect.dependabot.com//github-redirect.dependabot.com/karma-runner/karma-coverage/issues/434/issues/issuecomment-1017939333">karma-runner/karma-coverage#434</a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="ab4b32898b"><code>ab4b328</code></a> chore(release): 6.3.16 [skip ci]</li>
<li><a href="ff7edbb2ff"><code>ff7edbb</code></a> fix(security): mitigate the &quot;Open Redirect Vulnerability&quot;</li>
<li><a href="c1befa04b3"><code>c1befa0</code></a> chore(release): 6.3.15 [skip ci]</li>
<li><a href="d9dade2f00"><code>d9dade2</code></a> fix(helper): make mkdirIfNotExists helper resilient to concurrent calls</li>
<li><a href="653c762be4"><code>653c762</code></a> ci: prevent duplicate CI tasks on creating a PR</li>
<li>See full diff in <a href="https://github.com/karma-runner/karma/compare/v6.3.14...v6.3.16">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=karma&package-manager=npm_and_yarn&previous-version=6.3.14&new-version=6.3.16)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language

You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/google/skia/network/alerts).

</details>

This is an imported pull request from
https://github.com/google/skia/pull/94

GitOrigin-RevId: c5837dc26e0811828f7bff09b2b9ceb5fa670f84
Change-Id: I67a4ae25bc8060a4cd0e26d7ef6d5845ec75f871
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/514660
Reviewed-by: Ravi Mistry <rmistry@google.com>
Reviewed-by: Kevin Lubick <kjlubick@google.com>
2022-03-02 14:36:39 +00:00
skia-autoroll
2f41c6acfa Roll ANGLE from 5749ec7d053e to 51967b4fcf92 (18 revisions)
5749ec7d05..51967b4fcf

2022-03-02 j.vigil@samsung.com Vulkan: Fix enabling external fences and semaphores
2022-03-01 cnorthrop@google.com Tests: Add Blade&Soul Revolution trace
2022-03-01 ianelliott@google.com Use VK_ANDROID_surfaceless_query for EGLConfig formats
2022-03-01 cnorthrop@google.com Tests: Add Castlevania: Symphony of the Night trace
2022-03-01 antonio.caggiano@collabora.com dEQP: Enable CreateSurfacePlatformEXT tests
2022-03-01 antonio.caggiano@collabora.com EGL: Add code-gen for dmabuf extensions
2022-03-01 cnorthrop@google.com Tests: Add Five Nights at Freddy's trace
2022-03-01 antonio.caggiano@collabora.com EGL: Implement isX11 for DisplayGLX
2022-03-01 lubosz.sarnecki@collabora.com Tests: Add Final Fantasy Brave Exvius trace.
2022-03-01 angle-autoroll@skia-public.iam.gserviceaccount.com Roll SwiftShader from 949ffcf55151 to 6e9eafd34639 (3 revisions)
2022-03-01 lubosz.sarnecki@collabora.com TorusBufferStorage: Regenerate buffer storage every second.
2022-03-01 angle-autoroll@skia-public.iam.gserviceaccount.com Roll vulkan-deps from 4d9fe6bf1f0c to 6f0521f42451 (35 revisions)
2022-03-01 gert.wollny@collabora.com Capture/Replay: test and handle texture gen-on-bind
2022-03-01 gert.wollny@collabora.com Capture/Replay: test and handle renderbuffer gen-on-bind
2022-03-01 gert.wollny@collabora.com Capture/Replay: test and handle buffer gen-on-bind
2022-03-01 gert.wollny@collabora.com Capture/Replay: enable running GLES 3.2 tests with script
2022-03-01 angle-autoroll@skia-public.iam.gserviceaccount.com Roll Chromium from 5feb16fcf80f to 4f52dd6c4de1 (446 revisions)
2022-03-01 gert.wollny@collabora.com Capture/Replay: atomic counter buffer limits are shader specific

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: angle_perftests --gtest_filter="*blade_and_soul_revolution*"
Test: Test: angle_perftests --gtest_filter="*castlevania_sotn*"
Test: Test: angle_perftests --gtest_filter="*final_fantasy_brave_exvius*"
Test: Test: angle_perftests --gtest_filter="*five_nights_at_freddys*"
Change-Id: I10b112422617cd0a58525a9f662b14e7a3c9a31e
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/514599
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Bot-Commit: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2022-03-02 05:45:46 +00:00
skia-autoroll
642670f259 Roll SwiftShader from 6e9eafd34639 to 383901609736 (1 revision)
https://swiftshader.googlesource.com/SwiftShader.git/+log/6e9eafd34639..383901609736

2022-03-01 capn@google.com Fix image subresource offset query

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: I002194847f884c041373c2b87888aea76aebc5b9
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/514598
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Bot-Commit: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2022-03-02 04:48:18 +00:00
skia-autoroll
631e9e00fc Roll Dawn from b793bac93b9d to a24acf2fbc8a (8 revisions)
https://dawn.googlesource.com/dawn.git/+log/b793bac93b9d..a24acf2fbc8a

2022-03-02 shaobo.yan@intel.com Validate destination texture states for CopyTextureForBrowser
2022-03-02 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll ANGLE from 5118002e7657 to 37bfc40d1bfc (11 revisions)
2022-03-01 lokokung@google.com Adds new chained struct for device creation to specify cache options.
2022-03-01 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll SwiftShader from 6e9eafd34639 to 383901609736 (1 revision)
2022-03-01 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll Tint from bee5fa6881e3 to 4acf466ff916 (1 revision)
2022-03-01 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll vulkan-deps from 25675ddc7bab to 6f0521f42451 (1 revision)
2022-03-01 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll ANGLE from 802e0d4db24c to 5118002e7657 (9 revisions)
2022-03-01 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll SwiftShader from f066b8ef930f to 6e9eafd34639 (2 revisions)

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

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: Iab7d10baf819293710becef5bc234029a72b8e4f
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/514600
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Bot-Commit: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2022-03-02 04:41:47 +00:00
John Stiles
54b5ad00c5 Add bots for Metal on M1 Macs with macOS 12.
The LoopInt test fails in Metal on many devices with macOS 12, so it's
currently disabled.

Change-Id: I575b662ae543187d7062e0fba37afa6e80663fc5
Bug: skia:13005
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/514576
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Arman Uguray <armansito@google.com>
Commit-Queue: Arman Uguray <armansito@google.com>
2022-03-02 00:32:15 +00:00
Herb Derby
447845a906 move positions to vertex filler
Creating the position arrays and source bounds was common to many
SubRuns. Collect all this common code into the
TransformedMaskVertexFiller.

Change-Id: Ib3be8a2451759ed8f987c591014aa9d471df0281
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/514218
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Herb Derby <herb@google.com>
2022-03-01 21:37:23 +00:00
Greg Daniel
ea0268e72d In Vulkan readPixels check if mapped buffer returns null.
This is a speculative fix for a crash in Chrome. The memcpy is trying
to use memory at 0x0, so either the dst or src is probably nullptr.
The src is coming from our mapped transfer buffer so this puts a check
in for that. The dst is coming from out in chrome land, but it does
look like they check its valid before calling into Skia.

Bug: chromium:1301769
Change-Id: I10302dc97da6045524ee2f20045816d1f17ccf3d
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/514357
Reviewed-by: Greg Daniel <egdaniel@google.com>
Reviewed-by: Jim Van Verth <jvanverth@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
2022-03-01 20:19:52 +00:00
Arman Uguray
5f16ed4c58 [sksl] Special-case unary negation on matrix types in MSL/SPIR-V
MSL does not support the unary "-" operator on matrix types. Similarly
the SPIR-V OpFNegate/OpSNegate operations only work on scalar and vector
type.

* An expression such as "-<mat>" is now transformed to "-1.0 * <mat>" when
generating MSL.
* The same expression now generates a component-wise negation in SPIR-V,
matching what glslang outputs for GLSL.
* A unary "+" is now treated as NOP for MSL, matching the SPIR-V backend.
An expression such as "+<expr>" is now evaluated as "<expr>".
* The shared/Negation.sksl has been moved to folding/ as much of its
contents exercise constant-folding of comparison expressions.
* The shared/UnaryPositiveNegative.sksl test has been extended to
exercise scalar and matrix types.

NOTE: The SPIR-V backend changes have caused a minor re-ordering of SSA
IDs generated when writing out a prefix-expression. The affected gold
files have been updated.

Bug: skia:12627, skia:12992
Change-Id: Iec5cdafc591aed7e49b3b52bda42a02661380bab
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/513976
Auto-Submit: Arman Uguray <armansito@google.com>
Reviewed-by: John Stiles <johnstiles@google.com>
Commit-Queue: Arman Uguray <armansito@google.com>
2022-03-01 20:14:46 +00:00
Jim Van Verth
38de60ea95 Disable GrMeshTests on Intel Iris Plus
Bug: skia:7603
Change-Id: I2d0406b544d03efbd5caa165ecf2f099d8d73881
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/514217
Reviewed-by: Erik Rose <erikrose@google.com>
Commit-Queue: Jim Van Verth <jvanverth@google.com>
2022-03-01 20:05:41 +00:00
Erik Rose
c396dd16ba [infra] Rename IrisPlus jobs so they don't contain commas.
That was making Gerrit unable to invoke the jobs; the regex for valid
jobs doesn't contain comma.

Change-Id: I9b8a42ab1d5b8ac204895388844bde88a604491f
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/514356
Reviewed-by: Jim Van Verth <jvanverth@google.com>
Commit-Queue: Erik Rose <erikrose@google.com>
2022-03-01 19:02:17 +00:00
Jorge Betancourt
4bf57f8958 Revert "[skottie] scale stroke on dynamic text layers"
This reverts commit d5c24c72dc.

Reason for revert: Scuba test blocking g3

Original change's description:
> [skottie] scale stroke on dynamic text layers
>
> initial commit for scaled stroke on text in skottie
>
> Change-Id: Iedce77833e12b2b5d8bc27161392b87a428efe8e
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/513759
> Reviewed-by: Florin Malita <fmalita@google.com>
> Commit-Queue: Jorge Betancourt <jmbetancourt@google.com>

Change-Id: Ia1dba3f206e5b12168e2e82ba608db943af26c78
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/514219
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Commit-Queue: Jorge Betancourt <jmbetancourt@google.com>
2022-03-01 18:12:24 +00:00
Nathaniel Nifong
7b75ff872b add test_suites attribute to CtsSkQPTestCases build target
Change-Id: I064a64f793410732a6f79176a9d4801da92a0169
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/513892
Auto-Submit: Nathaniel Nifong <nifong@google.com>
Reviewed-by: Derek Sollenberger <djsollen@google.com>
Commit-Queue: Derek Sollenberger <djsollen@google.com>
2022-03-01 18:09:43 +00:00
Kevin Lubick
4a826a9de5 [infra] Remove failing skpbench jobs
These have been failing for 9+ months

Change-Id: I9cc15298ee0ea1f2f1070affeeb5392ced376793
Bug: skia:12268
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/514276
Reviewed-by: Joe Gregorio <jcgregorio@google.com>
2022-03-01 17:58:25 +00:00
Ethan Nicholas
f6dc205b14 Improved SkSL array size parsing
We previously had no way to signal a parse error from arraySize,
resulting in a cascade of additional errors downstream. This tightens
up the behavior and allows us to fail more gracefully.

Bug: skia:12416
Change-Id: I83d3d5bc1dc63395edb325297375a6eb52415817
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/512952
Reviewed-by: John Stiles <johnstiles@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
2022-03-01 16:44:49 +00:00
John Stiles
64629c7a5e Remove unused setting 'fPermitInvalidStaticTests.'
This was only used for fragment processor CPP/H file generation, which
no longer exists.

Change-Id: I650444c4b9ae3197003ed6c5ff8e291e33965923
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/514216
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-01 16:43:13 +00:00
Nathaniel Nifong
3b3d0a5129 Do not run ProcessorOptimizationValidationTest
Change-Id: Ib891a4d18b5f66e992fcb43d2f982f0893962368
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/513878
Reviewed-by: Derek Sollenberger <djsollen@google.com>
Commit-Queue: Nathaniel Nifong <nifong@google.com>
2022-03-01 16:39:45 +00:00
Ethan Nicholas
7b662215f9 Fixed SkSL dFdy rehydrate test
dFdy wasn't working due to the DSL never having been started.

Bug: skia:12985
Change-Id: Ic58018e3dec3e9df15c2e784f8732ee99e793353
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/513938
Reviewed-by: John Stiles <johnstiles@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
2022-03-01 16:33:48 +00:00
Robert Phillips
d6d3cabb49 Add maxSurfaceSampleCountForColorType to GrContextThreadSafeProxy
Change-Id: I7d98b2dff9fbb29bb9709c72679551473078fe0f
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/513877
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
2022-03-01 15:13:40 +00:00
Kevin Lubick
9867574f71 [fuzzer] Bypass checksum on SkDescriptor deserialization
Change-Id: I040d1e2776bbab1ce141b0dab05e935ac279ad2c
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/513899
Reviewed-by: Herb Derby <herb@google.com>
2022-03-01 13:14:25 +00:00
Matt Turner
9c32c7174d Handle 'aarch64' from platform.machine()
uname -m and platform.machine() return 'aarch64' on Linux.

Change-Id: I17a17fe3d7abf5a3708d31b7e2b6866568d042b9
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/513898
Reviewed-by: Brian Osman <brianosman@google.com>
Auto-Submit: Matt Turner <msturner@google.com>
Reviewed-by: Eric Boren <borenet@google.com>
Commit-Queue: Eric Boren <borenet@google.com>
2022-03-01 13:10:59 +00:00
skia-autoroll
c3e7a2a00b Roll ANGLE from 8390196a308b to 5749ec7d053e (7 revisions)
8390196a30..5749ec7d05

2022-03-01 timvp@google.com Revert "Vulkan: Move mid-RP color clear to loadOp if content undefined"
2022-03-01 cnorthrop@google.com Capture/Replay: Merge Deletes in Reset
2022-02-28 timvp@google.com Vulkan: Move mid-RP color clear to loadOp if content undefined
2022-02-28 cnorthrop@google.com Document perf test metrics
2022-02-28 romanl@google.com Fix self link broken by https://crrev.com/c/3124341
2022-02-28 angle-autoroll@skia-public.iam.gserviceaccount.com Roll SwiftShader from f423bda7e8e3 to 949ffcf55151 (9 revisions)
2022-02-28 angle-autoroll@skia-public.iam.gserviceaccount.com Roll Chromium from 903941d19666 to 5feb16fcf80f (645 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: Blade&Soul Revolution MEC (UE4)
Test: Test: VulkanPerformanceCounterTest.MidRenderpassClear
Change-Id: Iae8a9ff1b8f6569af814379cd65446f3258fad1e
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/513997
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Bot-Commit: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2022-03-01 05:48:40 +00:00
skia-autoroll
ebbb67590a Roll Dawn from faa889d0b046 to b793bac93b9d (7 revisions)
https://dawn.googlesource.com/dawn.git/+log/faa889d0b046..b793bac93b9d

2022-03-01 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll vulkan-deps from cc1c6225a3cb to 25675ddc7bab (6 revisions)
2022-03-01 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll Tint from 10c554ecf43b to bee5fa6881e3 (7 revisions)
2022-02-28 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll ANGLE from 56378606a34e to 802e0d4db24c (3 revisions)
2022-02-28 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll Tint from 2e6269acb094 to 10c554ecf43b (1 revision)
2022-02-28 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll SwiftShader from 949ffcf55151 to f066b8ef930f (1 revision)
2022-02-28 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll vulkan-deps from 430a8c72d298 to cc1c6225a3cb (1 revision)
2022-02-28 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll ANGLE from 8390196a308b to 56378606a34e (1 revision)

Also rolling transitive DEPS:
  https://dawn.googlesource.com/tint from 2e6269acb094 to bee5fa6881e3

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: I8ce77c1629edb0e07f111404abbb8ea08c5f9b0c
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/513998
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Bot-Commit: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2022-03-01 04:46:17 +00:00
skia-autoroll
e849e9ac3a Roll SwiftShader from 949ffcf55151 to 6e9eafd34639 (3 revisions)
https://swiftshader.googlesource.com/SwiftShader.git/+log/949ffcf55151..6e9eafd34639

2022-02-28 capn@google.com Support implicit conversion of Int4 component to Int
2022-02-28 capn@google.com Move Swizzle type definitions into a separate header
2022-02-28 swiftshader.regress@gmail.com Regres: Update test lists @ 949ffcf5

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: I1d79875296797834d769cf329c4f053231bb01ce
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/513996
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Bot-Commit: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2022-03-01 04:45:48 +00:00
Florin Malita
5deac30482 Add missing SkTrimPathEffect to skia_effects_public
Change-Id: I74d70e878827ac083b3652bcda8f2d5f64798a78
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/513937
Commit-Queue: Florin Malita <fmalita@chromium.org>
Auto-Submit: Florin Malita <fmalita@chromium.org>
Reviewed-by: Kevin Lubick <kjlubick@google.com>
Commit-Queue: Kevin Lubick <kjlubick@google.com>
2022-02-28 22:42:44 +00:00
Jorge Betancourt
d5c24c72dc [skottie] scale stroke on dynamic text layers
initial commit for scaled stroke on text in skottie

Change-Id: Iedce77833e12b2b5d8bc27161392b87a428efe8e
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/513759
Reviewed-by: Florin Malita <fmalita@google.com>
Commit-Queue: Jorge Betancourt <jmbetancourt@google.com>
2022-02-28 22:13:14 +00:00
Kevin Lubick
1fc0c1c0f8 [canvaskit] Run JS tests in Bazel
This CL makes a copy of all the files in
//modules/canvaskit/tests/ and puts them into
//modules/canvaskit/tests/bazel. They are slightly modified
to run in Bazel (renamed to be more clear what they are
and using EverythingLoaded instead of CanvasKitLoaded).

The original files will be deleted when we no longer test
CanvasKit outside of Bazel.

Suggested Review Order:
 - hello_world.js is now smoke_test.js. That test polls the
   gold_test_env server, but does not create an image.
 - test_reporter.js which is much simplified from the non-Bazel
   version (due to the removal of a bunch of PathKit stuff).
   These JS tests are not the C++ gms. This means that we need
   to capture the PNG ourselves, which we do using the <canvas>
   API toDataURL(). This is base64 encoded, which is conveniently
   the format accepted by the gold_test_env server.
 - karma.bazel.js and assets/BUILD.bazel which make all the
   test assets available under a shortened path /assets.
 - Feel free to skip over the remaining *_test.js, as they are
   basically the same as what is currently checked in, just
   with the modifications above.
 - Any remaining files.

Change-Id: I45fc38da38faf11f21011e7381d390e6bb299df4
Bug: skia:12541
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/513916
Reviewed-by: Leandro Lovisolo <lovisolo@google.com>
Reviewed-by: Ben Wagner <bungeman@google.com>
2022-02-28 21:30:21 +00:00
Kevin Lubick
953c92880b Add SkRSXform to SK_API
Change-Id: I9ee142f949e644dcd06f359bb6838b5b4f04ec21
Bug: skia:12990
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/513736
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Kevin Lubick <kjlubick@google.com>
2022-02-28 14:07:10 +00:00
Kevin Lubick
acab911351 [bazel] Make use of test_on_env to spin up server for gms
In order to extract the PNG files produced by our CanvasKit gms,
we need our JS tests to POST them to a server which can write to
disk. The easiest way to do this is to use the test_on_env
rule defined in the Skia Infra repo for exactly this purpose.

This required https://skia-review.googlesource.com/c/buildbot/+/510717
to be able to configure the binary correctly and
https://skia-review.googlesource.com/c/buildbot/+/511862, for nicer
debugging so the skia-infra dep was updated via the following commands:
$ go get go.skia.org/infra@d8a552a29e
$ go mod download
$ make -C infra/bots train
$ make -C bazel gazelle_update_repo
This caused many automated changes to infra/bots/tasks.json

The flow is:
1. User types bazelisk test :hello_world_test_with_env
2. The test_on_env rule starts gold_test_env and waits
   for the file defined in $ENV_READY_FILE to be created.
3. gold_test_env starts a web server on a random port. It
   writes this port number to $ENV_DIR/port. Then, it
   creates $ENV_READY_FILE to signal ready.
4. test_on_env sees the ready file and then starts the
   karma_test rule. (Reminder: this is a bash script
   which starts karma using the Bazel-bundled chromium).
5. The karma_test rule runs the karma.bazel.js file (which
   has been injected with some JS code to fill in Bazel
   paths and settings) using Bazel-bundled node. This reads
   in the port file and sets up a Karma proxy to redirect
   /gold_rpc/report to http://localhost:PORT/report
6. The JS tests run via Karma (and do assertions via Jasmine).
   Some tests, the gms, make POST requests to the proxy.
7. gold_test_env gets these POST requests writes the images
   to a special Bazel folder on disk as defined by
   $TEST_UNDECLARED_OUTPUTS_DIR.
8. test_on_env identifies that the tests finish (because the
   karma_test script returns 0). It sends SIGINT to gold_test_env.
9. gold_test_env stops the webserver. The special Bazel folder
   will zip up anything inside it and make it available for
   future rules (e.g. a rule that will upload to Gold via goldctl).

Suggested Review Order:
 - bazel/karma_test.bzl to see the test_on_env rule bundled into
   the karma_test macro. I chose to put it there because it might
   be confusing to have to define both a karma_test and test_on_env
   rule in the same package but not be able to call one because it
   will fail to talk to the server.
 - gold_test_env.go to see how the appropriate files are written
   to signal the environment is ready and the handlers are set up.
 - karma.bazel.js to see how we make our own proxy given the
   port from the env binary. The fact that we could not create
   our own proxy with the existing karma_test rule was why the
   chain ending in https://skia-review.googlesource.com/c/skia/+/508797
   had to be abandoned.
 - tests/*.js to see how the environment is probed via /healthz
   and then used to make POST requests with data.
 - Everything else.

Change-Id: I32a90def41796ca94cf187d640cfff8e262f85f6
BUG: skia:12541
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/510737
Reviewed-by: Leandro Lovisolo <lovisolo@google.com>
2022-02-28 14:05:54 +00:00
skia-autoroll
f988cba8a7 Roll ANGLE from cbc1c9c8afa6 to 8390196a308b (26 revisions)
cbc1c9c8af..8390196a30

2022-02-26 syoussefi@chromium.org Revert "Remove ImageViewHelper from ResourceUseList"
2022-02-26 gman@chromium.org Add Clearifying comment about Occlusion Query Test
2022-02-25 abdolrashidi@google.com Update API version in VulkanHelper to 1.1
2022-02-25 timvp@google.com Android: Skip flaky EGL end2end tests
2022-02-25 syoussefi@chromium.org Vulkan: Add precision fix to SPIR-V transformation validation
2022-02-25 antonio.caggiano@collabora.com EGL: CreatePlatformWindowSurfaceEXT
2022-02-25 erikrose@google.com Correct a typo that was keeping Skia from compiling.
2022-02-25 b.schade@samsung.com Vulkan: Clear Recycler's mObjectFreeList on destroy
2022-02-25 kpiddington@apple.com Metal: PVRTC formats fail conformance tests on simulator
2022-02-25 ianelliott@google.com Add to ANGLE's OWNERS
2022-02-25 yuxinhu@google.com Remove ImageViewHelper from ResourceUseList
2022-02-25 m.maiya@samsung.com Vulkan: Account for Invariant in transformDecorate
2022-02-25 angle-autoroll@skia-public.iam.gserviceaccount.com Roll VK-GL-CTS from d321c7ec84de to 2328c3fcf88d (4 revisions)
2022-02-25 timvp@google.com Vulkan: Add ClearBenchmark.Run/vulkan_scissoredClear
2022-02-25 angle-autoroll@skia-public.iam.gserviceaccount.com Roll SwiftShader from cd8e0282137f to f423bda7e8e3 (12 revisions)
2022-02-25 angle-autoroll@skia-public.iam.gserviceaccount.com Roll Chromium from effb00c1eb6d to 903941d19666 (506 revisions)
2022-02-24 yuxinhu@google.com Upgrade Python scripts from Python2 to Python3
2022-02-24 antonio.caggiano@collabora.com Vulkan: Duplicate dmabuf FD on import
2022-02-24 jmadill@chromium.org Rename FastUnordered types to FlatUnordered.
2022-02-24 antonio.caggiano@collabora.com Vulkan: Wayland dependency
2022-02-24 angle-autoroll@skia-public.iam.gserviceaccount.com Roll SwiftShader from 7529468c7902 to cd8e0282137f (2 revisions)
2022-02-24 angle-autoroll@skia-public.iam.gserviceaccount.com Roll Chromium from e092c426ee21 to effb00c1eb6d (431 revisions)
2022-02-24 syoussefi@chromium.org Vulkan: Make Overlay init lazy
2022-02-23 syoussefi@chromium.org Vulkan: Shader support for KHR_blend_equation_advanced
2022-02-23 lubosz.sarnecki@collabora.com Tests: Add Real Racing 3 trace.
2022-02-23 gert.wollny@collabora.com Capture/Replay: Capture GetTexLevelParameterfvANGLE params

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: ClearBenchmark.Run/vulkan_scissoredClear
Test: Test: EGLContextSharingTestNoSyncTextureUploads.NoSync
Test: Test: EGLReadinessCheckTest.GetProcAddressNegativeTest
Test: Test: EGLReadinessCheckTest.HasGetPlatformDisplayEXT
Test: Test: EGLReadinessCheckTest.IsRunningOnANGLE
Test: Test: EGLSurfaceTest.ResizeWindowWithDraw
Test: Test: angle_perftests --gtest_filter="*real_racing3*"
Test: Test: angle_unittests --gtest_filter=*KHRBlendEquationAdvanced*
Change-Id: I22afc2757d45d9d100df63009a4e37e67e779015
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/513502
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Bot-Commit: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2022-02-28 05:36:09 +00:00
skia-autoroll
4d2ddc8e94 Roll SwiftShader from 2cf793302082 to 949ffcf55151 (12 revisions)
https://swiftshader.googlesource.com/SwiftShader.git/+log/2cf793302082..949ffcf55151

2022-02-26 capn@google.com Refactor image offset methods
2022-02-26 swiftshader.regress@gmail.com Regres: Update test lists @ 310874c9
2022-02-25 sugoi@google.com Fix dynamic rendering implicit clears with multiview
2022-02-25 capn@google.com Set the stack limit through a function attribute
2022-02-25 capn@google.com Regres: remove OpenGL ES testlists
2022-02-25 capn@google.com Assert llvm::Expected<> don't contain an error
2022-02-25 sugoi@google.com VK_KHR_maintenance4 support
2022-02-25 sugoi@google.com LocalSizeId for VK_KHR_maintenance4
2022-02-25 martin.troiber@gmail.com Add LLVM-Submodule backend option
2022-02-25 swiftshader.regress@gmail.com Regres: Update test lists @ 9f170f07
2022-02-25 sugoi@google.com Image memory requirements for VK_KHR_maintenance4
2022-02-25 sugoi@google.com vkGetImageMemoryRequirements2 refactor

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: Iafb7a8049617bee7689fac3bc2d6bf0b06ff5aea
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/513501
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Bot-Commit: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2022-02-28 04:49:42 +00:00
skia-autoroll
8a9f3c9d1a Roll Dawn from 4570ab5ad89a to faa889d0b046 (11 revisions)
https://dawn.googlesource.com/dawn.git/+log/4570ab5ad89a..faa889d0b046

2022-02-27 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll SwiftShader from b128337ffbec to 949ffcf55151 (1 revision)
2022-02-26 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll SwiftShader from 310874c922a8 to b128337ffbec (1 revision)
2022-02-26 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll ANGLE from 7f03fb5d8c18 to 8390196a308b (14 revisions)
2022-02-26 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll Tint from dbf75bc21793 to 2e6269acb094 (3 revisions)
2022-02-25 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll SwiftShader from f423bda7e8e3 to 310874c922a8 (7 revisions)
2022-02-25 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll Tint from fe08ba467747 to dbf75bc21793 (1 revision)
2022-02-25 yang.gu@intel.com Skip the check of maxFragmentCombinedOutputResources for Mesa llvmpipe driver
2022-02-25 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll vulkan-deps from 7ceb0dd44a7a to 430a8c72d298 (1 revision)
2022-02-25 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll ANGLE from 1e1505b53cf0 to 7f03fb5d8c18 (2 revisions)
2022-02-25 jiawei.shao@intel.com Fix use-after-free issue in Create*PipelineAsyncTasks::Run()
2022-02-25 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll SwiftShader from 732515a031fa to f423bda7e8e3 (10 revisions)

Also rolling transitive DEPS:
  https://dawn.googlesource.com/tint from fe08ba467747 to 2e6269acb094

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: I6947fa499e29951cb95830489bd7a25521991299
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/513500
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Bot-Commit: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2022-02-28 04:40:15 +00:00
skia-recreate-skps@skia-swarming-bots.iam.gserviceaccount.com
6a7383e3dd Update SKP version
Automatic commit by the RecreateSKPs bot.

Change-Id: I2ad4ac3288294eba23ab2c96655509590a4c8fb8
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/513497
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-02-27 08:18:41 +00:00
skia-autoroll
6c30aa2716 Roll SK Tool from c1551fad4fa6 to 65e434c77472
https://skia.googlesource.com/buildbot.git/+log/c1551fad4fa6..65e434c77472

2022-02-27 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 jcgregorio@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: jcgregorio@google.com
Change-Id: I0740a8153a7eecc0cf75d197d9eb139e2e6a4b61
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/513457
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Bot-Commit: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2022-02-27 06:16:10 +00:00
Arman Uguray
557f2795f2 [sksl][tests] Enable CLONE and REHYDRATE tests for GPU/ES3 cases
These tests were not being run for ES3-only GPU and non-strict-ES2 CPU
tests. CLONE and REHYDRATE variants are now generated for all test
declarations.

Change-Id: I8ce14bd50f175d0bae66d9593b68a42fab701f93
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/513056
Reviewed-by: John Stiles <johnstiles@google.com>
Commit-Queue: Arman Uguray <armansito@google.com>
2022-02-25 23:21:10 +00:00
Ben Wagner
e5d89539fb Apply palette request to DirectWrite fonts
Bug: skia:12984
Change-Id: Ic0c3774c38c19efb224bf4462ce1397c21c95b78
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/512576
Reviewed-by: Herb Derby <herb@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
2022-02-25 22:58:40 +00:00
John Stiles
1380d2c02c Use unordered comparisons for != in SPIR-V.
On modern hardware, this will give the correct result for `NaN != x`
(true).

Change-Id: I9683f74756da5da5f34ccacec02c1f2449791f26
Bug: skia:12977
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/513317
Commit-Queue: John Stiles <johnstiles@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Reviewed-by: Arman Uguray <armansito@google.com>
Commit-Queue: Arman Uguray <armansito@google.com>
2022-02-25 22:22:43 +00:00
Ben Wagner
636953d234 Respect aliased color glyph rendering with FreeType
The FreeType port always requested that color glyphs be antialiased.
Respect the setting for aliased glyph rendering with color glyphs.

Change-Id: If9a477b705a91b1284739bd190aea90b2929612f
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/512949
Reviewed-by: Ben Wagner <bungeman@google.com>
Reviewed-by: Herb Derby <herb@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
2022-02-25 22:19:30 +00:00
John Stiles
07f3d2067a Update assertions to use SkTFitsIn.
Change-Id: I686b858ca5b0497731bdaa15027ebbaaa70d13b9
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/512951
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-02-25 20:43:40 +00:00
John Stiles
468b240f8f Add support for ConstructorArrayCast to rehydrator.
A surprising omission--this already existed in the dehydrator, and in
our "binary format" docs, but the rehydrator had never implemented it.

Change-Id: I5418006d6c76430089e36922eb6eada861fb51e3
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/512950
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
2022-02-25 20:16:06 +00:00
John Stiles
30f4d88c04 Add support for unsigned ints to SkSL Dehydrator.
Previously, we wrote all ints via readS32/writeS32 which would assert
that a dehydrated integer was within INT_MIN to INT_MAX range. This
assumption does not hold for unsigned values. Now, we use
readU32/writeU32 for unsigned values.

Change-Id: I50e3a38bbfd060b493d7c6a1196cdd44ce05e738
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/513258
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
2022-02-25 19:58:01 +00:00
Herb Derby
92f2cf6d8f serialize Drawables
Add serialization to DrawableOpSubmitter, and DrawableSubRun.
Add the Bulk glyph infrastructure to the SkStrike and
SkScalerCache.

Bug: chromium:1278340

Change-Id: Ibd008d200142fc0476b2467dbdf5973544cfecea
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/512945
Reviewed-by: Ben Wagner <bungeman@google.com>
Commit-Queue: Herb Derby <herb@google.com>
2022-02-25 19:46:35 +00:00
John Stiles
7cb1390c30 Simplify symbol table setup.
Previously, `setupSymbolTable` would add a bunch of non-ES2 type aliases
to the program's symbol table if ES2 restrictions were disabled. As it
turns out, this was largely unnecessary ever since we restructured how
non-ES2 types are restricted. Nowadays, the root symbol table has all
types in it, and Type::isAllowedInES2 is used to disallow non-ES2 types
when strict ES2 mode is on. (See http://review.skia.org/459119)

The only missing piece here was that `add_glsl_type_aliases` was never
updated to add the non-square GLSL matrix alias types, and
`setupSymbolTable` papered over this. Now, `add_glsl_type_aliases` adds
these types directly.

Change-Id: I30ca62a3e6fd130c3078b38d917c3b7c0885e5b1
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/512946
Commit-Queue: John Stiles <johnstiles@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
2022-02-25 18:45:18 +00:00
Herb Derby
529a85363d plumb for serializable DrawableSubRuns
Change-Id: I72be508a33faf2d05bf4fba5d557b217bb56d5ad
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/512943
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Herb Derby <herb@google.com>
2022-02-25 18:27:11 +00:00
Ben Wagner
c912570a95 Handle override not modifying GlyphRunList in Viewer
It is possible that when filtering a blob for a glyph run list that the
blob does not need to be changed at all. In this case the original
glyphRunList can be used unmodified. When this happens `filterTextBlob`
does not fill out the `cache` but instead returns the original `blob`.
The existing code assumed that the `cache` was always filled and would
crash when trying to create a glyph run list out of it when it wasn't.

Change-Id: Ia8d9339c613a2157968bd2774966a7ad16edcfee
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/512944
Commit-Queue: Ben Wagner <bungeman@google.com>
Auto-Submit: Ben Wagner <bungeman@google.com>
Reviewed-by: Herb Derby <herb@google.com>
Commit-Queue: Herb Derby <herb@google.com>
2022-02-25 17:55:14 +00:00
Herb Derby
98755b1af0 serialize/deserialize PathSubRuns
Serialize the glyphIDs and descriptor, and reconstruct the paths
while deserializing.

Change-Id: I3333b9d3286ec67f2e8a601b2fb2dba6b93533d0
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/512938
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Herb Derby <herb@google.com>
2022-02-25 17:12:40 +00:00