zink: lower away fdph
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Fri, 31 Jan 2020 17:24:42 +0000 (18:24 +0100)
committerMarge Bot <eric+marge@anholt.net>
Fri, 7 Feb 2020 22:03:00 +0000 (22:03 +0000)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3668>

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

index af1ddef11bdf0f6c80abf3bbe5d77ae896a46d04..043b210caf9116225fde307e8b8e07c92708ff25 100644 (file)
@@ -1025,6 +1025,9 @@ emit_alu(struct ntv_context *ctx, nir_alu_instr *alu)
       result = emit_binop(ctx, SpvOpDot, dest_type, src[0], src[1]);
       break;
 
+   case nir_op_fdph:
+      unreachable("should already be lowered away");
+
    case nir_op_seq:
    case nir_op_sne:
    case nir_op_slt:
index a1428785bd47e421d3e295e3b0732c6c4e63797e..5c20c7b297fd0976c21e40dfc264ea098333675a 100644 (file)
@@ -164,6 +164,7 @@ lower_discard_if(nir_shader *shader)
 static const struct nir_shader_compiler_options nir_options = {
    .lower_all_io_to_temps = true,
    .lower_ffma = true,
+   .lower_fdph = true,
    .lower_flrp32 = true,
    .lower_fpow = true,
    .lower_fsat = true,