]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amdgpu: Add back JPEG to video caps for carrizo and newer
authorDavid Rosca <david.rosca@amd.com>
Mon, 7 Apr 2025 11:12:11 +0000 (13:12 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 16 Apr 2025 19:55:00 +0000 (15:55 -0400)
JPEG is not supported on Vega only.

Fixes: 0a6e7b06bdbe ("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 0f4dfe86fe922c37bcec99dce80a15b4d5d4726d)
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/vi.c

index 86d8bc10d90ab22419b4427ae4fec1d0d86d3570..9b3510e531127518d6ddcee173d6a8960ca0b7ef 100644 (file)
@@ -239,6 +239,13 @@ static const struct amdgpu_video_codec_info cz_video_codecs_decode_array[] =
                .max_pixels_per_frame = 4096 * 4096,
                .max_level = 186,
        },
+       {
+               .codec_type = AMDGPU_INFO_VIDEO_CAPS_CODEC_IDX_JPEG,
+               .max_width = 4096,
+               .max_height = 4096,
+               .max_pixels_per_frame = 4096 * 4096,
+               .max_level = 0,
+       },
 };
 
 static const struct amdgpu_video_codecs cz_video_codecs_decode =