panfrost: Add panfrost_bo_{alloc,free}()
authorBoris Brezillon <boris.brezillon@collabora.com>
Sat, 14 Sep 2019 09:42:38 +0000 (11:42 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Wed, 18 Sep 2019 08:35:29 +0000 (10:35 +0200)
commit90b8934547aa53779a5e6040ef6cce3bbfb4953c
treecf6cae9a4703072bffcb86bc473284d4480c6b9d
parentcb71ae5572a16a974e3f60ad66fcae329c85961a
panfrost: Add panfrost_bo_{alloc,free}()

Thanks to that we avoid the recursive call into panfrost_bo_create()
and we can get rid of panfrost_bo_release() by inlining the code in
panfrost_bo_unreference().

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