drm/amdgpu: get cs support of AMDGPU_HW_IP_VCN_DEC
authorLeo Liu <leo.liu@amd.com>
Wed, 25 Jan 2017 20:05:53 +0000 (15:05 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 May 2017 21:41:36 +0000 (17:41 -0400)
Signed-off-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c

index 4e6b9501ab0aac6cd4b33412f47ce23cf3301e47..60948a7bd247aa969fb5e2eb7aeac5090aa63e87 100644 (file)
@@ -91,6 +91,9 @@ int amdgpu_cs_get_ring(struct amdgpu_device *adev, u32 ip_type,
                        return -EINVAL;
                }
                break;
+       case AMDGPU_HW_IP_VCN_DEC:
+               *out_ring = &adev->vcn.ring_dec;
+               break;
        }
 
        if (!(*out_ring && (*out_ring)->adev)) {