r600: fix shadow_ambient shader
authorAndre Maasikas <amaasikas@gmail.com>
Mon, 18 Jan 2010 10:42:10 +0000 (12:42 +0200)
committerAndre Maasikas <amaasikas@gmail.com>
Mon, 18 Jan 2010 10:49:06 +0000 (12:49 +0200)
rtype enums are different, DST_REG_OUTPUT got SRC_REG_CONSTANT in some
shaders and produced invalid output/hang
as TEX output is temp register always set out src to SRC_REG_TEMPORARY

src/mesa/drivers/dri/r600/r700_assembler.c

index 0ff16b4dddc15e3049636f7edcb9a5c9ff7d0151..20e165ed7d513b487a1210474d806bf20dcbee92 100644 (file)
@@ -4469,7 +4469,7 @@ GLboolean assemble_TEX(r700_AssemblerBase *pAsm)
        }
        pAsm->D2.dst2.SaturateMode = 1;
 
-       pAsm->S[0].src.rtype = pAsm->D.dst.rtype;
+       pAsm->S[0].src.rtype = SRC_REG_TEMPORARY;
        pAsm->S[0].src.reg = pAsm->D.dst.reg;
        noswizzle_PVSSRC(&(pAsm->S[0].src));
        noneg_PVSSRC(&(pAsm->S[0].src));