summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2010-09-18 00:51:07 -0700
committerVinson Lee <[email protected]>2010-09-18 00:51:07 -0700
commitb1a5c63467b01265c8652862053b7f2f90dc8044 (patch)
treea2d0cdb921746dae6ab649cf2dc3cd3498b7c3d7
parent013e4cca9f9c74e52f8372b500fb3ff07c692a61 (diff)
nvfx: Silence uninitialized variable warnings.
-rw-r--r--src/gallium/drivers/nvfx/nvfx_vertprog.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/nvfx/nvfx_vertprog.c b/src/gallium/drivers/nvfx/nvfx_vertprog.c
index db352de939a..e543fda50ef 100644
--- a/src/gallium/drivers/nvfx/nvfx_vertprog.c
+++ b/src/gallium/drivers/nvfx/nvfx_vertprog.c
@@ -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 &&