frontends/va: Support A8R8G8B8 format for processing

Reviewed-by: Ruijing Dong <ruijing.dong@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34001>
This commit is contained in:
David Rosca
2025-03-11 13:41:30 +01:00
committed by Marge Bot
parent 332b313547
commit f87d72152c
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -174,6 +174,9 @@ static unsigned int get_screen_supported_va_rt_formats(struct pipe_screen *pscre
profile,
entrypoint) ||
pscreen->is_video_format_supported(pscreen, PIPE_FORMAT_B8G8R8X8_UNORM,
profile,
entrypoint) ||
pscreen->is_video_format_supported(pscreen, PIPE_FORMAT_A8R8G8B8_UNORM,
profile,
entrypoint))
supported_rt_formats |= VA_RT_FORMAT_RGB32;
+3
View File
@@ -574,6 +574,7 @@ vlVaQuerySurfaceAttributes(VADriverContextP ctx, VAConfigID config_id,
vlVaAddSurfaceFormat(pscreen, config, PIPE_FORMAT_B8G8R8A8_UNORM, attribs, &i);
vlVaAddSurfaceFormat(pscreen, config, PIPE_FORMAT_R8G8B8X8_UNORM, attribs, &i);
vlVaAddSurfaceFormat(pscreen, config, PIPE_FORMAT_B8G8R8X8_UNORM, attribs, &i);
vlVaAddSurfaceFormat(pscreen, config, PIPE_FORMAT_A8R8G8B8_UNORM, attribs, &i);
}
if (config->rt_format & VA_RT_FORMAT_RGB32_10) {
@@ -1576,6 +1577,8 @@ static uint32_t pipe_format_to_drm_format(enum pipe_format format)
return DRM_FORMAT_XRGB8888;
case PIPE_FORMAT_R8G8B8X8_UNORM:
return DRM_FORMAT_XBGR8888;
case PIPE_FORMAT_A8R8G8B8_UNORM:
return DRM_FORMAT_BGRA8888;
case PIPE_FORMAT_B10G10R10A2_UNORM:
return DRM_FORMAT_ARGB2101010;
case PIPE_FORMAT_R10G10B10A2_UNORM: