mesa: make use of ralloc when creating ARB asm gl_program fields
authorTimothy Arceri <timothy.arceri@collabora.com>
Sat, 5 Nov 2016 11:35:41 +0000 (22:35 +1100)
committerTimothy Arceri <timothy.arceri@collabora.com>
Thu, 17 Nov 2016 01:52:24 +0000 (12:52 +1100)
commit0ad69e6b51b06c483db37c3b7eeb1da1a95d0629
treef45eba45b62e2f5b933349463b368c040fec88a6
parent9c9589f1e22568a16194e04bb5be6333ac202393
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 <emil.velikov@collabora.com>
14 files changed:
src/mesa/main/arbprogram.c
src/mesa/main/ffvertex_prog.c
src/mesa/program/arbprogparse.c
src/mesa/program/ir_to_mesa.cpp
src/mesa/program/prog_instruction.c
src/mesa/program/prog_instruction.h
src/mesa/program/prog_optimize.c
src/mesa/program/prog_optimize.h
src/mesa/program/prog_statevars.c
src/mesa/program/program.c
src/mesa/program/program.h
src/mesa/program/program_parse.y
src/mesa/program/program_parser.h
src/mesa/program/programopt.c