aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_shader_cache.h
diff options
context:
space:
mode:
authorJordan Justen <[email protected]>2018-02-28 18:29:54 -0800
committerJordan Justen <[email protected]>2018-07-09 23:02:33 -0700
commit48ce7745dcfec33205d6e45906684c112cc24103 (patch)
tree1ecd540d68515c64abc3bba406a6cba10c0162e5 /src/mesa/state_tracker/st_shader_cache.h
parent36dd15f8b337e6a864d736ba502b8aa3d0ae6e4f (diff)
mesa: Add gl_shader_program param to ProgramBinarySerializeDriverBlob
This might be required because some stages might generate different programs depending on the other stages in the program. For example, the i965 driver's tessellation control stage depends on the tessellation evaluation shader. Signed-off-by: Jordan Justen <[email protected]> Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_shader_cache.h')
-rw-r--r--src/mesa/state_tracker/st_shader_cache.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_shader_cache.h b/src/mesa/state_tracker/st_shader_cache.h
index 132dac00c01..5b0bff7b2f8 100644
--- a/src/mesa/state_tracker/st_shader_cache.h
+++ b/src/mesa/state_tracker/st_shader_cache.h
@@ -39,6 +39,11 @@ void
st_serialise_tgsi_program(struct gl_context *ctx, struct gl_program *prog);
void
+st_serialise_tgsi_program_binary(struct gl_context *ctx,
+ struct gl_shader_program *shProg,
+ struct gl_program *prog);
+
+void
st_deserialise_tgsi_program(struct gl_context *ctx,
struct gl_shader_program *shProg,
struct gl_program *prog);
@@ -47,6 +52,11 @@ void
st_serialise_nir_program(struct gl_context *ctx, struct gl_program *prog);
void
+st_serialise_nir_program_binary(struct gl_context *ctx,
+ struct gl_shader_program *shProg,
+ struct gl_program *prog);
+
+void
st_deserialise_nir_program(struct gl_context *ctx,
struct gl_shader_program *shProg,
struct gl_program *prog);