From e8f2de18fbd6f15992560b2cc88eb7c8a87ee769 Mon Sep 17 00:00:00 2001 From: Jay Cornwall Date: Sun, 16 Sep 2012 22:09:50 -0500 Subject: [PATCH] Fix target register type for integer texture opcodes in GLSL/TGSI conversion --- 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 852dcea..d36aa40 100644 --- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp +++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp @@ -2577,7 +2577,7 @@ glsl_to_tgsi_visitor::visit(ir_texture *ir) /* Storage for our result. Ideally for an assignment we'd be using * the actual storage for the result here, instead. */ - result_src = get_temp(glsl_type::vec4_type); + result_src = get_temp(ir->type); result_dst = st_dst_reg(result_src); switch (ir->op) { -- 1.7.9.5