mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
st/mesa: update inst->info along with inst->op
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>
This commit is contained in:
parent
533d1e9085
commit
1e99a46b44
1 changed files with 1 additions and 0 deletions
|
|
@ -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];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue