st/mesa/r200/i915/i965: move ARB program fields into a union
authorTimothy Arceri <timothy.arceri@collabora.com>
Wed, 16 Nov 2016 23:52:28 +0000 (10:52 +1100)
committerTimothy Arceri <timothy.arceri@collabora.com>
Thu, 17 Nov 2016 01:53:12 +0000 (12:53 +1100)
commitc3df65c123c6392b0b116900395a89fd3dbb9b85
tree2b7c4a89aff0ccbbfb7f9fec4e0b0459858b58bb
parentd6bdb3a86293da2164e9355f0262ef83afeece7f
st/mesa/r200/i915/i965: move ARB program fields into a union

It's common for games to compile 2000 programs or more so at

32bits x 2000 programs x 22 fields x 2 (at least) stages

This should give us something like 352 kilobytes in savings
once we add some more glsl only fields.

Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
25 files changed:
src/mesa/drivers/dri/i915/i915_fragprog.c
src/mesa/drivers/dri/i915/i915_program.c
src/mesa/drivers/dri/i965/brw_program.c
src/mesa/drivers/dri/r200/r200_state_init.c
src/mesa/drivers/dri/r200/r200_vertprog.c
src/mesa/main/arbprogram.c
src/mesa/main/ffvertex_prog.c
src/mesa/main/mtypes.h
src/mesa/main/state.c
src/mesa/program/arbprogparse.c
src/mesa/program/ir_to_mesa.cpp
src/mesa/program/prog_execute.c
src/mesa/program/prog_opt_constant_fold.c
src/mesa/program/prog_optimize.c
src/mesa/program/prog_print.c
src/mesa/program/prog_statevars.c
src/mesa/program/prog_to_nir.c
src/mesa/program/program.c
src/mesa/program/program_parse.y
src/mesa/program/programopt.c
src/mesa/state_tracker/st_atifs_to_tgsi.c
src/mesa/state_tracker/st_mesa_to_tgsi.c
src/mesa/state_tracker/st_program.c
src/mesa/swrast/s_fragprog.c
src/mesa/tnl/t_vb_program.c