panfrost: Only advertise INDIRECT_DRAW if the kernel supports HEAP BOs
authorBoris Brezillon <boris.brezillon@collabora.com>
Wed, 21 Apr 2021 16:04:34 +0000 (18:04 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Thu, 22 Apr 2021 19:28:52 +0000 (21:28 +0200)
commit5742493650e849259601fb5b3bd2367a8f39cc89
treef033c5f50953d6f0297d03355b32d14bf98d0f0a
parent35a28e038107410bb6a733c51cbd267aa79a4b20
panfrost: Only advertise INDIRECT_DRAW if the kernel supports HEAP BOs

The indirect draw implementation uses a HEAP pool to allocate varyings.
Don't advertise INDIRECT_DRAW if the kernel doesn't support allocating
HEAP BOs.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10375>
src/gallium/drivers/panfrost/pan_screen.c