panfrost: Move BO cache related fields to a sub-struct
authorBoris Brezillon <boris.brezillon@collabora.com>
Thu, 7 Nov 2019 07:42:09 +0000 (08:42 +0100)
committerBoris Brezillon <boris.brezillon@collabora.com>
Fri, 8 Nov 2019 10:26:47 +0000 (11:26 +0100)
commit25059cc41ff17ae2b04e44fef2c1d4863bc104c2
treee09db6e9c97d4ac36eb8406be9f468a8c8e10e85
parent5f768eda43243aa9c51210cdaf968ab94f1996d4
panfrost: Move BO cache related fields to a sub-struct

We will soon introduce an LRU list to evict BOs that have been unused
for more than 1 second. Let's first move all BO cache fields to a
sub-struct to clarify which fields are used by the BO caching logic.

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_screen.c
src/gallium/drivers/panfrost/pan_screen.h