diff options
author | Chunming Zhou <david1.zhou@amd.com> | 2018-04-17 11:52:53 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-05-15 13:43:31 -0500 |
commit | aa2b2e2822831d78a283edb12cf8b7da21bdd0ed (patch) | |
tree | 745a77d0e92a3e04254a8b0bb2c4dfc113afebcf /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
parent | 58cd8fbc64b03d0e9961d627526bd07edbea00b9 (diff) | |
download | linux-aa2b2e2822831d78a283edb12cf8b7da21bdd0ed.tar.gz linux-aa2b2e2822831d78a283edb12cf8b7da21bdd0ed.tar.bz2 linux-aa2b2e2822831d78a283edb12cf8b7da21bdd0ed.zip |
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c index 1200c5ba37da..ff606ce88837 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c @@ -62,6 +62,7 @@ int amdgpu_gem_object_create(struct amdgpu_device *adev, unsigned long size, bp.byte_align = alignment; bp.type = type; bp.resv = resv; + bp.preferred_domain = initial_domain; retry: bp.flags = flags; bp.domain = initial_domain; |