From acf951515d4a8fdcc20ef06b149407afde39cac2 Mon Sep 17 00:00:00 2001 From: Julian Ng-Thow-Hing Date: Tue, 30 Jun 2026 14:15:46 -0700 Subject: [PATCH] Update [ghstack-poisoned] --- backends/webgpu/runtime/WebGPUDevice.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backends/webgpu/runtime/WebGPUDevice.cpp b/backends/webgpu/runtime/WebGPUDevice.cpp index e69101851a2..9f48347c16b 100644 --- a/backends/webgpu/runtime/WebGPUDevice.cpp +++ b/backends/webgpu/runtime/WebGPUDevice.cpp @@ -90,7 +90,9 @@ WebGPUContext create_webgpu_context() { // TimedWaitAny lets webgpu_wait() block on futures via wgpuInstanceWaitAny. WGPUInstanceDescriptor instance_desc = {}; -#if defined(__EMSCRIPTEN__) + // Vendored (buck) Dawn uses the older capabilities.* API; the rig's native + // Dawn and emscripten's emdawnwebgpu (emcc 4.0.19+) use requiredFeatures. +#if defined(WEBGPU_DAWN_INSTANCE_CAPABILITIES) instance_desc.capabilities.timedWaitAnyEnable = true; instance_desc.capabilities.timedWaitAnyMaxCount = 1; #else