zink: add ult handling for ntv
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 10 Jun 2020 14:04:36 +0000 (10:04 -0400)
committerMarge Bot <eric+marge@anholt.net>
Fri, 26 Jun 2020 14:07:35 +0000 (14:07 +0000)
fixes shaders@glsl-vs-absolutedifference-uint piglit test

Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5562>

src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c

index 2460b479db1093ae3157da5db07561ed7911393a..d821ae2277d824e768626d95a03400c6829980a7 100644 (file)
@@ -1284,6 +1284,7 @@ emit_alu(struct ntv_context *ctx, nir_alu_instr *alu)
    BINOP(nir_op_fmod, SpvOpFMod)
    BINOP(nir_op_ilt, SpvOpSLessThan)
    BINOP(nir_op_ige, SpvOpSGreaterThanEqual)
+   BINOP(nir_op_ult, SpvOpULessThan)
    BINOP(nir_op_uge, SpvOpUGreaterThanEqual)
    BINOP(nir_op_flt, SpvOpFOrdLessThan)
    BINOP(nir_op_fge, SpvOpFOrdGreaterThanEqual)