afuc: Fix writing $00
authorConnor Abbott <cwabbott0@gmail.com>
Tue, 27 Jun 2023 14:22:01 +0000 (16:22 +0200)
committerMarge Bot <emma+marge@anholt.net>
Fri, 28 Jul 2023 18:41:58 +0000 (18:41 +0000)
This is valid and should do nothing. Don't make the PC overlap $00 in
the reg file, so that we can print out "writes" to $00 but they're still
discarded.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23949>

src/freedreno/afuc/emu.h

index 1ff84c7..111b44b 100644 (file)
 
 struct emu_gpr_regs {
    BITSET_DECLARE(written, EMU_NUM_GPR_REGS);
-   union {
-      uint32_t pc;
-      uint32_t val[EMU_NUM_GPR_REGS];
-   };
+   uint32_t pc;
+   uint32_t val[EMU_NUM_GPR_REGS];
 };
 
 #define EMU_NUM_CONTROL_REGS 0x1000