freedreno/ir3: convert debug bitfield to BITFIELD_BIT()
authorRob Clark <robdclark@chromium.org>
Fri, 6 Mar 2020 16:46:43 +0000 (08:46 -0800)
committerMarge Bot <eric+marge@anholt.net>
Fri, 27 Mar 2020 22:41:36 +0000 (22:41 +0000)
(Little more verbose than the kernel's BIT())

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4272>

src/freedreno/ir3/ir3_compiler.h

index 2824b3fe5f437facf29a9dd24fadaaf2f3e9f423..1a370ae206899900a104df20e9d93f9708c70410 100644 (file)
@@ -82,18 +82,18 @@ unsigned ir3_pointer_size(struct ir3_compiler *compiler)
 }
 
 enum ir3_shader_debug {
-       IR3_DBG_SHADER_VS  = 0x001,
-       IR3_DBG_SHADER_TCS = 0x002,
-       IR3_DBG_SHADER_TES = 0x004,
-       IR3_DBG_SHADER_GS  = 0x008,
-       IR3_DBG_SHADER_FS  = 0x010,
-       IR3_DBG_SHADER_CS  = 0x020,
-       IR3_DBG_DISASM     = 0x040,
-       IR3_DBG_OPTMSGS    = 0x080,
-       IR3_DBG_FORCES2EN  = 0x100,
-       IR3_DBG_NOUBOOPT   = 0x200,
-       IR3_DBG_SCHEDMSGS  = 0x400,
-       IR3_DBG_NOFP16     = 0x800,
+       IR3_DBG_SHADER_VS  = BITFIELD_BIT(0),
+       IR3_DBG_SHADER_TCS = BITFIELD_BIT(1),
+       IR3_DBG_SHADER_TES = BITFIELD_BIT(2),
+       IR3_DBG_SHADER_GS  = BITFIELD_BIT(3),
+       IR3_DBG_SHADER_FS  = BITFIELD_BIT(4),
+       IR3_DBG_SHADER_CS  = BITFIELD_BIT(5),
+       IR3_DBG_DISASM     = BITFIELD_BIT(6),
+       IR3_DBG_OPTMSGS    = BITFIELD_BIT(7),
+       IR3_DBG_FORCES2EN  = BITFIELD_BIT(8),
+       IR3_DBG_NOUBOOPT   = BITFIELD_BIT(9),
+       IR3_DBG_SCHEDMSGS  = BITFIELD_BIT(10),
+       IR3_DBG_NOFP16     = BITFIELD_BIT(11),
 };
 
 extern enum ir3_shader_debug ir3_shader_debug;