From 39187b36b522773aec3e2841e729d83bc48286c5 Mon Sep 17 00:00:00 2001 From: "Agate, Jesse" Date: Thu, 27 Nov 2025 04:13:27 -0500 Subject: [PATCH] amd/vpelib: Add RGB 601 Primaires to BG Color [WHY] RGB 601 Primaries are missing from vpe_is_limited_cs [HOW] Add 601 primaries to the switch statement Acked-by: Chuanyu Tseng Signed-Off-by: Jesse Agate Part-of: --- src/amd/vpelib/src/core/color_bg.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/amd/vpelib/src/core/color_bg.c b/src/amd/vpelib/src/core/color_bg.c index a8004143895..cac9bb9c597 100644 --- a/src/amd/vpelib/src/core/color_bg.c +++ b/src/amd/vpelib/src/core/color_bg.c @@ -382,6 +382,7 @@ bool vpe_is_limited_cs(enum color_space cs) switch (cs) { + case COLOR_SPACE_RGB601: case COLOR_SPACE_SRGB: case COLOR_SPACE_2020_RGB_FULLRANGE: case COLOR_SPACE_MSREF_SCRGB: @@ -392,6 +393,7 @@ bool vpe_is_limited_cs(enum color_space cs) case COLOR_SPACE_2020_YCBCR: is_limited = false; break; + case COLOR_SPACE_RGB601_LIMITED: case COLOR_SPACE_SRGB_LIMITED: case COLOR_SPACE_YCBCR601_LIMITED: case COLOR_SPACE_YCBCR709_LIMITED: