From 8dd195e86570138684910a646e23e70284eacdf2 Mon Sep 17 00:00:00 2001 From: Vasily Khoruzhick Date: Thu, 22 Aug 2019 07:42:56 -0700 Subject: lima/ppir: turn store_color into ALU node We don't have a special OP to store color in PP, all we need to do is to store gl_FragColor into reg0, thus it's just a mov and therefore ALU node. Yet we still need to indicate that it's store_color op so regalloc ignores its destination. Tested-by: Andreas Baierl Reviewed-by: Qiang Yu Reviewed-by: Erico Nunes Signed-off-by: Vasily Khoruzhick --- src/gallium/drivers/lima/ir/pp/node.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/gallium/drivers/lima/ir/pp/node.c') diff --git a/src/gallium/drivers/lima/ir/pp/node.c b/src/gallium/drivers/lima/ir/pp/node.c index 37dd65823fa..59635df3cdf 100644 --- a/src/gallium/drivers/lima/ir/pp/node.c +++ b/src/gallium/drivers/lima/ir/pp/node.c @@ -308,7 +308,11 @@ const ppir_op_info ppir_op_infos[] = { }, [ppir_op_store_color] = { .name = "st_col", - .type = ppir_node_type_store, + .type = ppir_node_type_alu, + .slots = (int []) { + PPIR_INSTR_SLOT_ALU_VEC_ADD, PPIR_INSTR_SLOT_ALU_VEC_MUL, + PPIR_INSTR_SLOT_END + }, }, [ppir_op_store_temp] = { .name = "st_temp", -- cgit v1.2.1