OSDN Git Service

drm/amdgpu: use the num_rings variable for checking vce rings
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 11 Jan 2017 21:11:48 +0000 (16:11 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 27 Jan 2017 16:13:29 +0000 (11:13 -0500)
commit034041f33498ba57d9fd1d3e4aea7e40ea4988da
tree84bf1b992c5bc85889fb68b37bdcddd5016d9d2d
parentf1543f58cbc7f62c4ea0cca57bbb4a95dc752264
drm/amdgpu: use the num_rings variable for checking vce rings

Difference families may have different numbers of rings. Use
the variable rather than a hardcoded number.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c