Bug 1962706 - Change memory budget for_device_loss threshold to 99. r=webgpu-reviewers,ErichDonGubler

We are first dividing the current usage by 100 then multiplying by the threshold. So we could run into a situation where current usage = budget but because we divided by 100 then multiplied by 100, current usage and budget might no longer be equal.

Differential Revision: https://phabricator.services.mozilla.com/D246758
This commit is contained in:
teoxoy
2025-04-28 13:14:26 +00:00
parent 38958db2c7
commit 59b80dce34

View File

@@ -159,7 +159,7 @@ pub extern "C" fn wgpu_server_new(owner: *mut c_void, use_dxc: bool) -> *mut Glo
},
memory_budget_thresholds: wgt::MemoryBudgetThresholds {
for_resource_creation: Some(95),
for_device_loss: Some(100),
for_device_loss: Some(99),
},
},
);