mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-21 21:53:28 +07:00
drm/amdgpu: fix JPEG instance checking when ctx init
Use proper structure.
Fixes: 0388aee766
("drm/amdgpu: use the JPEG structure for general driver support")
Signed-off-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: James Zhu <James.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
21a174f5ad
commit
3504bd45a9
@ -170,7 +170,7 @@ static int amdgpu_ctx_init(struct amdgpu_device *adev,
|
||||
break;
|
||||
case AMDGPU_HW_IP_VCN_JPEG:
|
||||
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;
|
||||
rings[num_rings++] = &adev->jpeg.inst[j].ring_dec;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user