mesa: add driver callbacks for serialising ProgramBinary blobs
authorTimothy Arceri <tarceri@itsqueeze.com>
Tue, 28 Nov 2017 03:27:51 +0000 (14:27 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Fri, 8 Dec 2017 05:59:25 +0000 (16:59 +1100)
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/mesa/main/dd.h

index da03b2e8b94f5b879a5e21f77eecf554a7257118..4e4d2a6f37decc8f77c77f087747cbd28ce3b8fb 100644 (file)
@@ -1126,6 +1126,23 @@ struct dd_function_table {
                                 GLuint64 size,
                                 int fd);
    /*@}*/
+
+   /**
+    * \name GL_ARB_get_program_binary
+    */
+   /*@{*/
+   /**
+    * Calls to retrieve/store a binary serialized copy of the current program.
+    */
+   void (*GetProgramBinaryDriverSHA1)(struct gl_context *ctx, uint8_t *sha1);
+
+   void (*ProgramBinarySerializeDriverBlob)(struct gl_context *ctx,
+                                            struct gl_program *prog);
+
+   void (*ProgramBinaryDeserializeDriverBlob)(struct gl_context *ctx,
+                                              struct gl_shader_program *shProg,
+                                              struct gl_program *prog);
+   /*@}*/
 };