zink: handle ixor in ntv
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Tue, 16 Jun 2020 15:14:19 +0000 (11:14 -0400)
committerMarge Bot <eric+marge@anholt.net>
Fri, 26 Jun 2020 14:07:35 +0000 (14:07 +0000)
fixes spec@glsl-1.30@execution@built-in-functions@fs-op-assign-bitxor tests

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 553213bf94d28988ac56a7db98e2b0fe44d2a063..40a0b267a258228aa5db430a9395e6500a803935 100644 (file)
@@ -1294,6 +1294,7 @@ emit_alu(struct ntv_context *ctx, nir_alu_instr *alu)
    BINOP(nir_op_ishl, SpvOpShiftLeftLogical)
    BINOP(nir_op_ishr, SpvOpShiftRightArithmetic)
    BINOP(nir_op_ushr, SpvOpShiftRightLogical)
+   BINOP(nir_op_ixor, SpvOpBitwiseXor)
 #undef BINOP
 
 #define BINOP_LOG(nir_op, spv_op, spv_log_op) \