mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-05 20:55:58 +00:00
In the case that a previous submit to the GPU required Dawn to exceed the residency budget, Dawn must attempt to get back under budget the next time EnsureCanMakeResident is called. This CL fixes a bug where we only evicted the current size needed to be resident, which would incorrectly raise the budget when a submit to the GPU required us to exceed the budget. Bug: dawn:193 Change-Id: I04649056e9eecce1fc6b5759c889b52a4f1b4594 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/19440 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Brandon Jones <brandon1.jones@intel.com>