Commit a1223037 authored by Gert Wollny's avatar Gert Wollny Committed by Marge Bot

r600/sfn: Handle umul24 and umad24

Signed-off-by: Gert Wollny's avatarGert Wollny <gert.wollny@collabora.com>
Part-of: <mesa/mesa!4714>
parent 7e064659
......@@ -1195,7 +1195,9 @@ const struct nir_shader_compiler_options r600_nir_options = {
.lower_extract_word = true,
.max_unroll_iterations = 32,
.lower_all_io_to_temps = true,
.vectorize_io = true
.vectorize_io = true,
.has_umad24 = true,
.has_umul24 = true,
};
static const void *
......
......@@ -177,6 +177,8 @@ bool EmitAluInstruction::do_emit(nir_instr* ir)
case nir_op_fddy_coarse:
case nir_op_fddy: return emit_tex_fdd(instr,TexInstruction::get_gradient_v, false);
case nir_op_umad24: return emit_alu_op3(instr, op3_muladd_uint24, {0, 1, 2});
case nir_op_umul24: return emit_alu_op2(instr, op2_mul_uint24);
default:
return false;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment