mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
nir: fix ir_binop_gequal glsl_to_nir conversion
ir_binop_gequal needs to be converted to nir_op_sge when native integers are not supported in the driver. Otherwise it becomes no different than ir_binop_less after the conversion. Signed-off-by: Erico Nunes <nunes.erico@gmail.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
72ab499c9f
commit
d19b488339
1 changed files with 1 additions and 1 deletions
|
|
@ -1832,7 +1832,7 @@ nir_visitor::visit(ir_expression *ir)
|
|||
else
|
||||
result = nir_uge(&b, srcs[0], srcs[1]);
|
||||
} else {
|
||||
result = nir_slt(&b, srcs[0], srcs[1]);
|
||||
result = nir_sge(&b, srcs[0], srcs[1]);
|
||||
}
|
||||
break;
|
||||
case ir_binop_equal:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue