All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/amdgpu: Add back JPEG to video caps for carrizo and newer
@ 2025-04-07 12:53 David Rosca
  2025-04-07 13:03 ` Liu, Leo
  0 siblings, 1 reply; 2+ messages in thread
From: David Rosca @ 2025-04-07 12:53 UTC (permalink / raw)
  To: amd-gfx; +Cc: David Rosca

JPEG is not supported on Vega only.

Fixes: 6496b525cdea ("drm/amdgpu: Remove JPEG from vega and carrizo video caps")
Signed-off-by: David Rosca <david.rosca@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/vi.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/vi.c b/drivers/gpu/drm/amd/amdgpu/vi.c
index 86d8bc10d90a..9b3510e53112 100644
--- a/drivers/gpu/drm/amd/amdgpu/vi.c
+++ b/drivers/gpu/drm/amd/amdgpu/vi.c
@@ -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 =
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* RE: [PATCH] drm/amdgpu: Add back JPEG to video caps for carrizo and newer
  2025-04-07 12:53 [PATCH] drm/amdgpu: Add back JPEG to video caps for carrizo and newer David Rosca
@ 2025-04-07 13:03 ` Liu, Leo
  0 siblings, 0 replies; 2+ messages in thread
From: Liu, Leo @ 2025-04-07 13:03 UTC (permalink / raw)
  To: Rosca, David, amd-gfx@lists.freedesktop.org; +Cc: Rosca, David

[AMD Official Use Only - AMD Internal Distribution Only]

Reviewed-by: Leo Liu <leo.liu@amd.com>

> -----Original Message-----
> From: amd-gfx <amd-gfx-bounces@lists.freedesktop.org> On Behalf Of David
> Rosca
> Sent: April 7, 2025 8:53 AM
> To: amd-gfx@lists.freedesktop.org
> Cc: Rosca, David <David.Rosca@amd.com>
> 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")
> Signed-off-by: David Rosca <david.rosca@amd.com>
> ---
>  drivers/gpu/drm/amd/amdgpu/vi.c | 7 +++++++
>  1 file changed, 7 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/vi.c
> b/drivers/gpu/drm/amd/amdgpu/vi.c index 86d8bc10d90a..9b3510e53112
> 100644
> --- a/drivers/gpu/drm/amd/amdgpu/vi.c
> +++ b/drivers/gpu/drm/amd/amdgpu/vi.c
> @@ -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 =
> --
> 2.43.0


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-04-07 13:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-07 12:53 [PATCH] drm/amdgpu: Add back JPEG to video caps for carrizo and newer David Rosca
2025-04-07 13:03 ` Liu, Leo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.