提交 37cb3e08 编写于 作者: B Ben Skeggs

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

Signed-off-by: NBen Skeggs <bskeggs@redhat.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册