Skip to contentSkip to conversation

drm/amdgpu: Add back JPEG to video caps for carrizo and newer

PATCH In review David Rosca 2 participants 2 messages Apr 7, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amdgpu: Add back JPEG to video caps for carrizo and newer

JPEG is not supported on Vega only.

Fixes 6496b525cdea ("drm/amdgpu: Remove JPEG from vega and carrizo video caps")
---
 drivers/gpu/drm/amd/amdgpu/vi.c | 7 +++++++
 1 file changed, 7 insertions(+)
drivers/gpu/drm/amd/amdgpu/vi.c +7 -0
index 86d8bc10d90a..9b3510e53112 100644
@@ -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 =
Signature · 1 line
2.43.0
Reviewed-by on v1 1/1
#1 lore raw

[AMD Official Use Only - AMD Internal Distribution Only]

Quoted 41 lines

-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of David Rosca
Sent: April 7, 2025 8:53 AM
To: [email protected]
Cc: Rosca, David <[email protected]>
Subject: [PATCH] drm/amdgpu: Add back JPEG to video caps for carrizo and newer

JPEG is not supported on Vega only.

Fixes 6496b525cdea ("drm/amdgpu: Remove JPEG from vega and carrizo

video caps")

---
 drivers/gpu/drm/amd/amdgpu/vi.c | 7 +++++++
 1 file changed, 7 insertions(+)
(quoted diff) +0 -0

b/drivers/gpu/drm/amd/amdgpu/vi.c index 86d8bc10d90a..9b3510e53112 100644

drivers/gpu/drm/amd/amdgpu/vi.c +0 -0
@@ -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,
      },
drivers/gpu/drm/amd/amdgpu/vi.c +2 -0
+     {
+             .codec_type =

AMDGPU_INFO_VIDEO_CAPS_CODEC_IDX_JPEG,

drivers/gpu/drm/amd/amdgpu/vi.c +5 -1
+             .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 =
--

2.43.0