Mesa (master): mesa: add driver callbacks for serialising ProgramBinary blobs
Timothy Arceri
tarceri at kemper.freedesktop.org
Fri Dec 8 06:03:46 UTC 2017
Module: Mesa
Branch: master
Commit: 90d4abdd872b62943b33d62c9368fe7855b1c4fc
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=90d4abdd872b62943b33d62c9368fe7855b1c4fc
Author: Timothy Arceri <tarceri at itsqueeze.com>
Date: Tue Nov 28 14:27:51 2017 +1100
mesa: add driver callbacks for serialising ProgramBinary blobs
Reviewed-by: Jordan Justen <jordan.l.justen at intel.com>
---
src/mesa/main/dd.h | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/src/mesa/main/dd.h b/src/mesa/main/dd.h
index da03b2e8b9..4e4d2a6f37 100644
--- a/src/mesa/main/dd.h
+++ b/src/mesa/main/dd.h
@@ -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);
+ /*@}*/
};
More information about the mesa-commit
mailing list