nvfx: Silence uninitialized variable warnings.
authorVinson Lee <vlee@vmware.com>
Sat, 18 Sep 2010 07:51:07 +0000 (00:51 -0700)
committerVinson Lee <vlee@vmware.com>
Sat, 18 Sep 2010 07:51:07 +0000 (00:51 -0700)
src/gallium/drivers/nvfx/nvfx_vertprog.c

index db352de939a2b19dd531c7deeb295807fe72d2dc..e543fda50ef18c7ab413a3fc7dc932ba94a13e18 100644 (file)
@@ -377,6 +377,8 @@ tgsi_src(struct nvfx_vpc *vpc, const struct tgsi_full_src_register *fsrc) {
        src.swz[2] = fsrc->Register.SwizzleZ;
        src.swz[3] = fsrc->Register.SwizzleW;
        src.indirect = 0;
+       src.indirect_reg = 0;
+       src.indirect_swz = 0;
 
        if(fsrc->Register.Indirect) {
                if(fsrc->Indirect.File == TGSI_FILE_ADDRESS &&