mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 17:40:11 +01:00
freedreno/drm: Use DEBUG_GET_ONCE_OPTION()
In particular this uses os_get_option() so the android setprop fallback works. Signed-off-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16477>
This commit is contained in:
parent
ad537edc7c
commit
62f3e703c8
1 changed files with 3 additions and 6 deletions
|
|
@ -208,15 +208,12 @@ fd_device_version(struct fd_device *dev)
|
|||
return dev->version;
|
||||
}
|
||||
|
||||
DEBUG_GET_ONCE_BOOL_OPTION(libgl, "LIBGL_DEBUG", false)
|
||||
|
||||
bool
|
||||
fd_dbg(void)
|
||||
{
|
||||
static int dbg;
|
||||
|
||||
if (!dbg)
|
||||
dbg = getenv("LIBGL_DEBUG") ? 1 : -1;
|
||||
|
||||
return dbg == 1;
|
||||
return debug_get_option_libgl();
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue