Mesa (master): nvc0: fix unitialized variable in TGSI sysval decl processing

Christoph Bumiller chrisbmr at kemper.freedesktop.org
Sun Mar 13 12:25:28 UTC 2011


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

Author: Christoph Bumiller <e0425955 at student.tuwien.ac.at>
Date:   Sat Mar  5 22:28:46 2011 +0100

nvc0: fix unitialized variable in TGSI sysval decl processing

---

 src/gallium/drivers/nvc0/nvc0_program.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/nvc0/nvc0_program.c b/src/gallium/drivers/nvc0/nvc0_program.c
index 899fe14..975745a 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;




More information about the mesa-commit mailing list