st/glsl_to_tgsi: brown paper bag for the input offsets fix.
authorDave Airlie <airlied@redhat.com>
Tue, 10 May 2016 04:40:54 +0000 (14:40 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 10 May 2016 04:41:21 +0000 (14:41 +1000)
Oops, thanks compiler.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/state_tracker/st_glsl_to_tgsi.cpp

index 7489fa368cf8fbae9875602d5ca0d16d6899137d..6e9c19a63064f7c59225606a5b7372a28bd68b3b 100644 (file)
@@ -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);