From 008feb3687e0a8b10e7ad230828de56c6d351a6f Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Tue, 10 May 2016 14:40:54 +1000 Subject: [PATCH] st/glsl_to_tgsi: brown paper bag for the input offsets fix. Oops, thanks compiler. Signed-off-by: Dave Airlie --- src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2