From: Christoph Bumiller Date: Sat, 5 Mar 2011 21:28:46 +0000 (+0100) Subject: nvc0: fix unitialized variable in TGSI sysval decl processing X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d7a23cfb8837b7e2db446f631ef65460cbebee09;p=mesa.git nvc0: fix unitialized variable in TGSI sysval decl processing --- diff --git a/src/gallium/drivers/nvc0/nvc0_program.c b/src/gallium/drivers/nvc0/nvc0_program.c index 899fe147c6a..975745a9dde 100644 --- a/src/gallium/drivers/nvc0/nvc0_program.c +++ b/src/gallium/drivers/nvc0/nvc0_program.c @@ -298,6 +298,7 @@ prog_decl(struct nvc0_translation_info *ti, } break; case TGSI_FILE_SYSTEM_VALUE: + i = first; ti->sysval_loc[i] = nvc0_system_value_location(sn, si, &ti->sysval_in[i]); assert(first == last); break;