mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 20:58:04 +02:00
Add unit tests for debug_get_bool_option and debug_get_num_option Merge env_var_as_boolean and debug_get_bool_option and implement env_var_as_boolean with debug_get_bool_option in a stricter side. Merge env_var_as_unsigned and debug_get_num_option and implement env_var_as_unsigned with debug_get_num_option in a stricter side. Move debug_control, parse_debug_string, parse_enable_string, comma_separated_list_contains from debug.* to u_debug.* Main changes: os_get_option() is used instead of getenv() for env_var_as_boolean and env_var_as_unsigned; also debug_get_bool_option() has logic like "true" always if not "false"; env_var_as_boolean() now uses different logic: if env variable is neither "true" nor "false" returns the default value, we left the second one; but if you want the behavior to be the same as in the old version of debug_get_bool_option() use dfault=true Signed-off-by: Illia Abernikhin <illia.abernikhin@globallogic.com> Reviewed-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19336> |
||
|---|---|---|
| .. | ||
| drirc_configdir | ||
| drirc_home | ||
| format | ||
| hash_table | ||
| vma | ||
| bitset_test.cpp | ||
| blob_test.cpp | ||
| cache_test.cpp | ||
| dag_test.cpp | ||
| fast_idiv_by_const_test.cpp | ||
| fast_urem_by_const_test.cpp | ||
| half_float_test.cpp | ||
| int_min_max.cpp | ||
| mesa-sha1_test.cpp | ||
| process_test.c | ||
| rb_tree_test.cpp | ||
| register_allocate_test.cpp | ||
| roundeven_test.cpp | ||
| set_test.cpp | ||
| sparse_array_test.cpp | ||
| string_buffer_test.cpp | ||
| timespec_test.cpp | ||
| u_atomic_test.cpp | ||
| u_call_once_test.cpp | ||
| u_debug_stack_test.cpp | ||
| u_debug_test.cpp | ||
| u_printf_test.cpp | ||
| u_qsort_test.cpp | ||
| vector_test.cpp | ||
| xmlconfig.cpp | ||