panfrost: Mark buffers as PANFROST_BO_HEAP
authorTomeu Vizoso <tomeu.vizoso@collabora.com>
Wed, 31 Jul 2019 14:29:25 +0000 (16:29 +0200)
committerTomeu Vizoso <tomeu.vizoso@collabora.com>
Thu, 8 Aug 2019 05:42:52 +0000 (07:42 +0200)
commit7c8434889d8d08ae3c5d2287d1d6c5e03159e9f9
treea3a946ed1b21fa1a8ed6fb0af3aa2c0a6736af8a
parent19afd41e6546fb6ca852b62fc5a63359f3b70693
panfrost: Mark buffers as PANFROST_BO_HEAP

What we call GROWABLE in Mesa corresponds to the HEAP BO flag in the
kernel. These buffers cannot be memory mapped in the CPU side at the
moment, so make sure they are also marked INVISIBLE.

This allows us to allocate a big heap upfront (16MB) without actually
reserving space unless it's needed.

Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/gallium/drivers/panfrost/pan_drm.c