mesa: add driver callbacks for serialising ProgramBinary blobs

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
This commit is contained in:
Timothy Arceri 2017-11-28 14:27:51 +11:00
parent 64ad804e59
commit 90d4abdd87
1 changed files with 17 additions and 0 deletions

View 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);
/*@}*/
};