OSDN Git Service

i965: make gs key generation helper available to shader cache
authorTimothy Arceri <timothy.arceri@collabora.com>
Fri, 17 Jun 2016 12:02:43 +0000 (22:02 +1000)
committerTimothy Arceri <timothy.arceri@collabora.com>
Tue, 27 Sep 2016 01:11:15 +0000 (11:11 +1000)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_gs.c
src/mesa/drivers/dri/i965/brw_gs.h

index 741216c..9c37d96 100644 (file)
@@ -206,7 +206,7 @@ brw_gs_state_dirty(const struct brw_context *brw)
                           BRW_NEW_TRANSFORM_FEEDBACK);
 }
 
-static void
+void
 brw_gs_populate_key(struct brw_context *brw,
                     struct brw_gs_prog_key *key)
 {
index 13d6be8..7ccd22e 100644 (file)
@@ -37,6 +37,10 @@ struct gl_shader_program;
 void
 brw_upload_gs_prog(struct brw_context *brw);
 
+void
+brw_gs_populate_key(struct brw_context *brw,
+                    struct brw_gs_prog_key *key);
+
 bool
 brw_codegen_gs_prog(struct brw_context *brw,
                     struct gl_shader_program *prog,