diff options
-rw-r--r-- | src/mesa/state_tracker/st_context.c | 2 |
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; |