summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2016-06-17 22:02:43 +1000
committerTimothy Arceri <[email protected]>2016-09-27 11:11:15 +1000
commitec75570415a23f9b456b1fedf7b0c287b3e3c5c5 (patch)
tree5e9eedc9cd9cce7bd2e52391ccb186437f9af492 /src
parent481d8ec2914ae0b1a53657c165a63a9fe24d5f27 (diff)
i965: make gs key generation helper available to shader cache
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i965/brw_gs.c2
-rw-r--r--src/mesa/drivers/dri/i965/brw_gs.h4
2 files changed, 5 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_gs.c b/src/mesa/drivers/dri/i965/brw_gs.c
index 741216c5b12..9c37d967572 100644
--- a/src/mesa/drivers/dri/i965/brw_gs.c
+++ b/src/mesa/drivers/dri/i965/brw_gs.c
@@ -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)
{
diff --git a/src/mesa/drivers/dri/i965/brw_gs.h b/src/mesa/drivers/dri/i965/brw_gs.h
index 13d6be8029b..7ccd22e5112 100644
--- a/src/mesa/drivers/dri/i965/brw_gs.h
+++ b/src/mesa/drivers/dri/i965/brw_gs.h
@@ -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,