drm/amdgpu: get cs support of AMDGPU_HW_IP_UVD_ENC
Reviewed-by: Christian König <christian.koenig@amd.com> 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>
This commit is contained in:
parent
63defd3f67
commit
166c8178fb
|
@ -82,6 +82,15 @@ int amdgpu_cs_get_ring(struct amdgpu_device *adev, u32 ip_type,
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case AMDGPU_HW_IP_UVD_ENC:
|
||||||
|
if (ring < adev->uvd.num_enc_rings){
|
||||||
|
*out_ring = &adev->uvd.ring_enc[ring];
|
||||||
|
} else {
|
||||||
|
DRM_ERROR("only %d UVD ENC rings are supported\n",
|
||||||
|
adev->uvd.num_enc_rings);
|
||||||
|
return -EINVAL;
|
||||||
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(*out_ring && (*out_ring)->adev)) {
|
if (!(*out_ring && (*out_ring)->adev)) {
|
||||||
|
|
Loading…
Reference in New Issue