zink: handle isign alu in ntv
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Tue, 16 Jun 2020 15:17:47 +0000 (11:17 -0400)
committerMarge Bot <eric+marge@anholt.net>
Fri, 26 Jun 2020 14:07:35 +0000 (14:07 +0000)
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 40a0b267a258228aa5db430a9395e6500a803935..00410a75b79e36ec1ca19484909596d87c50fb75 100644 (file)
@@ -1239,6 +1239,7 @@ emit_alu(struct ntv_context *ctx, nir_alu_instr *alu)
    BUILTIN_UNOP(nir_op_ftrunc, GLSLstd450Trunc)
    BUILTIN_UNOP(nir_op_fround_even, GLSLstd450RoundEven)
    BUILTIN_UNOP(nir_op_fsign, GLSLstd450FSign)
+   BUILTIN_UNOP(nir_op_isign, GLSLstd450SSign)
    BUILTIN_UNOP(nir_op_fsin, GLSLstd450Sin)
    BUILTIN_UNOP(nir_op_fcos, GLSLstd450Cos)
 #undef BUILTIN_UNOP