va: flush_resource before presentation

drivers require this to ensure presentation resources are present-able

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30984>
This commit is contained in:
Mike Blumenkrantz 2024-07-11 14:01:48 -04:00 committed by Marge Bot
parent b40ec57e36
commit 3d79e51726

View file

@ -540,6 +540,8 @@ vlVaPutSurface(VADriverContextP ctx, VASurfaceID surface_id, void* draw, short s
return status;
}
drv->pipe->flush_resource(drv->pipe, tex);
/* flush before calling flush_frontbuffer so that rendering is flushed
* to back buffer so the texture can be copied in flush_frontbuffer
*/