lima: implement shader disk cache
authorVasily Khoruzhick <anarsoul@gmail.com>
Wed, 17 Mar 2021 06:54:42 +0000 (23:54 -0700)
committerMarge Bot <eric+marge@anholt.net>
Thu, 25 Mar 2021 06:31:41 +0000 (06:31 +0000)
commitbf09ba538595a28c26166c99b86852d2ce13fcff
treec6d0a8a5cd5a3eb4867dbc92308b85806beb2a83
parent3099ce7d022cc251343d74663bb1f648bec45552
lima: implement shader disk cache

Wire up disk cache routines and change fs and vs keys to use nir_sha1
instead of pointer to uncompiled shader to be able to reuse them for
disk cache.

Tested-by: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
Reviewed-by: Erico Nunes <nunes.erico@gmail.com>
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9672>
14 files changed:
src/gallium/drivers/lima/Android.mk
src/gallium/drivers/lima/ir/gp/codegen.c
src/gallium/drivers/lima/ir/gp/lower.c
src/gallium/drivers/lima/ir/gp/nir.c
src/gallium/drivers/lima/ir/pp/codegen.c
src/gallium/drivers/lima/ir/pp/regalloc.c
src/gallium/drivers/lima/lima_context.h
src/gallium/drivers/lima/lima_disk_cache.c [new file with mode: 0644]
src/gallium/drivers/lima/lima_disk_cache.h [new file with mode: 0644]
src/gallium/drivers/lima/lima_draw.c
src/gallium/drivers/lima/lima_program.c
src/gallium/drivers/lima/lima_screen.c
src/gallium/drivers/lima/lima_screen.h
src/gallium/drivers/lima/meson.build