mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
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>
This commit is contained in:
parent
bd9242acfa
commit
05b5268061
19 changed files with 3833 additions and 2260 deletions
|
@ -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 ({})",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue