With the no-readback webgpu enabled, crash on https://webgpu.github.io/webgpu-samples/samples/cornell
Categories
(Core :: Graphics: WebGPU, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr115 | --- | unaffected |
firefox119 | --- | unaffected |
firefox120 | --- | unaffected |
firefox121 | --- | verified |
firefox122 | --- | verified |
People
(Reporter: mayankleoboy1, Assigned: sotaro)
References
(Regression, )
Details
(Keywords: regression)
Crash Data
Attachments
(2 files)
Enable webgpu
Set Set dom.webgpu.swap-chain.external-texture-dx12=True . Restart the browser
Go to https://webgpu.github.io/webgpu-samples/samples/cornell
AR: Crash (2 crash reports are generated)
ER: Not so
https://crash-stats.mozilla.org/report/index/a9f8ef64-5f07-4dbd-b2e4-463f90231104
https://crash-stats.mozilla.org/report/index/afdfe916-4949-426a-8505-e38250231104#tab-bugzilla
Reporter | ||
Updated•7 months ago
|
Reporter | ||
Comment 1•7 months ago
|
||
Comment 2•7 months ago
|
||
Set release status flags based on info from the regressing bug 1856787
:sotaro, since you are the author of the regressor, bug 1856787, could you take a look?
For more information, please visit BugBot documentation.
Assignee | ||
Updated•7 months ago
|
Assignee | ||
Comment 3•7 months ago
|
||
During the STR, D3D12 Device was removed. It seemed to cause the problem.
Assignee | ||
Comment 4•7 months ago
|
||
CreateUnorderedAccessView was failed with the following error log.
D3D12 ERROR: ID3D12Device::CreateUnorderedAccessView: A UnorderedAccessView cannot be created of a Resource that did not specify the D3D12_RESOURCE_FLAG_ALLOW_UNORDERED_ACCESS Flag. [ STATE_CREATION ERROR #340: CREATEUNORDEREDACCESSVIEW_INVALIDRESOURCE]
D3D12: Removing Device.
Assignee | ||
Comment 5•7 months ago
|
||
Assignee | ||
Comment 6•7 months ago
|
||
Adding D3D11_BIND_UNORDERED_ACCESS flag to D3D11 texture addressed the problem for me.
Updated•7 months ago
|
Assignee | ||
Comment 7•7 months ago
•
|
||
wgpu dx12 requests to Texture that if its usage has STORAGE_BINDING, D3D12 resource needs to have D3D12_RESOURCE_FLAG_ALLOW_UNORDERED_ACCESS.
- https://searchfox.org/mozilla-central/rev/02841791400cf7cf5760c0cfaf31f5d772624253/third_party/rust/wgpu-core/src/conv.rs#122
- https://searchfox.org/mozilla-central/rev/02841791400cf7cf5760c0cfaf31f5d772624253/third_party/rust/wgpu-hal/src/dx12/conv.rs#41
The equivalent of D3D12_RESOURCE_FLAG_ALLOW_UNORDERED_ACCESS in D3D11 is D3D11_BIND_UNORDERED_ACCESS. Therefore, D3D11 textures in ExternalTextureD3D11 also require D3D11_BIND_UNORDERED_ACCESS if STORAGE_BINDING is used.
Pushed by sikeda.birchill@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/70862704c37d Set D3D11_BIND_UNORDERED_ACCESS if texture usage has STORAGE_BINDING r=lsalzman
Updated•7 months ago
|
Comment 9•7 months ago
|
||
bugherder |
Reporter | ||
Comment 10•7 months ago
|
||
This is fixed on latest Nightly. Thanks!
Updated•6 months ago
|
Comment 11•6 months ago
|
||
Reproducible on a 2023-11-03 Nightly build on Windows 10.
Verified as fixed on Firefox 121.0b4 and Nightly 122.0a1 on Windows 10, Ubuntu 22, macOS 12.
Description
•