From 0ad69e6b51b06c483db37c3b7eeb1da1a95d0629 Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Sat, 5 Nov 2016 22:35:41 +1100 Subject: 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 --- src/mesa/program/prog_instruction.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/mesa/program/prog_instruction.h') diff --git a/src/mesa/program/prog_instruction.h b/src/mesa/program/prog_instruction.h index 05a9a040d5a..328566a10f1 100644 --- a/src/mesa/program/prog_instruction.h +++ b/src/mesa/program/prog_instruction.h @@ -261,19 +261,15 @@ struct prog_instruction extern "C" { #endif +struct gl_program; + extern void _mesa_init_instructions(struct prog_instruction *inst, GLuint count); -extern struct prog_instruction * -_mesa_alloc_instructions(GLuint numInst); - extern struct prog_instruction * _mesa_copy_instructions(struct prog_instruction *dest, const struct prog_instruction *src, GLuint n); -extern void -_mesa_free_instructions(struct prog_instruction *inst, GLuint count); - extern GLuint _mesa_num_inst_src_regs(enum prog_opcode opcode); -- cgit v1.2.3