Change a few frequented uses of DEBUG to !NDEBUG
authorMarek Olšák <marek.olsak@amd.com>
Fri, 10 May 2019 01:04:23 +0000 (21:04 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 30 May 2019 01:13:35 +0000 (21:13 -0400)
commitb5697c311b6f29dee40b96c48bad3279e3667c1e
treed0708cd5249ec8d3535bda8134f91ea79af2ffde
parent0f1b68ebeeee196ced42d8ac66d231338b507bad
Change a few frequented uses of DEBUG to !NDEBUG

debugoptimized builds don't define NDEBUG, but they also don't define
DEBUG. We want to enable cheap debug code for these builds.
I only chose those occurences that I care about.

Reviewed-by: Mathias Fröhlich <Mathias.Froehlich@web.de>
18 files changed:
src/gallium/auxiliary/tgsi/tgsi_ureg.c
src/gallium/drivers/radeonsi/si_descriptors.c
src/gallium/drivers/radeonsi/si_pipe.h
src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c
src/gallium/drivers/radeonsi/si_state.c
src/mesa/main/context.c
src/mesa/main/debug.c
src/mesa/main/errors.c
src/mesa/main/feedback.c
src/mesa/main/formats.c
src/mesa/main/imports.c
src/mesa/main/mtypes.h
src/mesa/main/shaderapi.c
src/mesa/state_tracker/st_atom_framebuffer.c
src/mesa/state_tracker/st_format.c
src/mesa/vbo/vbo_exec.h
src/mesa/vbo/vbo_exec_api.c
src/util/slab.c