WebGPU: ASTC formats are not supported
Categories
(Core :: Graphics: WebGPU, defect, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox132 | --- | fixed |
People
(Reporter: filip, Assigned: ErichDonGubler)
References
(Blocks 1 open bug)
Details
Attachments
(2 files, 1 obsolete file)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0
Steps to reproduce:
Called GPUDevice.createTexture with a format of 'astc-8x8-unorm'
Actual results:
Uncaught TypeError: GPUDevice.createTexture: 'astc-8x8-unorm' (value of 'format' member of GPUTextureDescriptor) is not a valid value for enumeration GPUTextureFormat.
Expected results:
ASTC formats supported if texture-compression-astc was available and enabled.
Pretty sure ASTC being missing from here is the issue: https://github.com/mozilla/gecko-dev/blob/master/dom/webidl/WebGPU.webidl#L368
Updated•2 years ago
|
I would consider this a blocker for Mac as well: https://bugzilla.mozilla.org/show_bug.cgi?id=1839761, since Apple Silicon app often rely on ASTC to share code with iOS due to using the same general architecture.
Assignee | ||
Comment 2•2 years ago
|
||
filip: RE: iOS: Unless something has changed very recently, the Firefox app on iOS currently uses WebKit for its browser engine, and not Gecko, due to . That specific platform's support is not something we will be able to directly resolve until that does change. π«€
I do hope it will change soon, though! Mozilla is very interested in using Gecko on iOS.π€π»π¦
Ah right I was so into this that I forgot haha. This does apply to Apple Silicon Macs though!
Updated•1 year ago
|
Is there any chance of fixing this so that GPUAdapter.features (https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapter/features) doesn't return texture-compression-astc on Firefox while we're waiting for this to be fixed?
Assignee | ||
Comment 5•11 months ago
|
||
Assignee | ||
Comment 6•11 months ago
|
||
I'm not sure if there's further work beyond exposing the texture format via IDL, but I just made a patch that does so. CI run: try:0743f7bf5083
π€π»
Assignee | ||
Comment 7•11 months ago
|
||
filip: If you download one of the Firefox builds from βπ» the above try push (filtered view for convenience), is this issue resolved while running it? I don't see any significant CI regressions[^1], so I think we might be able to just land the current patch.
[^1]: Some new CTS tests fail, but that's because some tests that were expecting to fail are now succeeding unexpectedly. π
We're using the wrong error mechanism in webgpu:api,validation,capability_checks,features,texture_formats:canvas_configuration_view_formats:*
(expected to use a TypeError
when the feature isn't enabled, but we currently return a validation error).
Updated•11 months ago
|
Assignee | ||
Comment 8•11 months ago
|
||
Assignee | ||
Comment 9•11 months ago
|
||
Comment 10•11 months ago
|
||
Comment on attachment 9423172 [details]
Bug 1873039 - test(webgpu): reset contradictory expected
outcomes in backlog
from try:c7c67882a5ee24aa234d26f680c77eb4e6340d9e
r=#webgpu-reviewers
Revision D221311 was moved to bug 1917059. Setting attachment 9423172 [details] to obsolete.
Comment 11•11 months ago
|
||
Comment 12•11 months ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/347d2ffd901d
https://hg.mozilla.org/mozilla-central/rev/845b7034b36b
Reporter | ||
Comment 13•11 months ago
|
||
(In reply to Erich Gubler [:ErichDonGubler] from comment #7)
filip: If you download one of the Firefox builds from βπ» the above try push (filtered view for convenience), is this issue resolved while running it? I don't see any significant CI regressions[^1], so I think we might be able to just land the current patch.
[^1]: Some new CTS tests fail, but that's because some tests that were expecting to fail are now succeeding unexpectedly. π We're using the wrong error mechanism in
webgpu:api,validation,capability_checks,features,texture_formats:canvas_configuration_view_formats:*
(expected to use aTypeError
when the feature isn't enabled, but we currently return a validation error).
Sorry for the delay, just downloaded the build and can confirm it seems to work!
Comment 14•11 months ago
|
||
Backed out 4 changesets (bug 1917059, bug 1873039) for causing conflicts when trying to backout Bug 1917102.
Comment 15•11 months ago
|
||
Backout merged to central: https://hg.mozilla.org/mozilla-central/rev/8dc2e21d4955
Assignee | ||
Comment 16•11 months ago
|
||
I've rebased onto a corrected (soft dep.) patch stack for bug 1917102; hopefully re-landing is uneventful! π€π»
Comment 17•11 months ago
|
||
Comment 18•11 months ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/1f36edd33503
https://hg.mozilla.org/mozilla-central/rev/0c3150a96c14
Description
•