summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorJordan Justen <[email protected]>2018-04-08 17:56:34 -0700
committerJordan Justen <[email protected]>2018-07-09 23:02:28 -0700
commit2a55553be3336d5bc969a7569cccbfab85671153 (patch)
tree65f4f61fada64f2a3dc0927b01ce115e25c29561 /src/mesa
parent213491600a09aae15efa128fd6d4c46950fa4b4a (diff)
mesa: Add disk shader cache driver blob callback
Signed-off-by: Jordan Justen <[email protected]> Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/dd.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/mesa/main/dd.h b/src/mesa/main/dd.h
index 1b048d3ff8e..7081d586700 100644
--- a/src/mesa/main/dd.h
+++ b/src/mesa/main/dd.h
@@ -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);
+ /*@}*/
};