diff options
author | Andre Maasikas <amaasikas@gmail.com> | 2010-01-18 12:42:10 +0200 |
---|---|---|
committer | Andre Maasikas <amaasikas@gmail.com> | 2010-01-18 12:49:06 +0200 |
commit | 7b82f0f67e4614fc12aee492b0a3cdf5db7391df (patch) | |
tree | cb2f8576d57b0f69e3938446dd06527e5dd23251 /src | |
parent | 0857f38c398bf14526bb47e0c57602be4e7a0ae4 (diff) |
r600: fix shadow_ambient shader
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
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/r600/r700_assembler.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r600/r700_assembler.c b/src/mesa/drivers/dri/r600/r700_assembler.c index 0ff16b4ddd..20e165ed7d 100644 --- a/src/mesa/drivers/dri/r600/r700_assembler.c +++ b/src/mesa/drivers/dri/r600/r700_assembler.c @@ -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)); |