Commit 37cb3e08 authored by Ben Skeggs's avatar Ben Skeggs

drm/nouveau: fix bug causing pinned buffers to lose their NO_EVICT flag

Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 65ec01a9
......@@ -154,6 +154,11 @@ nouveau_bo_placement_set(struct nouveau_bo *nvbo, uint32_t memtype)
nvbo->placement.busy_placement = nvbo->placements;
nvbo->placement.num_placement = n;
nvbo->placement.num_busy_placement = n;
if (nvbo->pin_refcnt) {
while (n--)
nvbo->placements[n] |= TTM_PL_FLAG_NO_EVICT;
}
}
int
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment