Mesa (master): etnaviv: convert enums
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Jul 2 17:13:32 UTC 2020
Module: Mesa
Branch: master
Commit: ea17cbf16fa5f20a2b007276a84be831ad97a9b8
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ea17cbf16fa5f20a2b007276a84be831ad97a9b8
Author: Christian Gmeiner <christian.gmeiner at gmail.com>
Date: Tue Jun 30 11:10:23 2020 +0200
etnaviv: convert enums
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 at gmail.com>
Acked-by: Jonathan Marek <jonathan at marek.ca>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5690>
---
src/gallium/drivers/etnaviv/etnaviv_compiler_nir_emit.h | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/gallium/drivers/etnaviv/etnaviv_compiler_nir_emit.h b/src/gallium/drivers/etnaviv/etnaviv_compiler_nir_emit.h
index 7551ba38cbb..e93834584e6 100644
--- a/src/gallium/drivers/etnaviv/etnaviv_compiler_nir_emit.h
+++ b/src/gallium/drivers/etnaviv/etnaviv_compiler_nir_emit.h
@@ -158,7 +158,7 @@ const_src(struct state *state, nir_const_value *value, unsigned num_components)
* 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,
@@ -169,9 +169,9 @@ enum {
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,
@@ -195,7 +195,7 @@ enum {
REG_TYPE_VIRT_VEC3C_XYZ,
REG_TYPE_VIRT_VEC3C_YZW,
NUM_REG_TYPES,
-} reg_type;
+};
/* writemask when used as dest */
static const uint8_t
More information about the mesa-commit
mailing list