diff options
author | Samuel Pitoiset <[email protected]> | 2016-03-31 10:54:18 +0200 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2016-04-01 07:16:24 +1000 |
commit | d22eca5f90cc86105e2a42e39acc061353c21129 (patch) | |
tree | aa49c25d68fa0c1b42b3f0ca09294e548fc7ae23 | |
parent | 05902a668611094ec876929fc2dfe1172043e4b9 (diff) |
tgsi: silence compiler warning in fetch_sampler_unit()
The unit variable can be used uninitialized.
Fixes: 24e77cb09 ("tgsi: handle indirect sampler arrays. (v2)")
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Dave Airlie <[email protected]>
-rw-r--r-- | src/gallium/auxiliary/tgsi/tgsi_exec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_exec.c b/src/gallium/auxiliary/tgsi/tgsi_exec.c index 72d8c5a7247..a595bbbc6d3 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_exec.c +++ b/src/gallium/auxiliary/tgsi/tgsi_exec.c @@ -1996,7 +1996,7 @@ fetch_sampler_unit(struct tgsi_exec_machine *mach, const struct tgsi_full_instruction *inst, uint sampler) { - uint unit; + uint unit = 0; int i; if (inst->Src[sampler].Register.Indirect) { const struct tgsi_full_src_register *reg = &inst->Src[sampler]; |