Mesa (master): st/glsl_to_tgsi: brown paper bag for the input offsets fix.
Dave Airlie
airlied at kemper.freedesktop.org
Tue May 10 04:41:31 UTC 2016
Module: Mesa
Branch: master
Commit: 008feb3687e0a8b10e7ad230828de56c6d351a6f
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=008feb3687e0a8b10e7ad230828de56c6d351a6f
Author: Dave Airlie <airlied at redhat.com>
Date: Tue May 10 14:40:54 2016 +1000
st/glsl_to_tgsi: brown paper bag for the input offsets fix.
Oops, thanks compiler.
Signed-off-by: Dave Airlie <airlied at redhat.com>
---
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 7489fa3..6e9c19a 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);
More information about the mesa-commit
mailing list