summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/r600/r700_fragprog.c
diff options
context:
space:
mode:
authorCooper Yuan <cooperyuan@gmail.com>2009-08-12 17:39:18 +0800
committerCooper Yuan <cooperyuan@gmail.com>2009-08-12 17:39:18 +0800
commit1e52b8b4e02c887cb493e5e2bde902b54e9c72fd (patch)
tree2ba6b2ab262c2e08e14203334121a6022105df3f /src/mesa/drivers/dri/r600/r700_fragprog.c
parent64e7bb326207df559b5cebdb278f62df83cf1425 (diff)
r600: A shader is bound that exports Z as a float into Red channel
Diffstat (limited to 'src/mesa/drivers/dri/r600/r700_fragprog.c')
-rw-r--r--src/mesa/drivers/dri/r600/r700_fragprog.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r600/r700_fragprog.c b/src/mesa/drivers/dri/r600/r700_fragprog.c
index efeea905c1..6249bde6f1 100644
--- a/src/mesa/drivers/dri/r600/r700_fragprog.c
+++ b/src/mesa/drivers/dri/r600/r700_fragprog.c
@@ -118,6 +118,7 @@ void Map_Fragment_Program(r700_AssemblerBase *pAsm,
pAsm->uiFP_OutputMap[FRAG_RESULT_DEPTH] = pAsm->number_used_registers++;
pAsm->number_of_exports++;
pAsm->number_of_colorandz_exports++;
+ pAsm->pR700Shader->depthIsExported = 1;
}
pAsm->pucOutMask = (unsigned char*) MALLOC(pAsm->number_of_exports);