Update WGPU to upstream (week of 2025-01-20)
Categories
(Core :: Graphics: WebGPU, task, P1)
Tracking
()
People
(Reporter: ErichDonGubler, Assigned: ErichDonGubler)
References
(Depends on 2 open bugs, Blocks 4 open bugs)
Details
(Keywords: leave-open)
Attachments
(11 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 |
Assignee | ||
Updated•14 days ago
|
Assignee | ||
Comment 1•14 days ago
|
||
Assignee | ||
Comment 2•14 days ago
|
||
Newer versions of cc
reject an unknown target
, so we won't be able
to use this approach any more.
Assignee | ||
Comment 3•14 days ago
|
||
Assignee | ||
Updated•14 days ago
|
Assignee | ||
Comment 4•14 days ago
|
||
Assignee | ||
Comment 5•14 days ago
|
||
Assignee | ||
Comment 6•14 days ago
|
||
Assignee | ||
Comment 7•14 days ago
|
||
Updated•14 days ago
|
Assignee | ||
Comment 8•14 days ago
|
||
Assignee | ||
Comment 9•14 days ago
|
||
Assignee | ||
Comment 10•14 days ago
|
||
Updated•14 days ago
|
Comment 11•14 days ago
|
||
Comment 12•14 days ago
|
||
Comment 13•14 days ago
|
||
Comment 14•14 days ago
|
||
Comment 15•14 days ago
|
||
Comment 16•14 days ago
|
||
Assignee | ||
Comment 17•14 days 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-central
to 1.82 or newer (CC :glandium). If not, we're blocked here, and I need to explore downgradinghashbrown
from 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•14 days 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•14 days 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•9 days ago
|
||
Assignee | ||
Comment 21•9 days 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•9 days ago
|
Updated•9 days ago
|
Comment 22•9 days ago
|
||
Updated•9 days ago
|
Updated•9 days ago
|
Comment 23•9 days ago
|
||
bugherder |
Updated•8 days ago
|
Comment 24•8 days 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•8 days 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 Tool
s' 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•8 days ago
|
Comment 26•4 days ago
|
||
Comment 27•4 days 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•4 days 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 Tool
s' 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•4 days ago
|
||
Updated•4 days ago
|
Assignee | ||
Updated•4 days ago
|
Assignee | ||
Comment 30•4 days ago
|
||
Comment 31•4 days 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•4 days ago
|
||
bugherder |
Comment 33•3 days ago
|
||
Assignee | ||
Updated•3 days ago
|
Assignee | ||
Comment 35•3 days ago
|
||
Investigating. 😭 Might need help from :jnicol here.
Comment 36•3 days ago
|
||
Comment hidden (obsolete) |
Comment 39•2 days 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 day ago
|
Description
•