mesa/src/gallium/auxiliary/pipebuffer
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
..
pb_buffer.h gallium/pb_buffer: define pb_buffer_lean without vtbl, inherit it by pb_buffer 2024-01-06 20:55:30 +00:00
pb_buffer_fenced.c treewide: Replace usage of macro DEBUG with MESA_DEBUG when possible 2024-03-22 18:22:34 +00:00
pb_buffer_fenced.h
pb_bufmgr.h treewide: replace usage of boolean to bool 2023-06-27 18:18:27 +08:00
pb_bufmgr_cache.c gallium/pb_cache: remove pb_cache_entry::buffer 2024-01-06 20:55:30 +00:00
pb_bufmgr_debug.c treewide: Replace usage of macro DEBUG with MESA_DEBUG when possible 2024-03-22 18:22:34 +00:00
pb_bufmgr_mm.c gallium/pb_buffer: define pb_buffer_lean without vtbl, inherit it by pb_buffer 2024-01-06 20:55:30 +00:00
pb_bufmgr_slab.c gallium/pb_buffer: define pb_buffer_lean without vtbl, inherit it by pb_buffer 2024-01-06 20:55:30 +00:00
pb_cache.c gallium/pb_cache: remove pb_cache_entry::buffer 2024-01-06 20:55:30 +00:00
pb_cache.h gallium/pb_cache: remove pb_cache_entry::buffer 2024-01-06 20:55:30 +00:00
pb_slab.c gallium/pb_slab: move group_index and entry_size from pb_slab_entry to pb_slab 2024-01-06 20:55:29 +00:00
pb_slab.h gallium/pb_slab: move group_index and entry_size from pb_slab_entry to pb_slab 2024-01-06 20:55:29 +00:00
pb_validate.c util: include "util/compiler.h" instead of "pipe/p_compiler.h" 2023-06-27 18:18:30 +08:00
pb_validate.h util: include "util/compiler.h" instead of "pipe/p_compiler.h" 2023-06-27 18:18:30 +08:00