st/mesa: update inst->info along with inst->op
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 22 May 2016 20:50:27 +0000 (16:50 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Mon, 23 May 2016 23:58:53 +0000 (19:58 -0400)
Otherwise we still have TGSI_OPCODE_CMP's info, which causes a number of
later logic to go wrong. This fixes

dEQP-GLES2.functional.shaders.functions.control_flow.return_in_if_vertex

on nv30.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_glsl_to_tgsi.cpp

index 9d2057e6383047a595d8426f9774fdabbc499504..aa443a556fbab8f7a7b9db97fd3ee3934443532b 100644 (file)
@@ -4459,6 +4459,7 @@ glsl_to_tgsi_visitor::simplify_cmp(void)
           && inst->dst[0].writemask == get_src_arg_mask(inst->dst[0], inst->src[2])) {
 
          inst->op = TGSI_OPCODE_MOV;
+         inst->info = tgsi_get_opcode_info(inst->op);
          inst->src[0] = inst->src[1];
       }
    }