frontend/dri: fix bool/int comparison
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Tue, 1 Jun 2021 12:02:46 +0000 (14:02 +0200)
committerMarge Bot <eric+marge@anholt.net>
Thu, 3 Jun 2021 08:33:52 +0000 (08:33 +0000)
commitfcdfe91efa387dbcc01d5f18a4c711aaf5eb8d78
treea28111419e032a4dcd60f9a6d4129ad4aa20dfe6
parent5e6f92f82cb383ee106c5b446c6f0a70b5a32145
frontend/dri: fix bool/int comparison

Cast tex->bind & PIPE_BIND_PROTECTED to a bool before doing the
comparison, otherwise it'll incorrectly fail.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Fixes: 18b7cafc700 ("driconf: add disable_protected_content_check option")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11107>
src/gallium/frontends/dri/dri2.c