summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/r600/r700_fragprog.c
diff options
context:
space:
mode:
authorCooper Yuan <cooperyuan@gmail.com>2009-07-29 15:23:56 +0800
committerCooper Yuan <cooperyuan@gmail.com>2009-07-29 15:23:56 +0800
commit0f6d3aece7b193dcacbd94f87ac734ee3a44b366 (patch)
tree9d9e36a82b38433bf4a2914aa87284bb27d8a6f3 /src/mesa/drivers/dri/r600/r700_fragprog.c
parent693f900b163f89952ed9b4c30d093f8ead461657 (diff)
R6xx/r7xx: VS export fog color as parameter
Diffstat (limited to 'src/mesa/drivers/dri/r600/r700_fragprog.c')
-rw-r--r--src/mesa/drivers/dri/r600/r700_fragprog.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r600/r700_fragprog.c b/src/mesa/drivers/dri/r600/r700_fragprog.c
index 88e66491ba..a473dfe888 100644
--- a/src/mesa/drivers/dri/r600/r700_fragprog.c
+++ b/src/mesa/drivers/dri/r600/r700_fragprog.c
@@ -67,6 +67,12 @@ void Map_Fragment_Program(r700_AssemblerBase *pAsm,
pAsm->uiFP_AttributeMap[FRAG_ATTRIB_COL1] = pAsm->number_used_registers++;
}
+ unBit = 1 << FRAG_ATTRIB_FOGC;
+ if(mesa_fp->Base.InputsRead & unBit)
+ {
+ pAsm->uiFP_AttributeMap[FRAG_ATTRIB_FOGC] = pAsm->number_used_registers++;
+ }
+
for(i=0; i<8; i++)
{
unBit = 1 << (FRAG_ATTRIB_TEX0 + i);