summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nvfx/nvfx_fragprog.c
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2010-04-17 23:25:47 -0700
committerVinson Lee <[email protected]>2010-04-17 23:25:47 -0700
commit63c6d6add16ec3ddbc42a13eef0c07d96255b009 (patch)
treeba53edd7c1df623483a27d56e55e424d271306dc /src/gallium/drivers/nvfx/nvfx_fragprog.c
parent0268e8984cfee9dca38ec5e74af7a562377bf53a (diff)
nvfx: Initialize variables.
Diffstat (limited to 'src/gallium/drivers/nvfx/nvfx_fragprog.c')
-rw-r--r--src/gallium/drivers/nvfx/nvfx_fragprog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/nvfx/nvfx_fragprog.c b/src/gallium/drivers/nvfx/nvfx_fragprog.c
index e14cf0854b4..aaa30bd60e3 100644
--- a/src/gallium/drivers/nvfx/nvfx_fragprog.c
+++ b/src/gallium/drivers/nvfx/nvfx_fragprog.c
@@ -236,7 +236,7 @@ nvfx_fp_tex(struct nvfx_fpc *fpc, int sat, int op, int unit,
static INLINE struct nvfx_sreg
tgsi_src(struct nvfx_fpc *fpc, const struct tgsi_full_src_register *fsrc)
{
- struct nvfx_sreg src;
+ struct nvfx_sreg src = { 0 };
switch (fsrc->Register.File) {
case TGSI_FILE_INPUT:
@@ -304,7 +304,7 @@ nvfx_fragprog_parse_instruction(struct nvfx_context* nvfx, struct nvfx_fpc *fpc,
{
const struct nvfx_sreg none = nvfx_sr(NVFXSR_NONE, 0);
struct nvfx_sreg src[3], dst, tmp;
- int mask, sat, unit;
+ int mask, sat, unit = 0;
int ai = -1, ci = -1, ii = -1;
int i;