diff options
author | Ilia Mirkin <imirkin@alum.mit.edu> | 2019-07-25 23:23:08 -0400 |
---|---|---|
committer | Ilia Mirkin <imirkin@alum.mit.edu> | 2019-07-27 18:24:11 -0400 |
commit | 23dfff0669ef351372379b517b455cee2f9bb9c7 (patch) | |
tree | c610076e92c7d3622cb104b668df5f17da3defac /src/gallium/drivers/nouveau/nvc0/nve4_compute.c | |
parent | 9f8ed5aa6783a3dabefa96fe68d0367703dec91c (diff) |
nouveau: flip DEBUG -> !NDEBUG
The meson conversion chose to change the meaning of DEBUG to "used for
debugging" to be "used for expensive things for debugging", primarily
for nir_validate. Flip things over so that we get nice things with
optimizations enabled.
While we're at it, also kill off nouveau_statebuf.h which is unused (and
has a mention of DEBUG which is how I found it).
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Diffstat (limited to 'src/gallium/drivers/nouveau/nvc0/nve4_compute.c')
-rw-r--r-- | src/gallium/drivers/nouveau/nvc0/nve4_compute.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/nouveau/nvc0/nve4_compute.c b/src/gallium/drivers/nouveau/nvc0/nve4_compute.c index 022aace73db..91c26718fbe 100644 --- a/src/gallium/drivers/nouveau/nvc0/nve4_compute.c +++ b/src/gallium/drivers/nouveau/nvc0/nve4_compute.c @@ -27,7 +27,7 @@ #include "codegen/nv50_ir_driver.h" -#ifdef DEBUG +#ifndef NDEBUG static void nve4_compute_dump_launch_desc(const struct nve4_cp_launch_desc *); static void gp100_compute_dump_launch_desc(const struct gp100_cp_launch_desc *); #endif @@ -741,7 +741,7 @@ nve4_launch_grid(struct pipe_context *pipe, const struct pipe_grid_info *info) nve4_compute_upload_input(nvc0, info); -#ifdef DEBUG +#ifndef NDEBUG if (debug_get_num_option("NV50_PROG_DEBUG", 0)) { if (nvc0->screen->compute->oclass >= GP100_COMPUTE_CLASS) gp100_compute_dump_launch_desc(desc); @@ -878,7 +878,7 @@ nve4_compute_validate_textures(struct nvc0_context *nvc0) } -#ifdef DEBUG +#ifndef NDEBUG static const char *nve4_cache_split_name(unsigned value) { switch (value) { |