panfrost: Handle the bo == NULL case in panfrost_bo_[un]reference()
authorBoris Brezillon <boris.brezillon@collabora.com>
Fri, 2 Aug 2019 17:18:47 +0000 (19:18 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Fri, 2 Aug 2019 19:54:58 +0000 (21:54 +0200)
commited501c00cb6c723b13e10f10b02f9c675fc23d98
tree81745ad5d293773c41457c8109a67e986f45cf2e
parent12f72175f3e9f41cb4cbca5fe17e6339555f9ead
panfrost: Handle the bo == NULL case in panfrost_bo_[un]reference()

Allows us to pass BOs without checking if they're NULL or not.

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