tgsi: silence compiler warning
authorKeith Whitwell <keithw@vmware.com>
Wed, 19 Aug 2009 11:00:24 +0000 (12:00 +0100)
committerKeith Whitwell <keithw@vmware.com>
Wed, 19 Aug 2009 11:00:24 +0000 (12:00 +0100)
src/gallium/auxiliary/tgsi/tgsi_ureg.c

index 2121f4d77cfbace21fb3c55dad409bd3b4b3b75c..bbe06bfd7c671e80b6a27576a8d01d7d1df99b1a 100644 (file)
@@ -393,7 +393,7 @@ struct ureg_src ureg_DECL_immediate( struct ureg_program *ureg,
                                      unsigned nr )
 {
    unsigned i;
-   unsigned swizzle;
+   unsigned swizzle = 0;
 
    /* Could do a first pass where we examine all existing immediates
     * without expanding.