mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 02:10:11 +01:00
va/picture: make sure destination buffer is protected if needed
Reviewed-by: Boyuan Zhang <boyuan.zhang@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7006>
This commit is contained in:
parent
70191f38e3
commit
81be8b3c2f
1 changed files with 9 additions and 0 deletions
|
|
@ -702,6 +702,15 @@ vlVaEndPicture(VADriverContextP ctx, VAContextID context_id)
|
|||
}
|
||||
}
|
||||
|
||||
if ((surf->templat.bind & PIPE_BIND_PROTECTED) != context->desc.base.protected_playback) {
|
||||
if (context->desc.base.protected_playback) {
|
||||
surf->templat.bind |= PIPE_BIND_PROTECTED;
|
||||
}
|
||||
else
|
||||
surf->templat.bind &= ~PIPE_BIND_PROTECTED;
|
||||
realloc = true;
|
||||
}
|
||||
|
||||
if (realloc) {
|
||||
struct pipe_video_buffer *old_buf = surf->buffer;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue