[PATCH 16/17] drm/amdgpu: add AMDGPU_HW_IP_VCN_JPEG_ENC to ctx

boyuan.zhang at amd.com boyuan.zhang at amd.com
Thu Jul 4 16:04:28 UTC 2019


From: Boyuan Zhang <boyuan.zhang at amd.com>

Add AMDGPU_HW_IP_VCN_JPEG_ENC type to ctx

Signed-off-by: Boyuan Zhang <boyuan.zhang at amd.com>
Reviewed-by: Alex Deucher <alexander.deucher at amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
index e7be0075776a..40e82785b64d 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
@@ -42,6 +42,7 @@ const unsigned int amdgpu_ctx_num_entities[AMDGPU_HW_IP_NUM] = {
 	[AMDGPU_HW_IP_VCN_DEC]	=	1,
 	[AMDGPU_HW_IP_VCN_ENC]	=	1,
 	[AMDGPU_HW_IP_VCN_JPEG]	=	1,
+	[AMDGPU_HW_IP_VCN_JPEG_ENC]	=	1,
 };
 
 static int amdgput_ctx_total_num_entities(void)
@@ -169,6 +170,10 @@ static int amdgpu_ctx_init(struct amdgpu_device *adev,
 			rings[0] = &adev->vcn.ring_jpeg;
 			num_rings = 1;
 			break;
+		case AMDGPU_HW_IP_VCN_JPEG_ENC:
+			rings[0] = &adev->vcn.ring_jpeg_enc;
+			num_rings = 1;
+			break;
 		}
 
 		for (j = 0; j < num_rings; ++j) {
-- 
2.17.1



More information about the amd-gfx mailing list