summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/nvfx/nvfx_vertprog.c
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2010-04-17 23:25:47 -0700
committerVinson Lee <vlee@vmware.com>2010-04-17 23:25:47 -0700
commit63c6d6add16ec3ddbc42a13eef0c07d96255b009 (patch)
treeba53edd7c1df623483a27d56e55e424d271306dc /src/gallium/drivers/nvfx/nvfx_vertprog.c
parent0268e8984cfee9dca38ec5e74af7a562377bf53a (diff)
nvfx: Initialize variables.
Diffstat (limited to 'src/gallium/drivers/nvfx/nvfx_vertprog.c')
-rw-r--r--src/gallium/drivers/nvfx/nvfx_vertprog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/nvfx/nvfx_vertprog.c b/src/gallium/drivers/nvfx/nvfx_vertprog.c
index b405fd9c82..80b98b62d3 100644
--- a/src/gallium/drivers/nvfx/nvfx_vertprog.c
+++ b/src/gallium/drivers/nvfx/nvfx_vertprog.c
@@ -334,7 +334,7 @@ nvfx_vp_arith(struct nvfx_context* nvfx, struct nvfx_vpc *vpc, int slot, int op,
static INLINE struct nvfx_sreg
tgsi_src(struct nvfx_vpc *vpc, const struct tgsi_full_src_register *fsrc) {
- struct nvfx_sreg src;
+ struct nvfx_sreg src = { 0 };
switch (fsrc->Register.File) {
case TGSI_FILE_INPUT:
@@ -365,7 +365,7 @@ tgsi_src(struct nvfx_vpc *vpc, const struct tgsi_full_src_register *fsrc) {
static INLINE struct nvfx_sreg
tgsi_dst(struct nvfx_vpc *vpc, const struct tgsi_full_dst_register *fdst) {
- struct nvfx_sreg dst;
+ struct nvfx_sreg dst = { 0 };
switch (fdst->Register.File) {
case TGSI_FILE_OUTPUT: