mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
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:
parent
31c9874891
commit
a1f602e17f
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue