panfrost: Use a macro for checking for a shared bind type
authorIcecream95 <ixn@disroot.org>
Fri, 10 Jun 2022 10:51:07 +0000 (22:51 +1200)
committerMarge Bot <emma+marge@anholt.net>
Fri, 17 Jun 2022 18:13:46 +0000 (18:13 +0000)
commitb538519bbcfdfadab443c045a09a130e07e17602
tree53571d1c5d670cb8d8e122eb5d0ce78a9a0749e9
parentcd04679a08c7c276a7cadad5ddb5ced540d95300
panfrost: Use a macro for checking for a shared bind type

PAN_BIND_SHARED_MASK is all binding flags that mean that a resource
might be shared and accessible by other contexts.

Don't replace the usage of this pattern in panfrost_should_afbc and
panfrost_should_tile in case a new binding is introduced that not all
layouts can support.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16966>
src/gallium/drivers/panfrost/pan_job.c
src/gallium/drivers/panfrost/pan_resource.c
src/gallium/drivers/panfrost/pan_resource.h