Closed Bug 1863474 Opened 1 year ago Closed 1 year ago

Add a capability of handling ID3D11Fence and ID3D12Fence handling to WebGPU

Categories

(Core :: Graphics: WebGPU, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
124 Branch
Tracking Status
firefox124 --- fixed

People

(Reporter: sotaro, Assigned: sotaro)

References

(Depends on 1 open bug, )

Details

Attachments

(1 file)

In chromium uses ID3D11Fence and ID3D12Fence for fence handling The fence handling seems necessary also in gecko.

D3DSharedFence is used for D3D11

d3d12::Fence is used for D3D12.

The following functions control begin/end access from D3D11/D3D12.
D3DImageBacking::BeginAccessD3D11()
D3DImageBacking::EndAccessD3D11()
D3DImageBacking::BeginAccessDawn()
D3DImageBacking::EndAccessDawn()

Component: Graphics → Graphics: WebGPU
Summary: Add d3d12 Fence handling → Add ID3D11Fence and ID3D12Fence handling
Assignee: nobody → sotaro.ikeda.g
Blocks: 1843891
Blocks: 1864103
Summary: Add ID3D11Fence and ID3D12Fence handling → Add ID3D11Fence and ID3D12Fence handling to WebGPU
Depends on: 1865984
Summary: Add ID3D11Fence and ID3D12Fence handling to WebGPU → Add a capability of handling ID3D11Fence and ID3D12Fence handling to WebGPU
Attachment #9363621 - Attachment description: WIP: Bug 1863474 - Add ID3D11Fence and ID3D12Fence handling → WIP: Bug 1863474 - Add a capability of handling ID3D11Fence and ID3D12Fence handling to WebGPU
Depends on: 1866412

From the change to wgpu-core of D193619,

Change to wgpu might be necessary to do the followings.

  • wgpu-core
    • A way to get last_submit_index for Texture of texture_id
    • A way to get wgpu::Device.fence
  • wgpu-hal
    • A way to get d3d12::Fence from wgpu_hal::dx12::Texture
    • A way to create d3d12::Fence with d3d12_ty::D3D12_FENCE_FLAG_SHARED for wgpu::Device<api::Dx12>.fence
Depends on: 1871429
Attachment #9363621 - Attachment description: WIP: Bug 1863474 - Add a capability of handling ID3D11Fence and ID3D12Fence handling to WebGPU → Bug 1863474 - Add a capability of handling ID3D11Fence and ID3D12Fence handling to WebGPU
Pushed by sikeda.birchill@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ecd549d5e773 Add a capability of handling ID3D11Fence and ID3D12Fence handling to WebGPU r=webgpu-reviewers,nical
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 124 Branch
Regressions: 1891132
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: