]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: set preferred_domain independent of fallback handling
authorChunming Zhou <david1.zhou@amd.com>
Tue, 17 Apr 2018 03:52:53 +0000 (11:52 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 May 2018 18:43:31 +0000 (13:43 -0500)
commit58b8efbb78a1df0ccf5fa44f78597e75da8e42c5
tree745a77d0e92a3e04254a8b0bb2c4dfc113afebcf
parent0ae927528f9cf231c3f8e321ba5db52d8591a7f9
drm/amdgpu: set preferred_domain independent of fallback handling

When GEM needs to fallback to GTT for VRAM BOs we still want the
preferred domain to be untouched so that the BO has a cance to move back
to VRAM in the future.

Signed-off-by: Chunming Zhou <david1.zhou@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
drivers/gpu/drm/amd/amdgpu/amdgpu_object.h