From 6158072e6f2c06756c346c29700feb72a335c593 Mon Sep 17 00:00:00 2001 From: Job Noorman Date: Tue, 5 May 2026 06:25:49 +0200 Subject: [PATCH] ir3/isa: use same src for ldg.a OFF field on a6xx/a7xx This makes it slightly easier to generate ldg.a for the different generations in the same code path. Signed-off-by: Job Noorman Part-of: --- src/freedreno/ir3/ir3_parser.y | 2 +- src/freedreno/isa/ir3-cat6.xml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/freedreno/ir3/ir3_parser.y b/src/freedreno/ir3/ir3_parser.y index 671559eb7ce..60b9ecec6c9 100644 --- a/src/freedreno/ir3/ir3_parser.y +++ b/src/freedreno/ir3/ir3_parser.y @@ -1028,9 +1028,9 @@ cat6_a6xx_global_address_pt2: new_src(0, IR3_REG_IMMED)->uim_val = 0; new_src(0, IR3_REG_IMMED)->uim_val = $2; } else { - new_src(0, IR3_REG_IMMED)->uim_val = $2; // Dummy src to smooth the difference between a6xx and a7xx new_src(0, IR3_REG_IMMED)->uim_val = 0; + new_src(0, IR3_REG_IMMED)->uim_val = $2; } } diff --git a/src/freedreno/isa/ir3-cat6.xml b/src/freedreno/isa/ir3-cat6.xml index 300633a6647..a211bd9eb34 100644 --- a/src/freedreno/isa/ir3-cat6.xml +++ b/src/freedreno/isa/ir3-cat6.xml @@ -211,7 +211,7 @@ TODO rename UAV src to "UAV" so disasm_field_cb can find it easily? src->srcs[1] - extract_reg_uim(src->srcs[2]) + extract_reg_uim(src->srcs[3]) extract_reg_uim(src->srcs[4]) !!(src->srcs[0]->flags & IR3_REG_CONST) @@ -386,7 +386,7 @@ TODO rename UAV src to "UAV" so disasm_field_cb can find it easily? src->srcs[1] - extract_reg_uim(src->srcs[2]) + extract_reg_uim(src->srcs[3]) src->srcs[4] extract_reg_uim(src->srcs[5]) !!(src->srcs[0]->flags & IR3_REG_CONST)