Atm. it is not possible to move the enums to a header file
as they do not use an identifier but directly define an
object.
Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Acked-by: Jonathan Marek <jonathan@marek.ca>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5690>
* VEC3_XYZ register and the virtual SCALAR_W register that use the same
* physical VEC4 base register do not interfere.
*/
-enum {
+enum reg_class {
REG_CLASS_VIRT_SCALAR,
REG_CLASS_VIRT_VEC2,
REG_CLASS_VIRT_VEC3,
REG_CLASS_VIRT_VEC2C,
REG_CLASS_VIRT_VEC3C,
NUM_REG_CLASSES,
-} reg_class;
+};
-enum {
+enum reg_type {
REG_TYPE_VEC4,
REG_TYPE_VIRT_VEC3_XYZ,
REG_TYPE_VIRT_VEC3_XYW,
REG_TYPE_VIRT_VEC3C_XYZ,
REG_TYPE_VIRT_VEC3C_YZW,
NUM_REG_TYPES,
-} reg_type;
+};
/* writemask when used as dest */
static const uint8_t