panfrost/midgard: Add umin/umax opcodes
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
This commit is contained in:
@@ -196,6 +196,8 @@ static unsigned alu_opcode_props[256] = {
|
||||
[midgard_alu_op_fmax] = UNITS_MUL | UNITS_ADD,
|
||||
[midgard_alu_op_imin] = UNITS_MOST,
|
||||
[midgard_alu_op_imax] = UNITS_MOST,
|
||||
[midgard_alu_op_umin] = UNITS_MOST,
|
||||
[midgard_alu_op_umax] = UNITS_MOST,
|
||||
[midgard_alu_op_fmov] = UNITS_ALL | QUIRK_FLIPPED_R24,
|
||||
[midgard_alu_op_fround] = UNITS_ADD,
|
||||
[midgard_alu_op_froundeven] = UNITS_ADD,
|
||||
|
||||
@@ -74,7 +74,9 @@ typedef enum {
|
||||
midgard_alu_op_isub = 0x46,
|
||||
midgard_alu_op_imul = 0x58,
|
||||
midgard_alu_op_imin = 0x60,
|
||||
midgard_alu_op_umin = 0x61,
|
||||
midgard_alu_op_imax = 0x62,
|
||||
midgard_alu_op_umax = 0x63,
|
||||
midgard_alu_op_iasr = 0x68,
|
||||
midgard_alu_op_ilsr = 0x69,
|
||||
midgard_alu_op_ishl = 0x6E,
|
||||
@@ -480,7 +482,9 @@ static char *alu_opcode_names[256] = {
|
||||
[midgard_alu_op_fdot4] = "fdot4",
|
||||
[midgard_alu_op_freduce] = "freduce",
|
||||
[midgard_alu_op_imin] = "imin",
|
||||
[midgard_alu_op_umin] = "umin",
|
||||
[midgard_alu_op_imax] = "imax",
|
||||
[midgard_alu_op_umax] = "umax",
|
||||
[midgard_alu_op_ishl] = "ishl",
|
||||
[midgard_alu_op_iasr] = "iasr",
|
||||
[midgard_alu_op_ilsr] = "ilsr",
|
||||
|
||||
@@ -1029,6 +1029,8 @@ emit_alu(compiler_context *ctx, nir_alu_instr *instr)
|
||||
ALU_CASE(fmax, fmax);
|
||||
ALU_CASE(imin, imin);
|
||||
ALU_CASE(imax, imax);
|
||||
ALU_CASE(umin, umin);
|
||||
ALU_CASE(umax, umax);
|
||||
ALU_CASE(fmov, fmov);
|
||||
ALU_CASE(ffloor, ffloor);
|
||||
ALU_CASE(fround_even, froundeven);
|
||||
|
||||
Reference in New Issue
Block a user