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 <jnoorman@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41342>
This commit is contained in:
Job Noorman 2026-05-05 06:25:49 +02:00
parent 53d96aed05
commit 6158072e6f
2 changed files with 3 additions and 3 deletions

View file

@ -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;
}
}

View file

@ -211,7 +211,7 @@ TODO rename UAV src to "UAV" so disasm_field_cb can find it easily?
<encode>
<map name="SRC2">src->srcs[1]</map>
<map name="OFF">extract_reg_uim(src->srcs[2])</map>
<map name="OFF">extract_reg_uim(src->srcs[3])</map>
<map name="SIZE">extract_reg_uim(src->srcs[4])</map>
<map name="SRC1_CONST">!!(src->srcs[0]->flags &amp; IR3_REG_CONST)</map>
</encode>
@ -386,7 +386,7 @@ TODO rename UAV src to "UAV" so disasm_field_cb can find it easily?
<encode>
<map name="SRC2">src->srcs[1]</map>
<map name="OFF">extract_reg_uim(src->srcs[2])</map>
<map name="OFF">extract_reg_uim(src->srcs[3])</map>
<map name="SRC3">src->srcs[4]</map>
<map name="SIZE">extract_reg_uim(src->srcs[5])</map>
<map name="SRC1_CONST">!!(src->srcs[0]->flags &amp; IR3_REG_CONST)</map>