mesa: Add disk shader cache driver blob callback
[mesa.git] / src / mesa / main / dd.h
index 1b048d3ff8e8b19afa2f230b9934925de8bf3822..7081d5867000523be5c1cd82763da872ae9ae2fe 100644 (file)
@@ -1282,6 +1282,21 @@ struct dd_function_table {
                                 struct gl_semaphore_object *semObj,
                                 int fd);
    /*@}*/
+
+   /**
+    * \name Disk shader cache functions
+    */
+   /*@{*/
+   /**
+    * Called to initialize gl_program::driver_cache_blob (and size) with a
+    * ralloc allocated buffer.
+    *
+    * This buffer will be saved and restored as part of the gl_program
+    * serialization and deserialization.
+    */
+   void (*ShaderCacheSerializeDriverBlob)(struct gl_context *ctx,
+                                          struct gl_program *prog);
+   /*@}*/
 };