Cell: trivial clean-ups
authorIan Romanick <idr@us.ibm.com>
Tue, 19 Feb 2008 02:51:57 +0000 (18:51 -0800)
committerIan Romanick <idr@us.ibm.com>
Tue, 19 Feb 2008 16:41:04 +0000 (08:41 -0800)
src/gallium/drivers/cell/spu/spu_exec.c

index 109540b1f7bd1db0e142a9cbf4d7fb25cad7bbad..0eb5ea1a3f34099ca56dc08e95f68a9266269caf 100644 (file)
@@ -146,17 +146,13 @@ spu_exec_machine_init(struct spu_exec_machine *mach,
                       struct spu_sampler *samplers,
                       unsigned processor)
 {
-   qword zero;
-   qword not_zero;
-   uint i;
+   const qword zero = si_il(0);
+   const qword not_zero = si_il(~0);
 
    mach->Samplers = samplers;
    mach->Processor = processor;
    mach->Addrs = &mach->Temps[TGSI_EXEC_NUM_TEMPS];
 
-   zero = si_xor(zero, zero);
-   not_zero = si_xori(zero, 0xff);
-
    /* Setup constants. */
    mach->Temps[TEMP_0_I].xyzw[TEMP_0_C].q = zero;
    mach->Temps[TEMP_FF_I].xyzw[TEMP_FF_C].q = not_zero;