frontends/va/postproc: do not use efc if image is to be translated

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/10658

Signed-off-by: Thong Thai <thong.thai@amd.com>
Tested-by: Andrej Benz <hello@benz.dev>
Reviewed-by: Boyuan Zhang <Boyuan.Zhang@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27802>
This commit is contained in:
Thong Thai
2024-02-22 18:09:08 +00:00
committed by Marge Bot
parent b8c3d18fba
commit 0586a3fb22
+2
View File
@@ -584,6 +584,8 @@ vlVaHandleVAProcPipelineParameterBufferType(vlVaDriver *drv, vlVaContext *contex
if (!param->num_filters &&
src_region->width == dst_region->width &&
src_region->height == dst_region->height &&
src_region->x == dst_region->x &&
src_region->y == dst_region->y &&
can_convert_with_efc(src_surface, dst_surface) &&
pscreen->get_video_param(pscreen,
PIPE_VIDEO_PROFILE_UNKNOWN,