summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorCarl Worth <[email protected]>2016-04-14 10:54:38 +1000
committerTimothy Arceri <[email protected]>2016-09-27 11:11:15 +1000
commit017081a3e50d2907045fdd0a4811bb83a025ba07 (patch)
tree7ca1fefbac40c45111d483de76ea9348cbc0db02 /src/mesa
parentf61669f9976750c4ecc751d54a4937a3ff179270 (diff)
i965: make vs and fs key generation helpers available to shader cache
Signed-off-by: Timothy Arceri <[email protected]> Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/brw_vs.c2
-rw-r--r--src/mesa/drivers/dri/i965/brw_vs.h4
-rw-r--r--src/mesa/drivers/dri/i965/brw_wm.c2
-rw-r--r--src/mesa/drivers/dri/i965/brw_wm.h4
4 files changed, 10 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vs.c b/src/mesa/drivers/dri/i965/brw_vs.c
index ba7315e078f..86cdbe05ae4 100644
--- a/src/mesa/drivers/dri/i965/brw_vs.c
+++ b/src/mesa/drivers/dri/i965/brw_vs.c
@@ -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)
{
diff --git a/src/mesa/drivers/dri/i965/brw_vs.h b/src/mesa/drivers/dri/i965/brw_vs.h
index b16e343ea45..25241a92a43 100644
--- a/src/mesa/drivers/dri/i965/brw_vs.h
+++ b/src/mesa/drivers/dri/i965/brw_vs.h
@@ -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" */
diff --git a/src/mesa/drivers/dri/i965/brw_wm.c b/src/mesa/drivers/dri/i965/brw_wm.c
index 6ffe7c8b9cf..64cfd986d8f 100644
--- a/src/mesa/drivers/dri/i965/brw_wm.c
+++ b/src/mesa/drivers/dri/i965/brw_wm.c
@@ -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;
diff --git a/src/mesa/drivers/dri/i965/brw_wm.h b/src/mesa/drivers/dri/i965/brw_wm.h
index 7130a61c4f5..8fa24b1ae48 100644
--- a/src/mesa/drivers/dri/i965/brw_wm.h
+++ b/src/mesa/drivers/dri/i965/brw_wm.h
@@ -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