Commit 3504bd45 authored by Leo Liu's avatar Leo Liu Committed by Alex Deucher

drm/amdgpu: fix JPEG instance checking when ctx init

Use proper structure.

Fixes: 0388aee7 ("drm/amdgpu: use the JPEG structure for general driver support")
Signed-off-by: default avatarLeo Liu <leo.liu@amd.com>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Reviewed-by: default avatarJames Zhu <James.Zhu@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 21a174f5
...@@ -170,7 +170,7 @@ static int amdgpu_ctx_init(struct amdgpu_device *adev, ...@@ -170,7 +170,7 @@ static int amdgpu_ctx_init(struct amdgpu_device *adev,
break; break;
case AMDGPU_HW_IP_VCN_JPEG: case AMDGPU_HW_IP_VCN_JPEG:
for (j = 0; j < adev->jpeg.num_jpeg_inst; ++j) { for (j = 0; j < adev->jpeg.num_jpeg_inst; ++j) {
if (adev->vcn.harvest_config & (1 << j)) if (adev->jpeg.harvest_config & (1 << j))
continue; continue;
rings[num_rings++] = &adev->jpeg.inst[j].ring_dec; rings[num_rings++] = &adev->jpeg.inst[j].ring_dec;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment