st/shader_cache: add st_{de}serialise_nir_program() helpers
These will be used for NIR GL_ARB_get_program_binary support. Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
3ad52501dc
commit
928be4e97e
|
@ -408,3 +408,17 @@ st_deserialise_tgsi_program(struct gl_context *ctx,
|
|||
{
|
||||
st_deserialise_ir_program(ctx, shProg, prog, false);
|
||||
}
|
||||
|
||||
void
|
||||
st_serialise_nir_program(struct gl_context *ctx, struct gl_program *prog)
|
||||
{
|
||||
st_serialise_ir_program(ctx, prog, true);
|
||||
}
|
||||
|
||||
void
|
||||
st_deserialise_nir_program(struct gl_context *ctx,
|
||||
struct gl_shader_program *shProg,
|
||||
struct gl_program *prog)
|
||||
{
|
||||
st_deserialise_ir_program(ctx, shProg, prog, true);
|
||||
}
|
||||
|
|
|
@ -43,6 +43,14 @@ st_deserialise_tgsi_program(struct gl_context *ctx,
|
|||
struct gl_shader_program *shProg,
|
||||
struct gl_program *prog);
|
||||
|
||||
void
|
||||
st_serialise_nir_program(struct gl_context *ctx, struct gl_program *prog);
|
||||
|
||||
void
|
||||
st_deserialise_nir_program(struct gl_context *ctx,
|
||||
struct gl_shader_program *shProg,
|
||||
struct gl_program *prog);
|
||||
|
||||
bool
|
||||
st_load_ir_from_disk_cache(struct gl_context *ctx,
|
||||
struct gl_shader_program *prog,
|
||||
|
|
Loading…
Reference in New Issue