panfrost: Allocate tiler and scratchpad BOs per-batch
authorBoris Brezillon <boris.brezillon@collabora.com>
Sat, 14 Sep 2019 17:18:51 +0000 (19:18 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Wed, 18 Sep 2019 08:40:17 +0000 (10:40 +0200)
commit1e483a87bcaa96ca34edf82c424143f06576ce60
tree07ab88d3d9cc5e401aab5ef0978ff7f4ae43869f
parent0eec73a800fb87b691df21ba9482db1317c744d3
panfrost: Allocate tiler and scratchpad BOs per-batch

If we want to execute several batches in parallel they need to have
their own tiler and scratchpad BOs. Let move those objects to
panfrost_batch and allocate them on a per-batch basis.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/gallium/drivers/panfrost/pan_context.c
src/gallium/drivers/panfrost/pan_context.h
src/gallium/drivers/panfrost/pan_job.c
src/gallium/drivers/panfrost/pan_job.h