radeonsi/vpe: vpe support hdr input

when an application asks for supported formats
will return HDR formats(2020, explicit) is supported.

Signed-off-by: Peyton Lee <peytolee@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33731>
This commit is contained in:
Peyton Lee 2025-02-25 17:14:59 +08:00 committed by Marge Bot
parent 43ce5b1138
commit 7c8d58c26c

View file

@ -174,6 +174,10 @@ static int si_get_video_param(struct pipe_screen *screen, enum pipe_video_profil
case PIPE_VIDEO_CAP_SUPPORTS_INTERLACED:
/* for VPE we prefer non-interlaced buffer */
return false;
case PIPE_VIDEO_CAP_VPP_SUPPORT_HDR_INPUT:
if (debug_get_bool_option("AMDGPU_SIVPE_SUPPORT_HDR_INPUT", false))
return true;
return false;
default:
return 0;
}