From 7c1e0a455f0a717eea7c82fe3cb5074eb75ffeca Mon Sep 17 00:00:00 2001 From: Francisco Jerez Date: Tue, 14 Feb 2017 16:24:45 -0800 Subject: [PATCH] st/glsl_to_tgsi: Translate ir_unop_neg into MOV with modifier. --- 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 77a51d5..e4b9d82 100644 --- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp +++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp @@ -1632,7 +1632,7 @@ glsl_to_tgsi_visitor::visit_expression(ir_expression* ir, st_src_reg *op) emit_asm(ir, TGSI_OPCODE_DNEG, result_dst, op[0]); else { op[0].negate = ~op[0].negate; - result_src = op[0]; + emit_asm(ir, TGSI_OPCODE_MOV, result_dst, op[0]); } break; case ir_unop_subroutine_to_int: -- 2.10.2