drm/amdgpu: Add helper function to get buffer domain
authorDeepak Sharma <Deepak.Sharma@amd.com>
Sat, 26 May 2018 00:12:29 +0000 (17:12 -0700)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 29 May 2018 18:17:51 +0000 (13:17 -0500)
commit84b74608442d00fbdcd233e3230b3068b0ab9b18
tree3e5b1eaf3aa1a39437d539684acb0cab81ce778f
parentbda31a24dc5c03fd76832c4d672fba8355e3aa44
drm/amdgpu: Add helper function to get buffer domain

Move logic of getting supported domain to a helper
function

Signed-off-by: Deepak Sharma <Deepak.Sharma@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@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