i965: make vs and fs key generation helpers available to shader cache
authorCarl Worth <cworth@cworth.org>
Thu, 14 Apr 2016 00:54:38 +0000 (10:54 +1000)
committerTimothy Arceri <timothy.arceri@collabora.com>
Tue, 27 Sep 2016 01:11:15 +0000 (11:11 +1000)
Signed-off-by: Timothy Arceri <timothy.arceri@collabora.com>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
src/mesa/drivers/dri/i965/brw_vs.c
src/mesa/drivers/dri/i965/brw_vs.h
src/mesa/drivers/dri/i965/brw_wm.c
src/mesa/drivers/dri/i965/brw_wm.h

index ba7315e078fb5048ccf06911118a527a08007a47..86cdbe05ae4a71f85d933c3fdeaead4a6a1a9fbc 100644 (file)
@@ -303,7 +303,7 @@ brw_vs_state_dirty(const struct brw_context *brw)
                           BRW_NEW_VS_ATTRIB_WORKAROUNDS);
 }
 
-static void
+void
 brw_vs_populate_key(struct brw_context *brw,
                     struct brw_vs_prog_key *key)
 {
index b16e343ea453677cb2bd548ddfa7530f024f28ff..25241a92a4342e436bf6e02ce42576d6939af59f 100644 (file)
@@ -68,6 +68,10 @@ brw_codegen_vs_prog(struct brw_context *brw,
                     struct brw_vertex_program *vp,
                     struct brw_vs_prog_key *key);
 
+void
+brw_vs_populate_key(struct brw_context *brw,
+                    struct brw_vs_prog_key *key);
+
 #ifdef __cplusplus
 } /* extern "C" */
 
index 6ffe7c8b9cfce2629b5e2ed5bb2a7c25ff2b1720..64cfd986d8f6415c5c7a57266e3cd3925a94ad6f 100644 (file)
@@ -430,7 +430,7 @@ brw_wm_state_dirty(const struct brw_context *brw)
                           BRW_NEW_VUE_MAP_GEOM_OUT);
 }
 
-static void
+void
 brw_wm_populate_key(struct brw_context *brw, struct brw_wm_prog_key *key)
 {
    struct gl_context *ctx = &brw->ctx;
index 7130a61c4f5ad04bec43b09032f5399dc35f4474..8fa24b1ae4833d265dd91f9663b09ece8b1fd93b 100644 (file)
@@ -71,6 +71,10 @@ void brw_wm_debug_recompile(struct brw_context *brw,
 void
 brw_upload_wm_prog(struct brw_context *brw);
 
+void
+brw_wm_populate_key(struct brw_context *brw,
+                    struct brw_wm_prog_key *key);
+
 #ifdef __cplusplus
 } // extern "C"
 #endif