[Mesa-dev] [RFC 18/20] mesa/program: add disk cache functionality

Matt Turner mattst88 at gmail.com
Wed Jun 4 17:10:04 PDT 2014


On Mon, Jun 2, 2014 at 5:05 AM, Tapani Pälli <tapani.palli at intel.com> wrote:
> Patch adds functions to cache linked shader programs to disk. Cache
> key is generated from shader sources of the program. Cache path is
> generated on initialization if does not exist yet.
>
> Signed-off-by: Tapani Pälli <tapani.palli at intel.com>
> ---
>  src/mesa/Makefile.sources         |   1 +
>  src/mesa/program/prog_diskcache.c | 223 ++++++++++++++++++++++++++++++++++++++
>  src/mesa/program/prog_diskcache.h |  40 +++++++
>  3 files changed, 264 insertions(+)
>  create mode 100644 src/mesa/program/prog_diskcache.c
>  create mode 100644 src/mesa/program/prog_diskcache.h
>
> diff --git a/src/mesa/Makefile.sources b/src/mesa/Makefile.sources
> index f4904fb..7c2543c 100644
> --- a/src/mesa/Makefile.sources
> +++ b/src/mesa/Makefile.sources
> @@ -264,6 +264,7 @@ PROGRAM_FILES = \
>         $(SRCDIR)program/ir_to_mesa.cpp \
>         $(SRCDIR)program/program.c \
>         $(SRCDIR)program/program_parse_extra.c \
> +       $(SRCDIR)program/prog_diskcache.c \

Alphabetize.

>         $(SRCDIR)program/prog_cache.c \
>         $(SRCDIR)program/prog_execute.c \
>         $(SRCDIR)program/prog_instruction.c \


More information about the mesa-dev mailing list