mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
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:
parent
fdf747af3a
commit
f83faf83e7
1 changed files with 0 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue