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
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user