r300/compiler: Refactor the pair instruction data structures
authorTom Stellard <tstellar@gmail.com>
Thu, 16 Sep 2010 17:31:19 +0000 (10:31 -0700)
committerTom Stellard <tstellar@gmail.com>
Tue, 21 Sep 2010 01:48:47 +0000 (18:48 -0700)
commit610aed81dbaee73bc2a1fb9a030d7ec0e49e73cb
treea9442699ad224a509109976faf321ceadf5d556a
parent84997cd5663a2f528c1c8b2c1f7329d546c087be
r300/compiler: Refactor the pair instruction data structures

Use rc_pair_ prefix for all pair instruction structs

Create a named struct for pair instruction args

Replace structs radeon_pair_instruction_{rgb,alpha} with struct
radeon_pair_sub_instruction.  These two structs were nearly identical
and were creating a lot of cut and paste code.  These changes are the
first step towards removing some of that code.
src/mesa/drivers/dri/r300/compiler/r300_fragprog_emit.c
src/mesa/drivers/dri/r300/compiler/r500_fragprog_emit.c
src/mesa/drivers/dri/r300/compiler/radeon_pair_schedule.c
src/mesa/drivers/dri/r300/compiler/radeon_program_pair.h