Mesa (main): pan/bi: Skip psuedo sources in ISA.xml

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sat Mar 5 20:39:14 UTC 2022


Module: Mesa
Branch: main
Commit: 66a604efb5237d62020d278c596fc13643cdfe8f
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=66a604efb5237d62020d278c596fc13643cdfe8f

Author: Icecream95 <ixn at disroot.org>
Date:   Mon Feb 21 16:50:56 2022 +1300

pan/bi: Skip psuedo sources in ISA.xml

The second staging register source for the +BLEND instruction should
not be packed nor disassembled, so skip it when include_pseudo is not
set.

Fixes: 795638767d1 ("pan/bi: Use fused dual source blending")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15250>

---

 src/panfrost/bifrost/bifrost_isa.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/panfrost/bifrost/bifrost_isa.py b/src/panfrost/bifrost/bifrost_isa.py
index 63dd785d513..89e5d6f008f 100644
--- a/src/panfrost/bifrost/bifrost_isa.py
+++ b/src/panfrost/bifrost/bifrost_isa.py
@@ -143,6 +143,9 @@ def parse_instruction(ins, include_pseudo):
         common['exact'] = parse_exact(ins)
 
     for src in ins.findall('src'):
+        if src.attrib.get('pseudo', False) and not include_pseudo:
+            continue
+
         mask = int(src.attrib['mask'], 0) if ('mask' in src.attrib) else 0xFF
         common['srcs'].append([int(src.attrib['start'], 0), mask])
 



More information about the mesa-commit mailing list