Module: Mesa Branch: master Commit: fa915a724fbff0878478ca7dd968207bc9906016 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=fa915a724fbff0878478ca7dd968207bc9906016
Author: Erik Faye-Lund <[email protected]> Date: Fri Jan 31 18:24:42 2020 +0100 zink: lower away fdph Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3668> --- src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c | 3 +++ src/gallium/drivers/zink/zink_compiler.c | 1 + 2 files changed, 4 insertions(+) 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, _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
