From 017081a3e50d2907045fdd0a4811bb83a025ba07 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Thu, 14 Apr 2016 10:54:38 +1000 Subject: [PATCH] i965: make vs and fs key generation helpers available to shader cache Signed-off-by: Timothy Arceri Reviewed-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_vs.c | 2 +- src/mesa/drivers/dri/i965/brw_vs.h | 4 ++++ src/mesa/drivers/dri/i965/brw_wm.c | 2 +- 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 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 -- 2.30.2