aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2016-10-04 11:15:06 +1100
committerTimothy Arceri <[email protected]>2016-10-05 10:13:58 +1100
commit4340294af8a2a21a0a613c2c7995cc61e8cb03de (patch)
tree22fa1c6366a1718d8afcc2e7867b15699aea89d5 /src/mesa/drivers/dri/i965
parentc9f176790346558fa48cfbcf6e2d5e140eb78fd7 (diff)
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 <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965')
-rw-r--r--src/mesa/drivers/dri/i965/gen8_draw_upload.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/gen8_draw_upload.c b/src/mesa/drivers/dri/i965/gen8_draw_upload.c
index d2c7853f829..71962664fd6 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)