frontends/va: Don't flush before resource_get_handle

resource_get_handle will flush if needed.

Reviewed-by: Ruijing Dong <ruijing.dong@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33165>
This commit is contained in:
David Rosca 2025-01-02 17:05:12 +01:00 committed by Marge Bot
parent 54dbef9377
commit faa5512464

View file

@ -455,7 +455,6 @@ vlVaAcquireBufferHandle(VADriverContextP ctx, VABufferID buf_id,
struct winsys_handle whandle;
mtx_lock(&drv->mutex);
drv->pipe->flush(drv->pipe, NULL, 0);
memset(&whandle, 0, sizeof(whandle));
whandle.type = WINSYS_HANDLE_TYPE_FD;