st/mesa: Use ShaderCacheSerializeDriverBlob driver function
authorJordan Justen <jordan.l.justen@intel.com>
Thu, 19 Apr 2018 23:20:53 +0000 (16:20 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Tue, 10 Jul 2018 06:02:32 +0000 (23:02 -0700)
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/mesa/state_tracker/st_context.c

index 6c1be76afc6dbf0dc27ec3cd3d9480706974c2f8..488202bbc59fd7f74447a7389a876a38e620e5c0 100644 (file)
@@ -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;