diff options
author | Carl Worth <cworth@cworth.org> | 2016-04-14 10:54:38 +1000 |
---|---|---|
committer | Timothy Arceri <timothy.arceri@collabora.com> | 2016-09-27 11:11:15 +1000 |
commit | 017081a3e50d2907045fdd0a4811bb83a025ba07 (patch) | |
tree | 7ca1fefbac40c45111d483de76ea9348cbc0db02 /src/mesa/drivers/dri | |
parent | f61669f9976750c4ecc751d54a4937a3ff179270 (diff) | |
download | external_mesa3d-017081a3e50d2907045fdd0a4811bb83a025ba07.zip external_mesa3d-017081a3e50d2907045fdd0a4811bb83a025ba07.tar.gz external_mesa3d-017081a3e50d2907045fdd0a4811bb83a025ba07.tar.bz2 |
i965: make vs and fs key generation helpers available to shader cache
Signed-off-by: Timothy Arceri <timothy.arceri@collabora.com>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_vs.c | 2 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_vs.h | 4 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_wm.c | 2 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_wm.h | 4 |
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 ba7315e..86cdbe0 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 b16e343..25241a9 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 6ffe7c8..64cfd98 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 7130a61..8fa24b1 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 |