From e1cb12bfff7f65c3599c9b68b9269f73942b1602 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Fri, 5 Nov 2010 07:25:18 -0700 Subject: prog_cache: Add some support for shader_programs in prog_cache. This is used in the upcoming fixed function shader_program generation, and shader_program and ARB programs are together in this code until both fragment and vertex ff get converted. --- src/mesa/program/prog_cache.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/mesa/program/prog_cache.h') diff --git a/src/mesa/program/prog_cache.h b/src/mesa/program/prog_cache.h index 0167334827..5d46bfc5cc 100644 --- a/src/mesa/program/prog_cache.h +++ b/src/mesa/program/prog_cache.h @@ -44,6 +44,9 @@ _mesa_new_program_cache(void); extern void _mesa_delete_program_cache(struct gl_context *ctx, struct gl_program_cache *pc); +extern void +_mesa_delete_shader_cache(struct gl_context *ctx, + struct gl_program_cache *cache); extern struct gl_program * _mesa_search_program_cache(struct gl_program_cache *cache, @@ -55,5 +58,11 @@ _mesa_program_cache_insert(struct gl_context *ctx, const void *key, GLuint keysize, struct gl_program *program); +void +_mesa_shader_cache_insert(struct gl_context *ctx, + struct gl_program_cache *cache, + const void *key, GLuint keysize, + struct gl_shader_program *program); + #endif /* PROG_CACHE_H */ -- cgit v1.2.3