Mesa (master): nvfx: Silence uninitialized variable warnings.

Vinson Lee vlee at kemper.freedesktop.org
Wed Sep 15 12:44:16 UTC 2010


Module: Mesa
Branch: master
Commit: 66a146dd058284b33c0f8fcbcc8ce7511a34ac46
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=66a146dd058284b33c0f8fcbcc8ce7511a34ac46

Author: Vinson Lee <vlee at vmware.com>
Date:   Wed Sep 15 05:43:50 2010 -0700

nvfx: Silence uninitialized variable warnings.

---

 src/gallium/drivers/nvfx/nvfx_fragprog.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/nvfx/nvfx_fragprog.c b/src/gallium/drivers/nvfx/nvfx_fragprog.c
index 4fda857..d97cab8 100644
--- a/src/gallium/drivers/nvfx/nvfx_fragprog.c
+++ b/src/gallium/drivers/nvfx/nvfx_fragprog.c
@@ -432,6 +432,9 @@ tgsi_src(struct nvfx_fpc *fpc, const struct tgsi_full_src_register *fsrc)
 	src.swz[1] = fsrc->Register.SwizzleY;
 	src.swz[2] = fsrc->Register.SwizzleZ;
 	src.swz[3] = fsrc->Register.SwizzleW;
+	src.indirect = 0;
+	src.indirect_reg = 0;
+	src.indirect_swz = 0;
 	return src;
 }
 




More information about the mesa-commit mailing list