zink: lower away fdph

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3668>
This commit is contained in:
Erik Faye-Lund 2020-01-31 18:24:42 +01:00 committed by Marge Bot
parent 0c36b1c0db
commit fa915a724f
2 changed files with 4 additions and 0 deletions

View 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:

View 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,