frontends/va/picture:Fix wrong reallocation even surface is protected
authorSureshGuttula <suresh.guttula@amd.corp-partner.google.com>
Mon, 17 May 2021 08:52:48 +0000 (14:22 +0530)
committerMarge Bot <eric+marge@anholt.net>
Fri, 21 May 2021 11:34:17 +0000 (11:34 +0000)
commit0236b8a5de9aaffc8bc442a583672453fbc24df4
tree97788b2381f555afa3f74d93244488e1cc37d2ce
parent1272c2e05246cad647324ffdccf56435b97dec1c
frontends/va/picture:Fix wrong reallocation even surface is protected

This patch will avoid reallocation,if surface is already protected.
Fixing the comparision logic of boolean value(true \ flase) with
PIPE_BIND_PROTECTED.

Fixes: 81be8b3c2f2 ("va/picture: make sure destination buffer is protected if needed")

Signed-off-by: SureshGuttula <suresh.guttula@amd.corp-partner.google.com>
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10916>
src/gallium/frontends/va/picture.c