mesa/src/glx
Yonggang Luo 1ac1c0843f treewide: Replace usage of macro DEBUG with MESA_DEBUG when possible
This is achieved by the following steps:

#ifndef DEBUG => #if !MESA_DEBUG
defined(DEBUG) => MESA_DEBUG
#ifdef DEBUG => #if MESA_DEBUG

This is done by replace in vscode

excludes
docs,*.rs,addrlib,src/imgui,*.sh,src/intel/vulkan/grl/gpu

These are safe because those files should keep DEBUG macro is already excluded;
and not directly replace DEBUG, as we have some symbols around it.

Use debug or NDEBUG instead of DEBUG in comments when proper

This for reduce the usage of DEBUG,
so it's easier migrating to MESA_DEBUG

These are found when migrating DEBUG to MESA_DEBUG,
these are all comment update, so it's safe

Replace comment /* DEBUG */ and /* !DEBUG */ with proper /* MESA_DEBUG */ or /* !MESA_DEBUG */ manually

DEBUG || !NDEBUG -> MESA_DEBUG || !NDEBUG
!DEBUG && NDEBUG -> !(MESA_DEBUG || !NDEBUG)

Replace the DEBUG present in comment with proper new MESA_DEBUG manually

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Acked-by: David Heidelberg <david.heidelberg@collabora.com>
Reviewed-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28092>
2024-03-22 18:22:34 +00:00
..
apple glx: fix typos 2023-04-26 23:52:21 +00:00
tests glx: fix typos 2023-04-26 23:52:21 +00:00
windows treewide: Replace the usage of TRUE/FALSE with true/false 2023-06-27 18:18:28 +08:00
applegl_glx.c glx: Clean up some funny business from context bind/unbind 2023-01-13 19:59:26 +00:00
clientattrib.c apple: Extended Apple feature support using GLX_USE_APPLE. 2024-03-18 18:06:45 +00:00
clientinfo.c glx: fix typos 2023-04-26 23:52:21 +00:00
compsize.c glx: Replace FreeB 2.0 text with SPDX-License-Identifier: SGI-B-2.0 2023-01-03 23:36:26 +00:00
create_context.c glx: fix dead code when gc var cannot be null due to earlier check 2023-07-25 08:55:56 +00:00
dri2.c apple: Extended Apple feature support using GLX_USE_APPLE. 2024-03-18 18:06:45 +00:00
dri2.h gallium/dri: Switch xf86drm.h for util/libdrm.h to allow for the no-op shim to be used. 2024-03-15 10:50:12 +00:00
dri2_glx.c apple: Extended Apple feature support using GLX_USE_APPLE. 2024-03-18 18:06:45 +00:00
dri2_priv.h mesa/st, dri2, wgl, glx: Restore flush_objects interop backward compat 2023-11-21 23:15:32 +00:00
dri3_glx.c glx/dri3: handle zink fallback if loader picks it. 2024-02-21 11:16:22 +10:00
dri3_priv.h mesa/st, dri2, wgl, glx: Restore flush_objects interop backward compat 2023-11-21 23:15:32 +00:00
dri_common.c apple: Extended Apple feature support using GLX_USE_APPLE. 2024-03-18 18:06:45 +00:00
dri_common.h glx/dri: Use X/GLX error codes for our create_context_attribs 2023-04-06 21:29:54 +00:00
dri_common_interop.c apple: Extended Apple feature support using GLX_USE_APPLE. 2024-03-18 18:06:45 +00:00
dri_common_query_renderer.c apple: Extended Apple feature support using GLX_USE_APPLE. 2024-03-18 18:06:45 +00:00
drisw_glx.c apple: Extended Apple feature support using GLX_USE_APPLE. 2024-03-18 18:06:45 +00:00
drisw_priv.h glx: only print zink failure-to-load messages if explicitly requested 2024-02-29 13:13:09 +00:00
driwindows_glx.c glx: Clean up some funny business from context bind/unbind 2023-01-13 19:59:26 +00:00
eval.c glx: Replace FreeB 2.0 text with SPDX-License-Identifier: SGI-B-2.0 2023-01-03 23:36:26 +00:00
g_glxglvnddispatchfuncs.c mesa/st, dri2, wgl, glx: Restore flush_objects interop backward compat 2023-11-21 23:15:32 +00:00
g_glxglvnddispatchindices.h glx: Export the MESA GL Interop functions through glXGetProcAddress 2023-08-19 01:08:30 +00:00
glx_error.c
glx_error.h
glx_pbuffer.c apple: Extended Apple feature support using GLX_USE_APPLE. 2024-03-18 18:06:45 +00:00
glx_query.c
glxclient.h apple: Extended Apple feature support using GLX_USE_APPLE. 2024-03-18 18:06:45 +00:00
glxcmds.c apple: Extended Apple feature support using GLX_USE_APPLE. 2024-03-18 18:06:45 +00:00
glxconfig.c glx: Delete support for GLX_OML_swap_method. 2023-10-20 10:03:43 +00:00
glxconfig.h glx: Delete support for GLX_OML_swap_method. 2023-10-20 10:03:43 +00:00
glxcurrent.c glx: add fail check for current context in another thread 2023-04-26 00:20:08 +00:00
glxext.c apple: Extended Apple feature support using GLX_USE_APPLE. 2024-03-18 18:06:45 +00:00
glxextensions.c glx: Delete support for GLX_OML_swap_method. 2023-10-20 10:03:43 +00:00
glxextensions.h glx: Delete support for GLX_OML_swap_method. 2023-10-20 10:03:43 +00:00
glxglvnd.c
glxglvnd.h
glxglvnddispatchfuncs.h
glxhash.c
glxhash.h
indirect_glx.c apple: Extended Apple feature support using GLX_USE_APPLE. 2024-03-18 18:06:45 +00:00
indirect_init.h
indirect_texture_compression.c
indirect_transpose_matrix.c
indirect_vertex_array.c glx: fix typos 2023-04-26 23:52:21 +00:00
indirect_vertex_array.h
indirect_vertex_array_priv.h glx: fix typos 2023-04-26 23:52:21 +00:00
indirect_vertex_program.c
indirect_window_pos.c
meson.build meson: relaxed some meson restrictions on MacOS/Apple allowing for wider build support. 2024-03-18 18:06:45 +00:00
packrender.h glx: Replace FreeB 2.0 text with SPDX-License-Identifier: SGI-B-2.0 2023-01-03 23:36:26 +00:00
packsingle.h glx: Replace FreeB 2.0 text with SPDX-License-Identifier: SGI-B-2.0 2023-01-03 23:36:26 +00:00
pixel.c glx: fix typos 2023-04-26 23:52:21 +00:00
pixelstore.c glx: Replace FreeB 2.0 text with SPDX-License-Identifier: SGI-B-2.0 2023-01-03 23:36:26 +00:00
query_renderer.c
render2.c apple: Extended Apple feature support using GLX_USE_APPLE. 2024-03-18 18:06:45 +00:00
renderpix.c glx: Replace FreeB 2.0 text with SPDX-License-Identifier: SGI-B-2.0 2023-01-03 23:36:26 +00:00
single2.c glx: Replace FreeB 2.0 text with SPDX-License-Identifier: SGI-B-2.0 2023-01-03 23:36:26 +00:00
singlepix.c glx: Replace FreeB 2.0 text with SPDX-License-Identifier: SGI-B-2.0 2023-01-03 23:36:26 +00:00
vertarr.c apple: Extended Apple feature support using GLX_USE_APPLE. 2024-03-18 18:06:45 +00:00
xfont.c treewide: Replace usage of macro DEBUG with MESA_DEBUG when possible 2024-03-22 18:22:34 +00:00