drm/amdgpu: use register distance member instead of hardcode in UVD7/VCE4
authorHuang Rui <ray.huang@amd.com>
Wed, 1 Jul 2020 07:39:02 +0000 (15:39 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 8 Jul 2020 13:03:25 +0000 (09:03 -0400)
commit2fcaca94bedae2ea9516168b32723106428db52e
tree7bc5fae66b3ae7ced5882db2296105f3d3d36d3b
parent228ea7b08042a63dcb87224c047f4c848a5288bf
drm/amdgpu: use register distance member instead of hardcode in UVD7/VCE4

This patch updates to use register distance member instead of hardcode
in UVD7/VCE4. They are for the same ASIC.

Signed-off-by: Huang Rui <ray.huang@amd.com>
Tested-by: AnZhong Huang <anzhong.huang@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/uvd_v7_0.c
drivers/gpu/drm/amd/amdgpu/vce_v4_0.c