diff --git a/src/asahi/compiler/agx_print.c b/src/asahi/compiler/agx_print.c index d4bef1bb65e..e6c29c6940d 100644 --- a/src/asahi/compiler/agx_print.c +++ b/src/asahi/compiler/agx_print.c @@ -56,12 +56,6 @@ agx_print_index(agx_index index, bool is_float, FILE *fp) return; case AGX_INDEX_NORMAL: - if (index.cache) - fprintf(fp, "$"); - - if (index.discard) - fprintf(fp, "`"); - if (index.kill) fprintf(fp, "*"); @@ -87,6 +81,12 @@ agx_print_index(agx_index index, bool is_float, FILE *fp) break; case AGX_INDEX_REGISTER: + if (index.cache) + fprintf(fp, "$"); + + if (index.discard) + fprintf(fp, "^"); + agx_print_reg(index, index.value, fp); break;