r600: LIT dst.y gets value from src.x
authorAndre Maasikas <amaasikas@gmail.com>
Mon, 12 Oct 2009 09:58:40 +0000 (12:58 +0300)
committerAlex Deucher <alexdeucher@gmail.com>
Thu, 15 Oct 2009 15:21:15 +0000 (11:21 -0400)
seems I overlooked this when removing hardcoded swizzles for this
one previously

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

index 183771288350cbac6df4918ae2b5adb9c51c3781..25b27cd82977027fb37df1b79fad24020a731f24 100644 (file)
@@ -2899,6 +2899,7 @@ GLboolean assemble_LIT(r700_AssemblerBase *pAsm)
     pAsm->S[0].src.rtype = srcType;
     pAsm->S[0].src.reg   = srcReg;
     setaddrmode_PVSSRC(&(pAsm->S[0].src), ADDR_ABSOLUTE);
+    swizzleagain_PVSSRC(&(pAsm->S[0].src), SQ_SEL_X, SQ_SEL_X, SQ_SEL_X, SQ_SEL_X);
     pAsm->S[1].src.rtype = SRC_REG_TEMPORARY;
     pAsm->S[1].src.reg   = tmp;
     setaddrmode_PVSSRC(&(pAsm->S[1].src), ADDR_ABSOLUTE);