From: Erik Faye-Lund Date: Thu, 11 Jul 2019 14:23:52 +0000 (+0200) Subject: zink: more comparison-ops X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b5bfb72fce20b3381a5b73612cc71e6db6ae3976;p=mesa.git zink: more comparison-ops Acked-by: Jordan Justen --- diff --git a/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c b/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c index e1372eabd90..563421a93c0 100644 --- a/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c +++ b/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c @@ -837,8 +837,13 @@ emit_alu(struct ntv_context *ctx, nir_alu_instr *alu) BINOP(nir_op_fmul, SpvOpFMul) BINOP(nir_op_fdiv, SpvOpFDiv) BINOP(nir_op_fmod, SpvOpFMod) + BINOP(nir_op_ige, SpvOpSGreaterThanEqual) + BINOP(nir_op_ieq, SpvOpIEqual) + BINOP(nir_op_ine, SpvOpINotEqual) BINOP(nir_op_flt, SpvOpFUnordLessThan) BINOP(nir_op_fge, SpvOpFUnordGreaterThanEqual) + BINOP(nir_op_feq, SpvOpFOrdEqual) + BINOP(nir_op_fne, SpvOpFOrdNotEqual) BINOP(nir_op_ishl, SpvOpShiftLeftLogical) BINOP(nir_op_ishr, SpvOpShiftRightArithmetic) BINOP(nir_op_ushr, SpvOpShiftRightLogical)