From: Erik Faye-Lund Date: Fri, 31 Jan 2020 17:24:42 +0000 (+0100) Subject: zink: lower away fdph X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fa915a724fbff0878478ca7dd968207bc9906016;p=mesa.git zink: lower away fdph Part-of: --- 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 af1ddef11bd..043b210caf9 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 @@ -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: diff --git a/src/gallium/drivers/zink/zink_compiler.c b/src/gallium/drivers/zink/zink_compiler.c index a1428785bd4..5c20c7b297f 100644 --- a/src/gallium/drivers/zink/zink_compiler.c +++ b/src/gallium/drivers/zink/zink_compiler.c @@ -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,