|
@@ -458,7 +458,7 @@ int radeon_bo_list_validate(struct radeon_device *rdev,
|
|
* into account. We don't want to disallow buffer moves
|
|
* into account. We don't want to disallow buffer moves
|
|
* completely.
|
|
* completely.
|
|
*/
|
|
*/
|
|
- if (current_domain != RADEON_GEM_DOMAIN_CPU &&
|
|
|
|
|
|
+ if ((lobj->alt_domain & current_domain) != 0 &&
|
|
(domain & current_domain) == 0 && /* will be moved */
|
|
(domain & current_domain) == 0 && /* will be moved */
|
|
bytes_moved > bytes_moved_threshold) {
|
|
bytes_moved > bytes_moved_threshold) {
|
|
/* don't move it */
|
|
/* don't move it */
|