From: Rob Clark Date: Fri, 6 Mar 2020 16:46:43 +0000 (-0800) Subject: freedreno/ir3: convert debug bitfield to BITFIELD_BIT() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=142f2d45516132dfe577815859179f661828c32b;p=mesa.git freedreno/ir3: convert debug bitfield to BITFIELD_BIT() (Little more verbose than the kernel's BIT()) Signed-off-by: Rob Clark Part-of: --- diff --git a/src/freedreno/ir3/ir3_compiler.h b/src/freedreno/ir3/ir3_compiler.h index 2824b3fe5f4..1a370ae2068 100644 --- a/src/freedreno/ir3/ir3_compiler.h +++ b/src/freedreno/ir3/ir3_compiler.h @@ -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;