util: Add function debug_get_option_cached os_get_option_cached
authorYonggang Luo <luoyonggang@gmail.com>
Sat, 5 Nov 2022 20:26:38 +0000 (04:26 +0800)
committerMarge Bot <emma+marge@anholt.net>
Fri, 16 Dec 2022 19:30:19 +0000 (19:30 +0000)
commitcdad035cfd9193776667eefb0b4fba9883914bca
tree4ae4cd360f64d776e55bd3acafe8dffddd86a1d3
parent397a5c1b2e88227173a43cb04c7ed679aad2ef66
util: Add function debug_get_option_cached os_get_option_cached

This is used to fixes DEBUG_GET_ONCE_*_OPTION macros latter

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Acked-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19554>
src/util/os_misc.c
src/util/os_misc.h
src/util/u_debug.c
src/util/u_debug.h