diff options
author | Erico Nunes <[email protected]> | 2018-04-14 21:14:41 +0200 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2018-04-16 07:59:25 -0700 |
commit | d19b488339be4b908dbd3b1636a677d11a2232f0 (patch) | |
tree | fe58b843a20e199dd9b2bfd5cc546a0a9e7f36f8 /src/compiler | |
parent | 72ab499c9f9fbfa27645168b688ad03ad5d51242 (diff) |
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 <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/glsl/glsl_to_nir.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/glsl/glsl_to_nir.cpp b/src/compiler/glsl/glsl_to_nir.cpp index 17d58acc4c2..8e5e9c34912 100644 --- a/src/compiler/glsl/glsl_to_nir.cpp +++ b/src/compiler/glsl/glsl_to_nir.cpp @@ -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: |