From 450f00e39d40df2d1e82dae9de4c1679b26e0f9d Mon Sep 17 00:00:00 2001 From: Jordan Justen Date: Thu, 19 Apr 2018 16:20:53 -0700 Subject: st/mesa: Use ShaderCacheSerializeDriverBlob driver function Signed-off-by: Jordan Justen Reviewed-by: Timothy Arceri --- src/mesa/state_tracker/st_context.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/mesa') 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; -- cgit v1.2.3