panfrost: Implement panfrost_query_dmabuf_modifiers
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Wed, 22 Jul 2020 16:11:39 +0000 (12:11 -0400)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Wed, 12 Aug 2020 13:59:21 +0000 (09:59 -0400)
commit2a1217513e1c5d881718c2a7f2afb951e1fe6305
tree7137e30f45ad51b1c9118c15235221ad9a6b3db9
parent24c921b1b5cc427c7ab1abd76c443db4a008d1b9
panfrost: Implement panfrost_query_dmabuf_modifiers

v2: Only advertise AFBC if PAN_MESA_DEBUG=afbc is set. This is to avoid
sharing AFBC buffers as SCANOUT until corresponding kernel bugfixes are
landed. Technically a kernel issue but let's prevent a regression.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tested-by: Icecream95 <ixn@keemail.me> [v1]
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6159>
src/gallium/drivers/panfrost/pan_screen.c