aco: improve printing of sgpr_null
authorRhys Perry <pendingchaos02@gmail.com>
Thu, 21 Jul 2022 14:13:46 +0000 (15:13 +0100)
committerMarge Bot <emma+marge@anholt.net>
Fri, 30 Sep 2022 11:44:38 +0000 (11:44 +0000)
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18270>

src/amd/compiler/aco_print_ir.cpp

index b90ac06..1ebe9a3 100644 (file)
@@ -111,6 +111,8 @@ print_physReg(PhysReg reg, unsigned bytes, FILE* output, unsigned flags)
       fprintf(output, "scc");
    } else if (reg == 126) {
       fprintf(output, "exec");
+   } else if (reg == 125) {
+      fprintf(output, "null");
    } else {
       bool is_vgpr = reg / 256;
       unsigned r = reg % 256;