projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cefbc59
)
drm/amdgpu: get cs support for AMDGPU_HW_IP_VCN_ENC
author
Leo Liu
<
[email protected]
>
Tue, 21 Feb 2017 16:24:09 +0000
(11:24 -0500)
committer
Alex Deucher
<
[email protected]
>
Wed, 24 May 2017 21:41:45 +0000
(17:41 -0400)
Signed-off-by: Leo Liu <
[email protected]
>
Reviewed-by: Christian König <
[email protected]
>
Reviewed-by: Alex Deucher <
[email protected]
>
Signed-off-by: Alex Deucher <
[email protected]
>
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
index 60948a7bd247aa969fb5e2eb7aeac5090aa63e87..1375a896e87b95dc48746bb8ef6363d71d6f97b7 100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
+++ b/
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
@@
-94,6
+94,15
@@
int amdgpu_cs_get_ring(struct amdgpu_device *adev, u32 ip_type,
case AMDGPU_HW_IP_VCN_DEC:
*out_ring = &adev->vcn.ring_dec;
break;
+ case AMDGPU_HW_IP_VCN_ENC:
+ if (ring < adev->vcn.num_enc_rings){
+ *out_ring = &adev->vcn.ring_enc[ring];
+ } else {
+ DRM_ERROR("only %d VCN ENC rings are supported\n",
+ adev->vcn.num_enc_rings);
+ return -EINVAL;
+ }
+ break;
}
if (!(*out_ring && (*out_ring)->adev)) {