st_glsl_to_tgsi: init index to 0 before get_deref_offsets()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 13 Jun 2017 08:03:52 +0000 (10:03 +0200)
committerMichel Dänzer <michel@daenzer.net>
Tue, 13 Jun 2017 08:36:29 +0000 (17:36 +0900)
commit6d8a387f78cdeedc8c404a1b4c116a19023f2e19
tree7f4acc6eb9b621caa08912d47984b2331c945e33
parent8dddb9788a2e9aa6b52b0eb9474d015b0262062e
st_glsl_to_tgsi: init index to 0 before get_deref_offsets()

Fixes: 8ec4975cd83 ("st_glsl_to_tgsi: don't try and pass 32-bit values to get_deref_offsets")
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=101401
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-and-Tested-by: Michel Dänzer <michel.daenzer@amd.com>
src/mesa/state_tracker/st_glsl_to_tgsi.cpp