diff options
author | Timothy Arceri <[email protected]> | 2016-11-05 22:35:41 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2016-11-17 12:52:24 +1100 |
commit | 0ad69e6b51b06c483db37c3b7eeb1da1a95d0629 (patch) | |
tree | f45eba45b62e2f5b933349463b368c040fec88a6 /src/mesa/program/program.h | |
parent | 9c9589f1e22568a16194e04bb5be6333ac202393 (diff) |
mesa: make use of ralloc when creating ARB asm gl_program fields
This will allow us to move the ARB asm fields in gl_program into
a union as we will be able call ralloc_free() on the entire struct
when destroying the context.
In this change we switch over to using ralloc for the Instructions,
String and LocalParams fields of gl_program.
Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/mesa/program/program.h')
-rw-r--r-- | src/mesa/program/program.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/program/program.h b/src/mesa/program/program.h index 6460948044f..18122f75b74 100644 --- a/src/mesa/program/program.h +++ b/src/mesa/program/program.h @@ -93,7 +93,8 @@ extern GLboolean _mesa_insert_instructions(struct gl_program *prog, GLuint start, GLuint count); extern GLboolean -_mesa_delete_instructions(struct gl_program *prog, GLuint start, GLuint count); +_mesa_delete_instructions(struct gl_program *prog, GLuint start, GLuint count, + void *mem_ctx); extern void _mesa_find_used_registers(const struct gl_program *prog, |