diff options
author | sagudev <16504129+sagudev@users.noreply.github.com> | 2025-04-18 09:49:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-18 07:49:06 +0000 |
commit | 05b5268061f66bdd3ae14eb51e2d0719bdc8325a (patch) | |
tree | f835428a499092f084c4bb1532f99bc0ad6ad300 /components/webgpu/wgpu_thread.rs | |
parent | bd9242acfa599ca6bc3d79c10edfeb7cb54246ae (diff) | |
download | servo-05b5268061f66bdd3ae14eb51e2d0719bdc8325a.tar.gz servo-05b5268061f66bdd3ae14eb51e2d0719bdc8325a.zip |
chore: Update wgpu to v25 (#36486)
Updates wgpu to v25 and remove some verbose logging from CTS (that also
causes OOM).
Testing: WebGPU CTS
---------
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
Diffstat (limited to 'components/webgpu/wgpu_thread.rs')
-rw-r--r-- | components/webgpu/wgpu_thread.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/components/webgpu/wgpu_thread.rs b/components/webgpu/wgpu_thread.rs index ce0303aaba7..8ca979670b2 100644 --- a/components/webgpu/wgpu_thread.rs +++ b/components/webgpu/wgpu_thread.rs @@ -664,7 +664,8 @@ impl WGPU { limits, channel: WebGPU(self.sender.clone()), } - }); + }) + .map_err(|err| err.to_string()); if let Err(e) = sender.send(Some(response)) { warn!( @@ -686,6 +687,7 @@ impl WGPU { required_features: descriptor.required_features, required_limits: descriptor.required_limits.clone(), memory_hints: MemoryHints::MemoryUsage, + trace: wgpu_types::Trace::Off, }; let global = &self.global; let device = WebGPUDevice(device_id); @@ -694,7 +696,6 @@ impl WGPU { .adapter_request_device( adapter_id.0, &desc, - None, Some(device_id), Some(queue_id), ) @@ -733,7 +734,8 @@ impl WGPU { }); global.device_set_device_lost_closure(device_id, callback); descriptor - }); + }) + .map_err(Into::into); if let Err(e) = sender.send((device, queue, result)) { warn!( "Failed to send response to WebGPURequest::RequestDevice ({})", |