From: Boyuan Zhang <boyuan.zhang@xxxxxxx> Add AMDGPU_HW_IP_VCN_JPEG_ENC type to ctx Signed-off-by: Boyuan Zhang <boyuan.zhang@xxxxxxx> Reviewed-by: Alex Deucher <alexander.deucher@xxxxxxx> --- 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 _______________________________________________ amd-gfx mailing list amd-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/amd-gfx