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: 795638767d ("pan/bi: Use fused dual source blending")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15250>
(cherry picked from commit 66a604efb5)
This commit is contained in:
Icecream95 2022-02-21 16:50:56 +13:00 committed by Dylan Baker
parent 8a22cc32af
commit 909b675c19
2 changed files with 4 additions and 1 deletions

View file

@ -571,7 +571,7 @@
"description": "pan/bi: Skip psuedo sources in ISA.xml",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "795638767d142a58b76c91a0719e42536435320f"
},

View file

@ -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])