Mesa (master): zink: remove support for fcsel

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jan 6 12:55:02 UTC 2021


Module: Mesa
Branch: master
Commit: 8553e1cb714a15d63430a5227d9f4eae1ad128e6
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8553e1cb714a15d63430a5227d9f4eae1ad128e6

Author: Erik Faye-Lund <erik.faye-lund at collabora.com>
Date:   Wed Jan  6 06:59:27 2021 +0100

zink: remove support for fcsel

fcsel is only emitted by bool -> float lowering. We used to do that a
long time ago, but no longer. So we don't need to support this opcode
any longer.

Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8347>

---

 src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c | 10 ----------
 1 file changed, 10 deletions(-)

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 0a2c2605b57..15f861274f1 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
@@ -1435,16 +1435,6 @@ emit_alu(struct ntv_context *ctx, nir_alu_instr *alu)
                                   src[0], src[1], src[2]);
       break;
 
-   case nir_op_fcsel:
-      result = emit_binop(ctx, SpvOpFOrdGreaterThan,
-                          get_bvec_type(ctx, num_components),
-                          src[0],
-                          get_fvec_constant(ctx,
-                                            nir_src_bit_size(alu->src[0].src),
-                                            num_components, 0));
-      result = emit_select(ctx, dest_type, result, src[1], src[2]);
-      break;
-
    case nir_op_bcsel:
       assert(nir_op_infos[alu->op].num_inputs == 3);
       result = emit_select(ctx, dest_type, src[0], src[1], src[2]);



More information about the mesa-commit mailing list