mesa/src/intel/vulkan
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
..
grl anv: add missing generated file dep 2024-02-26 07:56:50 +00:00
i915 anv: change the vm_bind-related kmd_backend vfuncs to return VkResult 2024-03-08 23:14:09 +00:00
layers vulkan: remove unused wsi_common_entrypoints include and dep 2024-03-08 21:42:07 +00:00
tests anv: fail pool allocation when over the maximal size 2023-10-30 14:47:18 +00:00
xe anv: Set VM control to true in Xe KMD 2024-03-14 15:53:22 +00:00
anv_allocator.c anv: change the vm_bind-related kmd_backend vfuncs to return VkResult 2024-03-08 23:14:09 +00:00
anv_android.c anv: Add missing ANV_BO_ALLOC_EXTERNAL flags when calling anv_device_import_bo() 2023-11-08 01:20:42 +00:00
anv_android.h anv: refactor to use DETECT_OS_ANDROID instead of ANDROID 2024-02-01 19:29:49 +00:00
anv_android_stubs.c anv,hasvk: android ahb is not always exportable 2023-05-11 22:18:03 +00:00
anv_astc_emu.c anv: move astc_emu to use descriptors2 calls 2024-01-02 22:12:02 +00:00
anv_batch_chain.c anv: Replace the 2 sparse booleans by 1 enum 2024-03-14 15:53:22 +00:00
anv_blorp.c anv: try to keep the pipeline in GPGPU mode when buffer transfer ops 2024-03-06 20:33:12 +00:00
anv_bo_sync.c anv: Add a tracepoint for the fallback implicit sync wait path. 2023-01-12 20:21:03 +00:00
anv_cmd_buffer.c anv: fix companion command buffer initialization 2024-03-06 10:23:34 +00:00
anv_descriptor_set.c anv: track embedded sampler counts in layouts 2024-03-20 19:29:05 +00:00
anv_device.c anv: don't leak device->vma_samplers 2024-03-20 21:55:55 +00:00
anv_formats.c anv: Replace the 2 sparse booleans by 1 enum 2024-03-14 15:53:22 +00:00
anv_gem.c anv: remove some wrapping around mmap 2024-03-05 07:03:13 +00:00
anv_gem_stubs.c anv: change the vm_bind-related kmd_backend vfuncs to return VkResult 2024-03-08 23:14:09 +00:00
anv_genX.h anv: fix companion command buffer initialization 2024-03-06 10:23:34 +00:00
anv_image.c treewide: Replace usage of macro DEBUG with MESA_DEBUG when possible 2024-03-22 18:22:34 +00:00
anv_internal_kernels.c anv: delay internal shader upload to when needed 2024-03-06 09:58:53 +00:00
anv_internal_kernels.h anv: rewrite internal shaders using OpenCL 2024-02-13 00:06:45 +00:00
anv_kmd_backend.c anv: Add gem VM bind and unbind to backend 2023-03-11 17:56:01 +00:00
anv_kmd_backend.h anv: change the vm_bind-related kmd_backend vfuncs to return VkResult 2024-03-08 23:14:09 +00:00
anv_measure.c anv: Fix anv_measure_start/stop_snapshot() over copy or video engine 2024-01-09 14:28:19 +00:00
anv_measure.h anv: add a custom AcquireNextImage2KHR func 2022-02-17 22:15:23 +00:00
anv_mesh_perprim_wa.c treewide: Merge num_mesh_vertices_per_primitive and u_vertices_per_prim into mesa_vertices_per_prim 2023-10-26 09:35:04 +00:00
anv_nir.h anv: add pipeline/shader support for descriptor buffers 2024-02-29 07:05:06 +00:00
anv_nir_apply_pipeline_layout.c anv: ignore descriptor alignment for inline uniforms 2024-03-14 16:54:30 +00:00
anv_nir_compute_push_layout.c anv: add pipeline/shader support for descriptor buffers 2024-02-29 07:05:06 +00:00
anv_nir_lower_load_patch_vertices_in.c treewide: Use nir_shader_intrinsic_pass sometimes 2023-08-24 15:48:02 +00:00
anv_nir_lower_multiview.c treewide: Use nir_before/after_impl for more elaborate cases 2023-08-30 19:30:58 +00:00
anv_nir_lower_resource_intel.c anv: add pipeline/shader support for descriptor buffers 2024-02-29 07:05:06 +00:00
anv_nir_lower_ubo_loads.c treewide: Use nir_shader_intrinsic_pass sometimes 2023-08-24 15:48:02 +00:00
anv_nir_push_descriptor_analysis.c anv: add pipeline/shader support for descriptor buffers 2024-02-29 07:05:06 +00:00
anv_perf.c anv/iris: report counter symbols with debug option 2023-03-08 12:45:43 +00:00
anv_pipeline.c anv: avoid partially compiled warning with GPL 2024-03-21 16:09:54 +00:00
anv_pipeline_cache.c treewide: Remove vulkan/runtime vulkan/util prefix in include path 2024-03-05 19:05:00 +00:00
anv_private.h treewide: Replace usage of macro DEBUG with MESA_DEBUG when possible 2024-03-22 18:22:34 +00:00
anv_queue.c anv: Execute an empty batch to sync main and companion RCS batch 2023-09-07 06:39:06 +00:00
anv_rmv.c anv: initial RMV support 2024-01-23 17:24:19 +00:00
anv_rmv.h anv: initial RMV support 2024-01-23 17:24:19 +00:00
anv_sparse.c anv: Replace the 2 sparse booleans by 1 enum 2024-03-14 15:53:22 +00:00
anv_util.c anv: fix missing naming for dirty bit 2023-11-17 10:17:51 +00:00
anv_utrace.c anv: delay internal shader upload to when needed 2024-03-06 09:58:53 +00:00
anv_va.c anv: move aux-tt to general state pool 2024-02-29 07:05:06 +00:00
anv_video.c anv: add new heap/pool for descriptor buffers 2024-02-29 07:05:05 +00:00
anv_wsi.c anv: Avoid unnecessary intel_flush calls 2023-12-06 22:18:26 +00:00
genX_acceleration_structure.c anv: Call flush_pipeline_select_gpgpu() for compute engines in compute code paths 2024-03-08 14:39:09 +00:00
genX_blorp_exec.c anv: create new helper for small allocations 2024-02-29 07:05:06 +00:00
genX_cmd_buffer.c anv: 3D surfaces have fewer layers for higher miplevels 2024-03-21 18:28:27 +00:00
genX_cmd_compute.c anv: Call flush_pipeline_select_gpgpu() for compute engines in compute code paths 2024-03-08 14:39:09 +00:00
genX_cmd_draw.c anv: implement descriptor buffer binding 2024-02-29 07:05:06 +00:00
genX_cmd_draw_generated_flush.h intel: Use _brw suffix for genX headers that rely on brw 2024-02-24 00:24:32 +00:00
genX_cmd_draw_generated_indirect.h anv: delay internal shader upload to when needed 2024-03-06 09:58:53 +00:00
genX_cmd_draw_helpers.h anv: create new helper for small allocations 2024-02-29 07:05:06 +00:00
genX_cmd_video.c anv/video: fix scan order for scaling lists on H265 decoding. 2024-03-12 03:33:49 +00:00
genX_gfx_state.c iris,anv: WA 1509820217 is no impact for Xe2+ 2024-03-15 12:02:45 +00:00
genX_gpu_memcpy.c anv: fix Wa_16013994831 macros 2024-02-19 12:48:33 +00:00
genX_init_state.c anv/trtt: update GFX_TRTT_VA_RANGE for LNL 2024-03-13 01:50:35 +00:00
genX_internal_kernels.c anv: rewrite internal shaders using OpenCL 2024-02-13 00:06:45 +00:00
genX_pipeline.c anv: setup distribution granularity with Wa_14019166699 2024-03-12 09:25:32 +00:00
genX_query.c anv: delay internal shader upload to when needed 2024-03-06 09:58:53 +00:00
genX_simple_shader.c anv, blorp: Set COMPUTE_WALKER Message SIMD field 2024-03-06 10:58:27 +00:00
meson.build intel/meson: Add dependencies for brw and elk 2024-02-29 23:08:16 +00:00