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 741216c5b12ef7feecf689d6e1144edc4c3d6a86..9c37d967572e3a51e697132371c9c39ba47b81d7 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 13d6be8029b9ee1d178ff45a68698413b2a090cf..7ccd22e5112109e000363213d44735e999a2be7e 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,