summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJordan Justen <[email protected]>2018-04-19 16:20:53 -0700
committerJordan Justen <[email protected]>2018-07-09 23:02:32 -0700
commit450f00e39d40df2d1e82dae9de4c1679b26e0f9d (patch)
treec295dc994eca4931a40033311d904cb4879eaedf /src
parentc510dd22a907cf1f2d4ab5d7378a0f82558823d0 (diff)
st/mesa: Use ShaderCacheSerializeDriverBlob driver function
Signed-off-by: Jordan Justen <[email protected]> Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/state_tracker/st_context.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_context.c b/src/mesa/state_tracker/st_context.c
index 6c1be76afc6..488202bbc59 100644
--- a/src/mesa/state_tracker/st_context.c
+++ b/src/mesa/state_tracker/st_context.c
@@ -759,10 +759,12 @@ st_init_driver_functions(struct pipe_screen *screen,
screen->get_shader_param(screen, PIPE_SHADER_VERTEX,
PIPE_SHADER_CAP_PREFERRED_IR);
if (preferred_ir == PIPE_SHADER_IR_NIR) {
+ functions->ShaderCacheSerializeDriverBlob = st_serialise_nir_program;
functions->ProgramBinarySerializeDriverBlob = st_serialise_nir_program;
functions->ProgramBinaryDeserializeDriverBlob =
st_deserialise_nir_program;
} else {
+ functions->ShaderCacheSerializeDriverBlob = st_serialise_tgsi_program;
functions->ProgramBinarySerializeDriverBlob = st_serialise_tgsi_program;
functions->ProgramBinaryDeserializeDriverBlob =
st_deserialise_tgsi_program;