Skip to content

Commit cae0fb2

Browse files
authored
[ExecuTorch][WebGPU] Use requiredFeatures instance API on native + emscripten Dawn
Differential Revision: D110149678 Pull Request resolved: #20652
1 parent b5d8afd commit cae0fb2

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

backends/webgpu/runtime/WebGPUDevice.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,9 @@ WebGPUContext create_webgpu_context() {
9090

9191
// TimedWaitAny lets webgpu_wait() block on futures via wgpuInstanceWaitAny.
9292
WGPUInstanceDescriptor instance_desc = {};
93-
#if defined(__EMSCRIPTEN__)
93+
// Vendored (buck) Dawn uses the older capabilities.* API; the rig's native
94+
// Dawn and emscripten's emdawnwebgpu (emcc 4.0.19+) use requiredFeatures.
95+
#if defined(WEBGPU_DAWN_INSTANCE_CAPABILITIES)
9496
instance_desc.capabilities.timedWaitAnyEnable = true;
9597
instance_desc.capabilities.timedWaitAnyMaxCount = 1;
9698
#else

0 commit comments

Comments
 (0)