summaryrefslogtreecommitdiffstats
path: root/src/mesa/program/prog_cache.h
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2010-11-05 07:25:18 -0700
committerEric Anholt <[email protected]>2011-03-11 12:55:13 -0800
commite1cb12bfff7f65c3599c9b68b9269f73942b1602 (patch)
tree77b75dd06fa028891c2b37ca7b1cf20f65eccbac /src/mesa/program/prog_cache.h
parent9c7231c1d9cda244444dbfa05f15ead1bf581dc3 (diff)
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.
Diffstat (limited to 'src/mesa/program/prog_cache.h')
-rw-r--r--src/mesa/program/prog_cache.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mesa/program/prog_cache.h b/src/mesa/program/prog_cache.h
index 01673348279..5d46bfc5cc9 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 */