r300c: Fix up for register allocator rewrite.
authorMichel Dänzer <daenzer@vmware.com>
Mon, 9 May 2011 16:26:50 +0000 (18:26 +0200)
committerMichel Dänzer <michel@daenzer.net>
Mon, 9 May 2011 16:26:50 +0000 (18:26 +0200)
Was broken by commit fe622bac0c1b5b9f2a9fcf9f35b51232a06bea42 ('r300/compiler:
Rewrite register allocator').

src/mesa/drivers/dri/r300/r300_blit.c
src/mesa/drivers/dri/r300/radeon_mesa_to_rc.c

index 14e60866d93d07c4acf48a3d53496711dc07a888..c525f0ffe2ff12fbf67bae70d90ca73ab1ec0d27 100644 (file)
@@ -118,6 +118,7 @@ static void create_fragment_program(struct r300_context *r300)
     inst->U.I.SrcReg[0].Negate = 0;
     inst->U.I.SrcReg[0].RelAddr = 0;
     inst->U.I.SrcReg[0].Swizzle = RC_SWIZZLE_XYZW;
+    inst->U.I.TexSwizzle = RC_SWIZZLE_XYZW;
 
     compiler.Base.Program.InputsRead = (1 << FRAG_ATTRIB_TEX0);
     compiler.OutputColor[0] = FRAG_RESULT_COLOR;
index 232603ece5983c8db495984fc72c1bd24ccef023..b1dfccd22d0b1b5720d01eb1d71bff2c366e34e9 100644 (file)
@@ -170,6 +170,7 @@ static void translate_instruction(struct radeon_compiler * c,
                dest->U.I.TexSrcUnit = src->TexSrcUnit;
                dest->U.I.TexSrcTarget = translate_tex_target(src->TexSrcTarget);
                dest->U.I.TexShadow = src->TexShadow;
+               dest->U.I.TexSwizzle = RC_SWIZZLE_XYZW;
        }
 }