panfrost: Allocate dedicated slab for linear BOs
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Fri, 8 Mar 2019 23:36:02 +0000 (23:36 +0000)
committerAlyssa Rosenzweig <alyssa@rosenzweig.io>
Tue, 12 Mar 2019 02:37:41 +0000 (02:37 +0000)
commit9f25a4e65c025364df0b52cbb3e9aa2e525b1a74
treec63d14b06ecfee1883c817cd8bb32dc73ca3fe07
parentf9dc1ebc0d5cc475b8729f2dc4f6dac8c83e52a1
panfrost: Allocate dedicated slab for linear BOs

Previously, linear BOs shared memory with each other to minimize kernel
round-trips / latency, as well as to work around a bug in the free_slab
function. These concerns are invalid now, but continuing to use the slab
allocator for BOs resulted in memory allocation errors. This issue was
aggravated, though not introduced (so not a real regression) in the
previous commit.

v2 (unreviewed): Fix bug in v1 preventing munmaps from working

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