Commit 0e0f7f11 authored by Alyssa Rosenzweig's avatar Alyssa Rosenzweig 💜 Committed by Marge Bot
Browse files

pan/bit: Add min/max support to interpreter

Signed-off-by: Alyssa Rosenzweig's avatarAlyssa Rosenzweig <>
Part-of: <mesa/mesa!4470>
parent e9967e9f
......@@ -184,6 +184,8 @@ bit_write(struct bit_state *s, unsigned index, nir_alu_type T, bit_t value, bool
bit_make_poly(add, a + b);
bit_make_float(fma, (a * b) + c);
bit_make_poly(mov, a);
bit_make_poly(min, MIN2(a, b));
bit_make_poly(max, MAX2(a, b));
/* Modifiers */
......@@ -317,9 +319,16 @@ bit_step(struct bit_state *s, bi_instruction *ins, bool FMA)
case BI_FREXP:
case BI_ISUB:
unreachable("Unsupported op");
case BI_MINMAX: {
if (ins->op.minmax == BI_MINMAX_MIN) {
} else {
case BI_MOV:
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