From 2953bb2d915deaf51608b46425734adaab796ba5 Mon Sep 17 00:00:00 2001
From: Dave Stevenson <dave.stevenson@raspberrypi.com>
Date: Thu, 15 Jan 2026 17:34:25 +0000
Subject: [PATCH] Revert "media: hevc_dec: Drop the new image formats until we
 have Mesa 24"

This reverts commit 1a651cbcc541262479fdf0286e24309c48cbc020.
---
 drivers/media/platform/raspberrypi/hevc_dec/hevc_d_video.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

--- a/drivers/media/platform/raspberrypi/hevc_dec/hevc_d_video.c
+++ b/drivers/media/platform/raspberrypi/hevc_dec/hevc_d_video.c
@@ -284,8 +284,8 @@ static u32 pixelformat_from_sps(const st
 				const int index)
 {
 	static const u32 all_formats[] = {
-		//V4L2_PIX_FMT_NV12MT_COL128,
-		//V4L2_PIX_FMT_NV12MT_10_COL128,
+		V4L2_PIX_FMT_NV12MT_COL128,
+		V4L2_PIX_FMT_NV12MT_10_COL128,
 		V4L2_PIX_FMT_NV12_COL128,
 		V4L2_PIX_FMT_NV12_10_COL128,
 	};
@@ -298,12 +298,11 @@ static u32 pixelformat_from_sps(const st
 			pf = all_formats[index];
 	} else {
 		if (index == 0) {
-/*			if (sps->bit_depth_luma_minus8 == 0)
+			if (sps->bit_depth_luma_minus8 == 0)
 				pf = V4L2_PIX_FMT_NV12MT_COL128;
 			else if (sps->bit_depth_luma_minus8 == 2)
 				pf = V4L2_PIX_FMT_NV12MT_10_COL128;
 		} else if (index == 1) {
-			*/
 			if (sps->bit_depth_luma_minus8 == 0)
 				pf = V4L2_PIX_FMT_NV12_COL128;
 			else if (sps->bit_depth_luma_minus8 == 2)
