aco: print s_delay_alu INSTSKIP>3 correctly

INSTSKIP has 3 bits.

Fixes: 94958e6 ("aco: improve printing of s_delay_alu")
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30401>
(cherry picked from commit f8bf9f07b6)
This commit is contained in:
Konstantin Seurer 2024-07-28 22:02:00 +02:00 committed by Eric Engestrom
parent fce310bef4
commit 1e271414b3
2 changed files with 2 additions and 2 deletions

View file

@ -2334,7 +2334,7 @@
"description": "aco: print s_delay_alu INSTSKIP>3 correctly",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "94958e637d11d9dbe9345da1a8ff4048ef441389",
"notes": null

View file

@ -371,7 +371,7 @@ print_instr_format_specific(enum amd_gfx_level gfx_level, const Instruction* ins
}
case aco_opcode::s_delay_alu: {
unsigned delay[2] = {imm & 0xfu, (imm >> 7) & 0xfu};
unsigned skip = (imm >> 4) & 0x3;
unsigned skip = (imm >> 4) & 0x7;
for (unsigned i = 0; i < 2; i++) {
if (i == 1 && skip) {
if (skip == 1)