From 27a39114606a51b88a1d9037bfb8a3c981fa6dd7 Mon Sep 17 00:00:00 2001 From: David Rosca Date: Tue, 2 Sep 2025 10:28:58 +0200 Subject: [PATCH] frontends/va: Always advertise explicit color standard support This has nothing to do with HDR support. Acked-by: Ruijing Dong Part-of: --- src/gallium/frontends/va/surface.c | 39 ++++-------------------------- 1 file changed, 5 insertions(+), 34 deletions(-) diff --git a/src/gallium/frontends/va/surface.c b/src/gallium/frontends/va/surface.c index f2cd310eff6..35f80b39141 100644 --- a/src/gallium/frontends/va/surface.c +++ b/src/gallium/frontends/va/surface.c @@ -1413,24 +1413,7 @@ vlVaQueryVideoProcFilterCaps(VADriverContextP ctx, VAContextID context_id, return VA_STATUS_SUCCESS; } -static VAProcColorStandardType vpp_input_color_standards[] = { - VAProcColorStandardBT601, - VAProcColorStandardBT709 -}; - -static VAProcColorStandardType vpp_output_color_standards[] = { - VAProcColorStandardBT601, - VAProcColorStandardBT709 -}; - -static VAProcColorStandardType vpp_input_color_standards_extends[] = { - VAProcColorStandardBT601, - VAProcColorStandardBT709, - VAProcColorStandardBT2020, - VAProcColorStandardExplicit -}; - -static VAProcColorStandardType vpp_output_color_standards_extends[] = { +static VAProcColorStandardType vpp_color_standards[] = { VAProcColorStandardBT601, VAProcColorStandardBT709, VAProcColorStandardBT2020, @@ -1479,22 +1462,10 @@ vlVaQueryVideoProcPipelineCaps(VADriverContextP ctx, VAContextID context, if (!media_only || pipe_orientation_flags & PIPE_VIDEO_VPP_FLIP_VERTICAL) pipeline_cap->mirror_flags |= VA_MIRROR_VERTICAL; - if (pscreen->get_video_param(pscreen, PIPE_VIDEO_PROFILE_UNKNOWN, PIPE_VIDEO_ENTRYPOINT_PROCESSING, - PIPE_VIDEO_CAP_VPP_SUPPORT_HDR_INPUT)) { - pipeline_cap->num_input_color_standards = ARRAY_SIZE(vpp_input_color_standards_extends); - pipeline_cap->input_color_standards = vpp_input_color_standards_extends; - } else { - pipeline_cap->num_input_color_standards = ARRAY_SIZE(vpp_input_color_standards); - pipeline_cap->input_color_standards = vpp_input_color_standards; - } - if (pscreen->get_video_param(pscreen, PIPE_VIDEO_PROFILE_UNKNOWN, PIPE_VIDEO_ENTRYPOINT_PROCESSING, - PIPE_VIDEO_CAP_VPP_SUPPORT_HDR_OUTPUT)) { - pipeline_cap->num_output_color_standards = ARRAY_SIZE(vpp_output_color_standards_extends); - pipeline_cap->output_color_standards = vpp_output_color_standards_extends; - } else { - pipeline_cap->num_output_color_standards = ARRAY_SIZE(vpp_output_color_standards); - pipeline_cap->output_color_standards = vpp_output_color_standards; - } + pipeline_cap->input_color_standards = vpp_color_standards; + pipeline_cap->num_input_color_standards = ARRAY_SIZE(vpp_color_standards); + pipeline_cap->output_color_standards = vpp_color_standards; + pipeline_cap->num_output_color_standards = ARRAY_SIZE(vpp_color_standards); pipeline_cap->max_input_width = pscreen->get_video_param(pscreen, PIPE_VIDEO_PROFILE_UNKNOWN, PIPE_VIDEO_ENTRYPOINT_PROCESSING,