From 27f91eb66b99e9d340b02f36ba476dc046c94b58 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Wed, 9 Dec 2020 14:55:05 -0500 Subject: [PATCH] pan/bi: Mark message types in ISA.xml Message-passing instructions have an associated message type, which the clause header needs to signal. Instead of open coding this, let's annotate the XML. Instructions not otherwise marked do not generate messages. Three exceptions apply: * UBO loads need to use the attribute message type. * Tile buffer access to Z/S needs ZS message type * LD_VAR_SPECIAL.fragz needs ZS message type Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/bifrost/ISA.xml | 110 +++++++++++++++--------------- src/panfrost/bifrost/isa_parse.py | 1 + 2 files changed, 56 insertions(+), 55 deletions(-) diff --git a/src/panfrost/bifrost/ISA.xml b/src/panfrost/bifrost/ISA.xml index 6a4b19164ae..e4b4de8920d 100644 --- a/src/panfrost/bifrost/ISA.xml +++ b/src/panfrost/bifrost/ISA.xml @@ -2454,31 +2454,31 @@ - + - + - + - + - + @@ -2489,27 +2489,27 @@ - + - + - + - + - + @@ -3823,11 +3823,11 @@ - + - + @@ -6157,7 +6157,7 @@ - + @@ -6191,7 +6191,7 @@ - + @@ -6230,7 +6230,7 @@ - + @@ -6269,7 +6269,7 @@ - + @@ -6308,7 +6308,7 @@ - + @@ -6320,7 +6320,7 @@ - + @@ -6333,7 +6333,7 @@ - + @@ -6345,7 +6345,7 @@ - + @@ -6486,7 +6486,7 @@ - + none @@ -6539,7 +6539,7 @@ - + none @@ -6592,7 +6592,7 @@ - + @@ -6733,7 +6733,7 @@ - + point @@ -6919,7 +6919,7 @@ - + @@ -6952,7 +6952,7 @@ - + @@ -6985,7 +6985,7 @@ - + @@ -7018,7 +7018,7 @@ - + @@ -7028,7 +7028,7 @@ - + @@ -7038,7 +7038,7 @@ - + @@ -7053,7 +7053,7 @@ - + @@ -7112,7 +7112,7 @@ - + @@ -7127,7 +7127,7 @@ - + @@ -7164,7 +7164,7 @@ - + @@ -7179,7 +7179,7 @@ - + @@ -7194,7 +7194,7 @@ - + @@ -7278,7 +7278,7 @@ - + @@ -7492,7 +7492,7 @@ - + @@ -7507,7 +7507,7 @@ - + @@ -7522,7 +7522,7 @@ - + @@ -7537,7 +7537,7 @@ - + @@ -7552,7 +7552,7 @@ - + @@ -7567,7 +7567,7 @@ - + @@ -7582,7 +7582,7 @@ - + @@ -7597,7 +7597,7 @@ - + @@ -7612,7 +7612,7 @@ - + @@ -7624,7 +7624,7 @@ - + @@ -7660,14 +7660,14 @@ - + - + @@ -7679,7 +7679,7 @@ - + @@ -7691,7 +7691,7 @@ - + @@ -7700,7 +7700,7 @@ - + @@ -8022,7 +8022,7 @@ - + @@ -8052,7 +8052,7 @@ - + @@ -8111,7 +8111,7 @@ - + diff --git a/src/panfrost/bifrost/isa_parse.py b/src/panfrost/bifrost/isa_parse.py index 7d927e2c727..f0824d09e16 100644 --- a/src/panfrost/bifrost/isa_parse.py +++ b/src/panfrost/bifrost/isa_parse.py @@ -99,6 +99,7 @@ def parse_instruction(ins): 'staging': ins.attrib.get('staging', ''), 'unused': ins.attrib.get('unused', False), 'pseudo': ins.attrib.get('pseudo', False), + 'message': ins.attrib.get('message', 'none'), } if 'exact' in ins.attrib: