Skip to content

Commit 2036be3

Browse files
nowrepalexdeucher
authored andcommitted
drm/amdgpu: Add back JPEG to video caps for carrizo and newer
JPEG is not supported on Vega only. Fixes: 0a6e7b0 ("drm/amdgpu: Remove JPEG from vega and carrizo video caps") Signed-off-by: David Rosca <david.rosca@amd.com> Reviewed-by: Leo Liu <leo.liu@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> (cherry picked from commit 0f4dfe8) Cc: stable@vger.kernel.org
1 parent e7afa85 commit 2036be3

File tree

1 file changed

+7
-0
lines changed
  • drivers/gpu/drm/amd/amdgpu

1 file changed

+7
-0
lines changed

drivers/gpu/drm/amd/amdgpu/vi.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,13 @@ static const struct amdgpu_video_codec_info cz_video_codecs_decode_array[] =
239239
.max_pixels_per_frame = 4096 * 4096,
240240
.max_level = 186,
241241
},
242+
{
243+
.codec_type = AMDGPU_INFO_VIDEO_CAPS_CODEC_IDX_JPEG,
244+
.max_width = 4096,
245+
.max_height = 4096,
246+
.max_pixels_per_frame = 4096 * 4096,
247+
.max_level = 0,
248+
},
242249
};
243250

244251
static const struct amdgpu_video_codecs cz_video_codecs_decode =

0 commit comments

Comments
 (0)