Update WGPU to upstream (week of 2025-01-20)
Categories
(Core :: Graphics: WebGPU, task, P1)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox137 | --- | fixed |
People
(Reporter: ErichDonGubler, Assigned: ErichDonGubler)
References
(Blocks 1 open bug)
Details
Attachments
(16 files, 4 obsolete files)
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review |
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Comment 1•1 year ago
|
||
| Assignee | ||
Comment 2•1 year ago
|
||
Newer versions of cc reject an unknown target, so we won't be able
to use this approach any more.
| Assignee | ||
Comment 3•1 year ago
|
||
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Comment 4•1 year ago
|
||
| Assignee | ||
Comment 5•1 year ago
|
||
| Assignee | ||
Comment 6•1 year ago
|
||
| Assignee | ||
Comment 7•1 year ago
|
||
Updated•1 year ago
|
| Assignee | ||
Comment 8•1 year ago
|
||
| Assignee | ||
Comment 9•1 year ago
|
||
| Assignee | ||
Comment 10•1 year ago
|
||
Updated•1 year ago
|
Comment 11•1 year ago
|
||
Comment 12•1 year ago
|
||
Comment 13•1 year ago
|
||
Comment 14•1 year ago
|
||
Comment 15•1 year ago
|
||
Comment 16•1 year ago
|
||
| Assignee | ||
Comment 17•1 year ago
|
||
Okay, so I have an update working locally after a couple of days of effort. It took so long because there were a lot of dependencies to update, and it took me a while to work through everything that needed to be updated.
I haven't posted a WIP patch for the re-vendor of WGPU yet, but I will do that after the spread of current patches in this bug lands. There are still some outstanding things to resolve before I can get those changes landed.
- Resolve whether we will be bumping the minimum Rust version for
mozilla-centralto 1.82 or newer (CC :glandium). If not, we're blocked here, and I need to explore downgradinghashbrownfrom 15.2 to 14.5. - If (1) pans out, inform folks that work on
application-services, update the PR to respect the new minimum Rust version, and get it landed. - Adjust patches to consume the landed PR from (2).
After these, it'll be an otherwise typical review flow.
| Assignee | ||
Comment 18•1 year ago
•
|
||
Try push 1 to test my current changes, squashed into a single revision: https://treeherder.mozilla.org/jobs?repo=try&revision=28b3aecdf756b26d1da825602c92c76ba0f8edd5
Comment 19•1 year ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/8d7fc1a4bd16
https://hg.mozilla.org/mozilla-central/rev/aca35d0586bc
https://hg.mozilla.org/mozilla-central/rev/883fd681a67d
https://hg.mozilla.org/mozilla-central/rev/6a816a37e239
https://hg.mozilla.org/mozilla-central/rev/404b2c7266c8
https://hg.mozilla.org/mozilla-central/rev/4567ae997352
https://hg.mozilla.org/mozilla-central/rev/21828af6c7d8
https://hg.mozilla.org/mozilla-central/rev/50026351d1c0
https://hg.mozilla.org/mozilla-central/rev/d7b13e506173
| Assignee | ||
Comment 20•1 year ago
|
||
| Assignee | ||
Comment 21•1 year ago
|
||
N.B. that this requires Rust 1.82. This is changed in a previous patch
in this patch's stack, and so should be satisfied.
Updated•1 year ago
|
Updated•1 year ago
|
Comment 22•1 year ago
|
||
Updated•1 year ago
|
Updated•1 year ago
|
Comment 23•1 year ago
|
||
| bugherder | ||
Updated•1 year ago
|
Comment 24•1 year ago
|
||
Comment on attachment 9462602 [details]
Bug 1943149 - build(rust): bump minimum Rust version 1.76 → 1.82 r=glandium
Revision D236028 was moved to bug 1945020. Setting attachment 9462602 [details] to obsolete.
| Assignee | ||
Comment 25•1 year ago
|
||
In upstream, a new heuristic for detecting compiler families in
cc::Tool was introduced. The heuristic we originally patched upstream
is now the fallback heuristic, and does not get used for our clang
compiler. This causes our interaction with default flags and
cc::Tool::is_like_msvc to be incorrect in swgl, since clang's CLI
to use cl-like arguments, and rejects clang-like arguments.
Work around this by detecting checking Tools' base command and
"wrapper arguments" to see if we're (1) using clang and (2) we have
a wrapper argument matching --driver-mode=cl. If so, provide cl-like
arguments in swgl, rather than clang-like arguments.
Updated•1 year ago
|
Comment 26•1 year ago
|
||
Comment 27•1 year ago
|
||
Backed out for causing wr bustages
Backout link: https://hg.mozilla.org/integration/autoland/rev/ef93a3ee2425bcbf790f3c897a485ec900e80c58
Failure log -> ./swgl/build.rs:259: operators should go at the end of the first line
| Assignee | ||
Comment 28•1 year ago
|
||
In upstream, a new heuristic for detecting compiler families in
cc::Tool was introduced. The heuristic we originally patched upstream
is now the fallback heuristic, and does not get used for our clang
compiler. This causes our interaction with default flags and
cc::Tool::is_like_msvc to be incorrect in swgl, since clang's CLI
to use cl-like arguments, and rejects clang-like arguments.
Work around this by detecting checking Tools' base command and
"wrapper arguments" to see if we're (1) using clang and (2) we have
a wrapper argument matching --driver-mode=cl. If so, provide cl-like
arguments in swgl, rather than clang-like arguments.
Comment 29•1 year ago
|
||
Updated•1 year ago
|
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Comment 30•1 year ago
|
||
Comment 31•1 year ago
|
||
Comment on attachment 9463665 [details]
Bug 1943149 - docs(rust): note Rust version as 1.76 for Firefox 136 r=glandium
Revision D236655 was moved to bug 1945020. Setting attachment 9463665 [details] to obsolete.
Comment 32•1 year ago
|
||
| bugherder | ||
Comment 33•1 year ago
|
||
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Comment 35•1 year ago
|
||
Investigating. 😭 Might need help from :jnicol here.
Comment 36•1 year ago
|
||
| Comment hidden (obsolete) |
Comment 39•1 year ago
|
||
Comment on attachment 9462603 [details]
Bug 1943149 - build(rust): upgrade cc 1.0.89 → 1.2.10 r=#supply-chain-reviewers
Revision D236029 was moved to bug 1945694. Setting attachment 9462603 [details] to obsolete.
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Comment 40•1 year ago
|
||
| Assignee | ||
Comment 41•1 year ago
|
||
| Assignee | ||
Comment 42•1 year ago
|
||
| Assignee | ||
Comment 43•1 year ago
|
||
| Assignee | ||
Comment 44•1 year ago
|
||
Comment 45•1 year ago
|
||
Comment 46•1 year ago
|
||
| Assignee | ||
Comment 47•1 year ago
|
||
:smolnar, the lint failure suppression you've added with 2a76600f28d9 shouldn't be necessary, unless jobs intended to be tier 3 are being run in non-tier-3 contexts. What job did you discover failures in? 🤔 I ask because that change is going to get reverted with the automation we have with moz-webgpu-cts, and I'd like to fix the root cause quickly.
Comment 48•1 year ago
|
||
(In reply to Erich Gubler [:ErichDonGubler] from comment #47)
:smolnar, the lint failure suppression you've added with 2a76600f28d9 shouldn't be necessary, unless jobs intended to be tier 3 are being run in non-tier-3 contexts. What job did you discover failures in? 🤔 I ask because that change is going to get reverted with the automation we have with
moz-webgpu-cts, and I'd like to fix the root cause quickly.
unfortunately, because of some build bustages, don't have any more insight about any other failures, beside the lint one. maybe in a couple of hours I will have full code coverage.
| Assignee | ||
Comment 49•1 year ago
|
||
OH, I'd checked in bad WPT metadata. I'm so sorry! I needed to fix that before queueing to land. 😓 I'm so sorry about that.
Comment 50•1 year ago
•
|
||
(In reply to Erich Gubler [:ErichDonGubler] from comment #49)
OH, I'd checked in bad WPT metadata. I'm so sorry! I needed to fix that before queueing to land. 😓 I'm so sorry about that.
it seems my fix hasn't really "fixed" it :(
wpt-lint is still complaining
L.E it seems it's this line seems to be the problem.
want me to apply the same fix as before or how do you want to proceed ?
| Assignee | ||
Comment 51•1 year ago
|
||
Looks like there's at least one other instance of fix that needs to happen; here's the patch I made to fix things up:
Commit ID: de6506dc6aeade7acb9a39b4a7620b62811756a8
Change ID: kotpwpxkkvltmnqqowrskykyysvxtpkr
Author : Erich Gubler <erichdongubler@gmail.com> (3 minutes ago)
Committer: Erich Gubler <erichdongubler@gmail.com> (1 minute ago)
fixup! Bug 1943149 - test(webgpu): accept observed intermittents in tier 3 r=#webgpu-reviewers!
diff --git a/testing/web-platform/mozilla/meta/webgpu/cts/webgpu/api/validation/capability_checks/limits/maxComputeWorkgroupStorageSize/cts.https.html.ini b/testing/web-platform/mozilla/meta/webgpu/cts/webgpu/api/validation/capability_checks/limits/maxComputeWorkgroupStorageSize/cts.https.html.ini
index 6708caf040..95f4d67589 100644
--- a/testing/web-platform/mozilla/meta/webgpu/cts/webgpu/api/validation/capability_checks/limits/maxComputeWorkgroupStorageSize/cts.https.html.ini
+++ b/testing/web-platform/mozilla/meta/webgpu/cts/webgpu/api/validation/capability_checks/limits/maxComputeWorkgroupStorageSize/cts.https.html.ini
@@ -3,10 +3,10 @@
implementation-status: backlog
expected:
if os == "win" and debug: [OK, TIMEOUT]
- if os == "mac": [OK, TIMEOUT]
if os == "win" and not debug: CRASH
if os == "linux" and debug: [OK, TIMEOUT]
if os == "linux" and not debug: [OK, CRASH]
+ if os == "mac": [OK, TIMEOUT]
[:limitTest="atDefault";testValueName="atLimit";async=false;wgslType="S1"]
expected:
if os == "win": [PASS, TIMEOUT, NOTRUN]
diff --git a/testing/web-platform/mozilla/meta/webgpu/cts/webgpu/api/validation/capability_checks/limits/maxInterStageShaderVariables/cts.https.html.ini b/testing/web-platform/mozilla/meta/webgpu/cts/webgpu/api/validation/capability_checks/limits/maxInterStageShaderVariables/cts.https.html.ini
index ec37f2d922..4b80ac6077 100644
--- a/testing/web-platform/mozilla/meta/webgpu/cts/webgpu/api/validation/capability_checks/limits/maxInterStageShaderVariables/cts.https.html.ini
+++ b/testing/web-platform/mozilla/meta/webgpu/cts/webgpu/api/validation/capability_checks/limits/maxInterStageShaderVariables/cts.https.html.ini
@@ -3,8 +3,8 @@
implementation-status: backlog
expected:
if os == "win" and debug: [OK, TIMEOUT]
+ if os == "linux": [OK, CRASH]
if os == "mac": [OK, TIMEOUT]
- if os == "linux": [OK, CRASH]
[:limitTest="atDefault";testValueName="atLimit";async=false;pointList=false;frontFacing=false;sampleIndex=false;sampleMaskIn=false;sampleMaskOut=false]
expected:
if os == "win": FAIL
diff --git a/testing/web-platform/mozilla/meta/webgpu/cts/webgpu/api/validation/capability_checks/limits/maxSampledTexturesPerShaderStage/cts.https.html.ini b/testing/web-platform/mozilla/meta/webgpu/cts/webgpu/api/validation/capability_checks/limits/maxSampledTexturesPerShaderStage/cts.https.html.ini
index f75516b019..72bcefd53a 100644
--- a/testing/web-platform/mozilla/meta/webgpu/cts/webgpu/api/validation/capability_checks/limits/maxSampledTexturesPerShaderStage/cts.https.html.ini
+++ b/testing/web-platform/mozilla/meta/webgpu/cts/webgpu/api/validation/capability_checks/limits/maxSampledTexturesPerShaderStage/cts.https.html.ini
@@ -426,13 +426,12 @@
[cts.https.html?q=webgpu:api,validation,capability_checks,limits,maxSampledTexturesPerShaderStage:createPipeline,at_over:*]
tags: [webgpu, webgpu-long]
implementation-status: backlog
- expected: [OK, TIMEOUT]
expected:
if os == "win" and debug: [OK, CRASH]
if os == "win" and not debug: [OK, TIMEOUT]
if os == "linux" and debug: [OK, TIMEOUT]
if os == "linux" and not debug: [OK, CRASH]
- if os == "mac" and not debug: [OK, TIMEOUT]
+ if os == "mac": [OK, TIMEOUT]
[:limitTest="atDefault";testValueName="atLimit";async=false;bindingCombination="compute";order="backward";bindGroupTest="differentGroups"]
expected:
if os == "win" and debug: [PASS, TIMEOUT, NOTRUN]
@@ -3423,12 +3422,11 @@
[cts.https.html?q=webgpu:api,validation,capability_checks,limits,maxSampledTexturesPerShaderStage:createPipelineLayout,at_over:*]
tags: [webgpu, webgpu-long]
implementation-status: backlog
- expected: [OK, TIMEOUT]
expected:
if os == "win": [OK, TIMEOUT]
if os == "linux" and debug: [OK, TIMEOUT]
if os == "linux" and not debug: [OK, CRASH]
- if os == "mac" and not debug: [OK, TIMEOUT]
+ if os == "mac": [OK, TIMEOUT]
[:limitTest="atDefault";testValueName="atLimit";visibility=1;order="backward"]
expected:
if os == "win" and not debug: [PASS, TIMEOUT, NOTRUN]
Comment 52•1 year ago
|
||
Comment 53•1 year ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/f83ff837ae3e
https://hg.mozilla.org/mozilla-central/rev/33a153e890e7
https://hg.mozilla.org/mozilla-central/rev/d1567c298d34
https://hg.mozilla.org/mozilla-central/rev/9570b1380c92
https://hg.mozilla.org/mozilla-central/rev/c35a98735cfd
https://hg.mozilla.org/mozilla-central/rev/2a76600f28d9
https://hg.mozilla.org/mozilla-central/rev/c37170befd12
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
| Assignee | ||
Updated•1 year ago
|
Description
•