OSDN Git Service

panfrost: Stop using panfrost_bo_release() outside of pan_bo.c
authorBoris Brezillon <boris.brezillon@collabora.com>
Sat, 14 Sep 2019 09:23:51 +0000 (11:23 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Wed, 18 Sep 2019 08:35:06 +0000 (10:35 +0200)
commitcb71ae5572a16a974e3f60ad66fcae329c85961a
treee24f247deaf5eb1ce376cfd09cd5171cc2b93ee2
parente15ab939fdce7b6205090315bf45564c995a933a
panfrost: Stop using panfrost_bo_release() outside of pan_bo.c

panfrost_bo_unreference() should be used instead.

The only difference caused by this change is that the scratchpad,
tiler_heap and tiler_dummy BOs are now returned to the cache instead
of being freed when a context is destroyed. This is only a problem if
we care about context isolation, which apparently is not the case since
transient BOs are already returned to the per-FD cache (and all contexts
share the same address space anyway, so enforcing context isolation
is almost impossible).

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