summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/lima/ir/pp/node.c
diff options
context:
space:
mode:
authorVasily Khoruzhick <anarsoul@gmail.com>2019-08-22 07:42:56 -0700
committerVasily Khoruzhick <anarsoul@gmail.com>2019-08-23 18:19:47 -0700
commit8dd195e86570138684910a646e23e70284eacdf2 (patch)
tree2823af8b68e0dc107c4aeed8adc3f3927a03530f /src/gallium/drivers/lima/ir/pp/node.c
parent7f814d2b467a3bf7082f07a907606a18068dd089 (diff)
downloadmesa-8dd195e86570138684910a646e23e70284eacdf2.tar.gz
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 <ichgeh@imkreisrum.de> Reviewed-by: Qiang Yu <yuq825@gmail.com> Reviewed-by: Erico Nunes <nunes.erico@gmail.com> Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
Diffstat (limited to 'src/gallium/drivers/lima/ir/pp/node.c')
-rw-r--r--src/gallium/drivers/lima/ir/pp/node.c6
1 files changed, 5 insertions, 1 deletions
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",