From b0016bc36a7dee38873c8f1fd93a87b3f0994093 Mon Sep 17 00:00:00 2001 From: Yonggang Luo Date: Wed, 2 Nov 2022 04:19:03 +0800 Subject: [PATCH] mesa: Use DEBUG_NAMED_VALUE_END for const struct debug_named_value Signed-off-by: Yonggang Luo Reviewed-by: Eric Engestrom Part-of: --- src/broadcom/common/v3d_debug.c | 2 +- src/compiler/nir/nir.c | 2 +- src/gallium/drivers/lima/lima_screen.c | 2 +- src/gallium/drivers/vc4/vc4_screen.c | 2 +- src/gallium/frontends/d3d10umd/Debug.cpp | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/broadcom/common/v3d_debug.c b/src/broadcom/common/v3d_debug.c index b1102d4511b..254106784a7 100644 --- a/src/broadcom/common/v3d_debug.c +++ b/src/broadcom/common/v3d_debug.c @@ -98,7 +98,7 @@ static const struct debug_named_value debug_control[] = { #endif { "no_merge_jobs", V3D_DEBUG_NO_MERGE_JOBS, "Don't try to merge subpasses in the same job even if they share framebuffer configuration (v3dv only)" }, - { NULL } + DEBUG_NAMED_VALUE_END }; DEBUG_GET_ONCE_FLAGS_OPTION(v3d_debug, "V3D_DEBUG", debug_control, 0) diff --git a/src/compiler/nir/nir.c b/src/compiler/nir/nir.c index 6d2a1263e8a..3a0af67218b 100644 --- a/src/compiler/nir/nir.c +++ b/src/compiler/nir/nir.c @@ -87,7 +87,7 @@ static const struct debug_named_value nir_debug_control[] = { "Dump resulting kernel shader after each successful lowering/optimization call" }, { "print_consts", NIR_DEBUG_PRINT_CONSTS, "Print const value near each use of const SSA variable" }, - { NULL } + DEBUG_NAMED_VALUE_END }; DEBUG_GET_ONCE_FLAGS_OPTION(nir_debug, "NIR_DEBUG", nir_debug_control, 0) diff --git a/src/gallium/drivers/lima/lima_screen.c b/src/gallium/drivers/lima/lima_screen.c index b01cfe8e4ff..c52023e6f1b 100644 --- a/src/gallium/drivers/lima/lima_screen.c +++ b/src/gallium/drivers/lima/lima_screen.c @@ -596,7 +596,7 @@ static const struct debug_named_value lima_debug_options[] = { "print debug info for shader disk cache" }, { "noblit", LIMA_DEBUG_NO_BLIT, "use generic u_blitter instead of lima-specific" }, - { NULL } + DEBUG_NAMED_VALUE_END }; DEBUG_GET_ONCE_FLAGS_OPTION(lima_debug, "LIMA_DEBUG", lima_debug_options, 0) diff --git a/src/gallium/drivers/vc4/vc4_screen.c b/src/gallium/drivers/vc4/vc4_screen.c index aec151168fe..c24e7b0a0ef 100644 --- a/src/gallium/drivers/vc4/vc4_screen.c +++ b/src/gallium/drivers/vc4/vc4_screen.c @@ -69,7 +69,7 @@ static const struct debug_named_value vc4_debug_options[] = { { "dump", VC4_DEBUG_DUMP, "Write a GPU command stream trace file" }, #endif - { NULL } + DEBUG_NAMED_VALUE_END }; DEBUG_GET_ONCE_FLAGS_OPTION(vc4_debug, "VC4_DEBUG", vc4_debug_options, 0) diff --git a/src/gallium/frontends/d3d10umd/Debug.cpp b/src/gallium/frontends/d3d10umd/Debug.cpp index 2b810f41d8f..6cc1a4a9f51 100644 --- a/src/gallium/frontends/d3d10umd/Debug.cpp +++ b/src/gallium/frontends/d3d10umd/Debug.cpp @@ -12,7 +12,7 @@ static const struct debug_named_value st_debug_flags[] = { {"oldtexops", ST_DEBUG_OLD_TEX_OPS, "oldtexops"}, {"tgsi", ST_DEBUG_TGSI, "tgsi"}, - {NULL, 0, NULL}, + DEBUG_NAMED_VALUE_END }; void st_debug_parse(void)