diff options
| author | Danylo Piliaiev <dpiliaiev@igalia.com> | 2024-07-01 19:26:05 +0200 |
|---|---|---|
| committer | Marge Bot <emma+marge@anholt.net> | 2024-07-02 08:16:02 +0000 |
| commit | f77e9d8c4aa8d71ffef78788b959e7efbe6cec94 (patch) | |
| tree | b248016fbc01422f43fd992a2be67138a97a6e35 | |
| parent | c157e8991e10958e7e23f72207a9f54bac8160ca (diff) | |
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 <dpiliaiev@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29989>
| -rw-r--r-- | src/freedreno/ir3/ir3_shader.c | 9 |
1 files 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); |