panfrost: Pass referenced BOs to the SUBMIT ioctls
authorBoris Brezillon <boris.brezillon@collabora.com>
Tue, 2 Jul 2019 12:26:02 +0000 (14:26 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Tue, 2 Jul 2019 13:00:21 +0000 (15:00 +0200)
commit5375d009be1811e22f654ea82a04164a5752022c
treed0be6856f89791aaf31e408ad9d4a89627816cf3
parent3557746e0d2c16d7907b74e36bac30aa1c33cc7f
panfrost: Pass referenced BOs to the SUBMIT ioctls

Instead of manually adding the BOs from the various SLAB pools plus
the one backing the color FB, we insert them in the BO set attached
to the job and let panfrost_drm_submit_job() pass all BOs from this set
to the SUBMIT ioctl.
This means we are now passing all referenced BOs and let the scheduler
wait on referenced BO fences if needed.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
src/gallium/drivers/panfrost/pan_drm.c