panfrost: Add the panfrost_drm_{create,release}_bo() helpers
authorBoris Brezillon <boris.brezillon@collabora.com>
Tue, 2 Jul 2019 11:21:55 +0000 (13:21 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Tue, 2 Jul 2019 12:58:51 +0000 (14:58 +0200)
commitc684a796692cd12d806dabb640ed277c530ef6f2
tree08731bc35d16e824d4fb61536183d215500b94cc
parent948fddfc4294a7d5e93b2e1d76ad0058cd9e9889
panfrost: Add the panfrost_drm_{create,release}_bo() helpers

To avoid the panfrost_memory <-> panfrost_bo dance done in
panfrost_resource_create_bo() and panfrost_bo_unreference().

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