fix: reclaim before accepting wrapped Vulkan iGPU memory estimates (#2124)

This commit is contained in:
losewayy authored and GitHub committed 2026-10-13 21:10:05 +08:00
1 parent 7e3e20a50b
commit 60423ab5f6
2 files changed
+26 -4

No files matched your search

+1
View File
@@ -152,6 +152,7 @@ private:
size_t required_budget_bytes = 0;
size_t available_device_bytes = SIZE_MAX;
size_t available_budget_bytes = SIZE_MAX;
bool requires_reclamation = false;
bool fits() const {
return required_device_bytes <= available_device_bytes &&
required_budget_bytes <= available_budget_bytes;