From: Dave Airlie Date: Tue, 10 May 2016 04:40:54 +0000 (+1000) Subject: st/glsl_to_tgsi: brown paper bag for the input offsets fix. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=008feb3687e0a8b10e7ad230828de56c6d351a6f;p=mesa.git st/glsl_to_tgsi: brown paper bag for the input offsets fix. Oops, thanks compiler. Signed-off-by: Dave Airlie --- diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp index 7489fa368cf..6e9c19a6306 100644 --- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp +++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp @@ -5582,7 +5582,7 @@ translate_tex_offset(struct st_translate *t, offset.Padding = 0; break; case PROGRAM_INPUT: - imm_src = t->inputs[t->inputMapping[imm_src.Index]]; + imm_src = t->inputs[t->inputMapping[in_offset->index]]; offset.File = imm_src.File; offset.Index = imm_src.Index; offset.SwizzleX = GET_SWZ(in_offset->swizzle, 0);