panfrost: Add the panfrost_batch_create_bo() helper
authorBoris Brezillon <boris.brezillon@collabora.com>
Sat, 14 Sep 2019 15:57:06 +0000 (17:57 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Wed, 18 Sep 2019 08:37:31 +0000 (10:37 +0200)
commit5a4d095f9b58e127c2eae9aa64595afeb36b554d
treec71a889f161ffe35a94b721c4c00ad2fc19d9ac6
parent9af4aeaaf7c88c80718caf10041e63545b202e2b
panfrost: Add the panfrost_batch_create_bo() helper

This helper automates the panfrost_bo_create()+panfrost_batch_add_bo()+
panfrost_bo_unreference() sequence that's done for all per-batch BOs.

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