lima: implement PLB PP stream cache

Graphics / Mesa 3D Graphics Library / Mesa - Vasily Khoruzhick [gmail.com] - 21 February 2020 07:20 UTC

Generating PLB PP stream is expensive. PLB PP stream content depends on damage, and if damage consists of several rects it's impossible to come up with a simple key.

Simplify damage to a single bounding box so we have a simple key and cache PLB PP stream. Cache size is limited to 0.1% of system RAM and once limit is reached least recently used entries are dropped.

8021daeb1fb lima: implement PLB PP stream cache
src/gallium/drivers/lima/lima_context.c | 25 ++++--
src/gallium/drivers/lima/lima_context.h | 16 ++--
src/gallium/drivers/lima/lima_job.c | 129 ++++++++++++++++++-------------
src/gallium/drivers/lima/lima_resource.c | 52 -------------
src/gallium/drivers/lima/lima_screen.c | 18 +++++
src/gallium/drivers/lima/lima_screen.h | 1 +
6 files changed, 121 insertions(+), 120 deletions(-)

Upstream: cgit.freedesktop.org


  • Share