mesa: Use DEBUG_NAMED_VALUE_END for const struct debug_named_value

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19448>
This commit is contained in:
Yonggang Luo 2022-11-02 04:19:03 +08:00 committed by Marge Bot
parent de6f86fc44
commit b0016bc36a
5 changed files with 5 additions and 5 deletions

View file

@ -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)

View file

@ -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)

View file

@ -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)

View file

@ -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)

View file

@ -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)