Closed Bug 1845853 Opened 11 months ago Closed 8 months ago

WebGPU should use the same DXGI adapter as WebRender with DX12

Categories

(Core :: Graphics: WebGPU, defect, P3)

All
Windows
defect

Tracking

()

RESOLVED FIXED
121 Branch
Tracking Status
firefox121 --- fixed

People

(Reporter: jimb, Assigned: sotaro)

References

Details

Attachments

(1 file)

Whenever possible, GPU.requestAdapter and GPUAdapter.requestDevice should return a GPUAdapter and GPUDevice referring to the same platform DXGI adapter that WebRender is using.

This will help with bug 1814222 (avoiding CPU readback), since the pixels will already be on the right GPU.

[edit: this used to imply that WebRender and WebGPU needed to be using the same device. This doesn't seem to be necessary: they just need to be on the same adapter.]

Summary: WebGPU should always use the same device as WebRender → WebGPU should prefer to use the same device as WebRender

In wgpu_core, the Global::create_adapter_from_hal and Adapter::create_device_from_hal methods can be used to create wgpu adapters and devices from their platform API analogues.

Chromium use same GPU that matches the dxgi adapter of compositor(ANGLE) on Windows.

Summary: WebGPU should prefer to use the same device as WebRender → WebGPU should prefer to use the same DXGI adapter as WebRender
Blocks: 1843891
Duplicate of this bug: 1845643
Assignee: nobody → sotaro.ikeda.g
Summary: WebGPU should prefer to use the same DXGI adapter as WebRender → WebGPU should prefer to use the same DXGI adapter as WebRender with DX12
OS: All → Windows
Attachment #9358239 - Attachment description: Bug 1845853 - WebGPU prefers to use the same DXGI adapter as WebRender with DX12 → Bug 1845853 - Use the same DXGI adapter as WebRender with DX12

If same adapter is not used, If wgpu uses a different adapter than WebRender, textures created by webgpu::ExternalTextures do not work with wgpu.

Summary: WebGPU should prefer to use the same DXGI adapter as WebRender with DX12 → WebGPU should use the same DXGI adapter as WebRender with DX12
Pushed by sikeda.birchill@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/879345307d6d
Use the same DXGI adapter as WebRender with DX12 r=webgpu-reviewers,nical
Status: NEW → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → 121 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: