r500: Major refactoring of fragment program emit
authorNicolai Haehnle <nhaehnle@gmail.com>
Sat, 5 Jul 2008 14:07:37 +0000 (16:07 +0200)
committerNicolai Haehnle <nhaehnle@gmail.com>
Sat, 5 Jul 2008 16:04:10 +0000 (18:04 +0200)
commit364d45a3e1629f32c6ab5407f92618a16c9d45e0
tree06e2c11a07332cffe72bab329c94369002288953
parentdea8719f00ad46ed66b5d4f5e6c0b71e2d1054e9
r500: Major refactoring of fragment program emit

Use the common facilities to convert non-native instructions into native ones.
Worked hard to make the code easier to read (hopefully), by using helper
functions instead of direct manipulation of the machine code.
Fixes two bugs related to FLR and XPD.
src/mesa/drivers/dri/r300/r300_reg.h
src/mesa/drivers/dri/r300/r500_fragprog.c
src/mesa/drivers/dri/r300/r500_fragprog_emit.c