frontends/va: Don't try to switch to protected buffer in EndPicture

It doesn't work because the buffer was already allocated in BeginPicture.

Reviewed-by: David (Ming Qiang) Wu <David.Wu3@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33136>
This commit is contained in:
David Rosca 2025-01-21 10:30:02 +01:00 committed by Marge Bot
parent fdf747af3a
commit f83faf83e7

View file

@ -1170,8 +1170,6 @@ vlVaEndPicture(VADriverContextP ctx, VAContextID context_id)
apply_av1_fg = vlVaQueryApplyFilmGrainAV1(context, &output_id, &out_target);
surf = handle_table_get(drv->htab, output_id);
if (surf && !surf->buffer && context->desc.base.protected_playback)
surf->templat.bind |= PIPE_BIND_PROTECTED;
vlVaGetSurfaceBuffer(drv, surf);
if (!surf || !surf->buffer) {
mtx_unlock(&drv->mutex);