From f77e9d8c4aa8d71ffef78788b959e7efbe6cec94 Mon Sep 17 00:00:00 2001 From: Danylo Piliaiev Date: Mon, 1 Jul 2024 19:26:05 +0200 Subject: [PATCH] ir3: Print bindless samp/tex ids for tex prefetch @tex(r0.z) src=4, bindless=1, samp=4, tex=3, wrmask=0x7, opc=sam @tex(r1.y) src=4, bindless=1, samp=2, tex=1, wrmask=0xf, opc=sam Signed-off-by: Danylo Piliaiev Part-of: --- src/freedreno/ir3/ir3_shader.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/freedreno/ir3/ir3_shader.c b/src/freedreno/ir3/ir3_shader.c index bd8e126dc19..80e99a87be1 100644 --- a/src/freedreno/ir3/ir3_shader.c +++ b/src/freedreno/ir3/ir3_shader.c @@ -824,11 +824,12 @@ ir3_shader_disasm(struct ir3_shader_variant *so, uint32_t *bin, FILE *out) for (i = 0; i < so->num_sampler_prefetch; i++) { const struct ir3_sampler_prefetch *fetch = &so->sampler_prefetch[i]; fprintf(out, - "@tex(%sr%d.%c)\tsrc=%u, samp=%u, tex=%u, wrmask=0x%x, opc=%s\n", + "@tex(%sr%d.%c)\tsrc=%u, bindless=%u, samp=%u, tex=%u, wrmask=0x%x, opc=%s\n", fetch->half_precision ? "h" : "", fetch->dst >> 2, - "xyzw"[fetch->dst & 0x3], fetch -> src, fetch -> samp_id, - fetch -> tex_id, fetch -> wrmask, - disasm_a3xx_instr_name(fetch->tex_opc)); + "xyzw"[fetch->dst & 0x3], fetch->src, fetch->bindless, + fetch->bindless ? fetch->samp_bindless_id : fetch->samp_id, + fetch->bindless ? fetch->tex_bindless_id : fetch->tex_id, + fetch->wrmask, disasm_a3xx_instr_name(fetch->tex_opc)); } const struct ir3_const_state *const_state = ir3_const_state(so);