d3d12: Fix d3d12_promote_to_permanent_residency always making resident

Reviewed-by: Pohsiang (John) Hsu <pohhsu@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38057>
This commit is contained in:
Silvio Vilerino 2025-10-22 17:20:35 -04:00 committed by Marge Bot
parent 31c9874891
commit a1f602e17f

View file

@ -304,7 +304,7 @@ d3d12_promote_to_permanent_residency(struct d3d12_screen *screen, struct d3d12_r
struct d3d12_bo *base_bo = d3d12_bo_get_base(resources[i]->bo, &offset);
if (base_bo->residency_status != d3d12_permanently_resident) {
bool needs_make_resident = (base_bo->residency_status != d3d12_resident);
bool needs_make_resident = (base_bo->residency_status == d3d12_evicted);
base_bo->residency_status = d3d12_permanently_resident;
if (needs_make_resident) {