mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-25 00:10:11 +01:00
drm/radeon: initial suspend/resume fix.
This enables the evict code and also sets radeon up to allow evict from VRAM to LOCAL
This commit is contained in:
parent
e4fa03f7dd
commit
fc33686ef0
2 changed files with 2 additions and 2 deletions
|
|
@ -2126,7 +2126,7 @@ void drm_bo_evict_mm(struct drm_device *dev, int mem_type, int no_wait)
|
|||
drm_bo_usage_deref_unlocked(&entry);
|
||||
|
||||
mutex_lock(&dev->struct_mutex);
|
||||
} while(0);
|
||||
} while(1);
|
||||
|
||||
mutex_unlock(&dev->struct_mutex);
|
||||
|
||||
|
|
|
|||
|
|
@ -436,6 +436,6 @@ uint64_t radeon_evict_flags(struct drm_buffer_object *bo)
|
|||
case DRM_BO_MEM_TT:
|
||||
return DRM_BO_FLAG_MEM_LOCAL;
|
||||
default:
|
||||
return DRM_BO_FLAG_MEM_TT;
|
||||
return DRM_BO_FLAG_MEM_TT | DRM_BO_FLAG_MEM_LOCAL;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue