pan/bi: Use canonical register packing
This better matches the hardware behaviour and will allow us to
implement write masks down the line.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6793>
diff --git a/src/panfrost/bifrost/compiler.h b/src/panfrost/bifrost/compiler.h
index cbe5f3d..eaacf74 100644
--- a/src/panfrost/bifrost/compiler.h
+++ b/src/panfrost/bifrost/compiler.h
@@ -351,12 +351,8 @@
/* Read slots can be disabled */
bool enabled[2];
- /* Should we write FMA? what about ADD? If only a single slot is
- * enabled it is in slot 2, else ADD/FMA is 2/3 respectively */
- bool write_fma, write_add;
-
- /* Should we read with slot 3? */
- bool read_slot3;
+ /* Configuration for slots 2/3 */
+ struct bifrost_reg_ctrl_23 slot23;
/* Packed uniform/constant */
uint8_t uniform_constant;