From 12645e8714d92f40b0da9d2e70022f7444860303 Mon Sep 17 00:00:00 2001 From: Connor Abbott Date: Mon, 22 Apr 2019 21:54:06 +0200 Subject: [PATCH] lima/gp: Mark more add-only nodes as maybe-two-slot Reviewed-by: Qiang Yu --- src/gallium/drivers/lima/ir/gp/node.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/gallium/drivers/lima/ir/gp/node.c b/src/gallium/drivers/lima/ir/gp/node.c index e6287db713d..eda6ae7ed6f 100644 --- a/src/gallium/drivers/lima/ir/gp/node.c +++ b/src/gallium/drivers/lima/ir/gp/node.c @@ -68,21 +68,29 @@ const gpir_op_info gpir_op_infos[] = { .name = "floor", .src_neg = {true, false, false, false}, .slots = (int []) { GPIR_INSTR_SLOT_ADD0, GPIR_INSTR_SLOT_ADD1, GPIR_INSTR_SLOT_END }, + .spillless = true, + .may_consume_two_slots = true, }, [gpir_op_sign] = { .name = "sign", .src_neg = {true, false, false, false}, .slots = (int []) { GPIR_INSTR_SLOT_ADD0, GPIR_INSTR_SLOT_ADD1, GPIR_INSTR_SLOT_END }, + .spillless = true, + .may_consume_two_slots = true, }, [gpir_op_ge] = { .name = "ge", .src_neg = {true, true, false, false}, .slots = (int []) { GPIR_INSTR_SLOT_ADD0, GPIR_INSTR_SLOT_ADD1, GPIR_INSTR_SLOT_END }, + .spillless = true, + .may_consume_two_slots = true, }, [gpir_op_lt] = { .name = "lt", .src_neg = {true, true, false, false}, .slots = (int []) { GPIR_INSTR_SLOT_ADD0, GPIR_INSTR_SLOT_ADD1, GPIR_INSTR_SLOT_END }, + .spillless = true, + .may_consume_two_slots = true, }, [gpir_op_min] = { .name = "min", -- 2.30.2