Mesa (master): i965: wrap unused function in #ifndef NDEBUG
Timothy Arceri
tarceri at kemper.freedesktop.org
Tue Oct 4 23:21:31 UTC 2016
Module: Mesa
Branch: master
Commit: 4340294af8a2a21a0a613c2c7995cc61e8cb03de
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4340294af8a2a21a0a613c2c7995cc61e8cb03de
Author: Timothy Arceri <timothy.arceri at collabora.com>
Date: Tue Oct 4 11:15:06 2016 +1100
i965: wrap unused function in #ifndef NDEBUG
This function is only ever used by an assert() this fixes an
unused function warning in release builds.
Reviewed-by: Iago Toral Quiroga <itoral at igalia.com>
---
src/mesa/drivers/dri/i965/gen8_draw_upload.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/mesa/drivers/dri/i965/gen8_draw_upload.c b/src/mesa/drivers/dri/i965/gen8_draw_upload.c
index d2c7853..7196266 100644
--- a/src/mesa/drivers/dri/i965/gen8_draw_upload.c
+++ b/src/mesa/drivers/dri/i965/gen8_draw_upload.c
@@ -34,6 +34,7 @@
#include "intel_batchbuffer.h"
#include "intel_buffer_objects.h"
+#ifndef NDEBUG
static bool
is_passthru_format(uint32_t format)
{
@@ -47,6 +48,7 @@ is_passthru_format(uint32_t format)
return false;
}
}
+#endif
static void
gen8_emit_vertices(struct brw_context *brw)
More information about the mesa-commit
mailing list