OSDN Git Service

drm/amdgpu/vce: simplify vce instance setup
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 25 Jun 2018 17:41:21 +0000 (12:41 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 5 Jul 2018 21:39:53 +0000 (16:39 -0500)
commit5d4af988f39052b77f8fdd9ed5cb61ca1645a3a6
tree4ba46d6b762d71feea91f597ab3e19bb675bf4b6
parent1cf0abb6c983d90ec541ebba79934a9c4786df1d
drm/amdgpu/vce: simplify vce instance setup

Set the me instance in early init and use that rather than
calculating the instance based on the ring pointer.

Reviewed-by: James Zhu <James.Zhu@amd.com>
Reviewed-by: Leo Liu <leo.liu@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/vce_v2_0.c
drivers/gpu/drm/amd/amdgpu/vce_v3_0.c
drivers/gpu/drm/amd/amdgpu/vce_v4_0.c