agx: print register vectors

easier dbg

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27616>
This commit is contained in:
Alyssa Rosenzweig
2024-01-26 14:31:13 -04:00
committed by Marge Bot
parent 282f2ac1aa
commit 06eb552baa

View File

@@ -68,6 +68,15 @@ agx_print_index(agx_index index, bool is_float, FILE *fp)
case AGX_INDEX_REGISTER:
agx_print_sized('r', index.value, index.size, fp);
if (agx_channels(index) > 1) {
unsigned last = index.value + agx_size_align_16(index.size) *
(agx_channels(index) - 1);
fprintf(fp, "...");
agx_print_sized('r', last, index.size, fp);
}
break;
default: