mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-05 11:18:11 +02:00
Evicted no-move buffers can get lost if they end up in another
memory type than local.
This commit is contained in:
parent
d85e243259
commit
7743af9449
1 changed files with 2 additions and 1 deletions
|
|
@ -75,7 +75,8 @@ void drm_bo_add_to_lru(drm_buffer_object_t * bo)
|
|||
{
|
||||
drm_mem_type_manager_t *man;
|
||||
|
||||
if (!(bo->mem.mask & (DRM_BO_FLAG_NO_MOVE | DRM_BO_FLAG_NO_EVICT))) {
|
||||
if (!(bo->mem.mask & (DRM_BO_FLAG_NO_MOVE | DRM_BO_FLAG_NO_EVICT))
|
||||
|| bo->mem.mem_type != bo->pinned_mem_type) {
|
||||
man = &bo->dev->bm.man[bo->mem.mem_type];
|
||||
list_add_tail(&bo->lru, &man->lru);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue