summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2013-04-12 00:22:31 +0100
committerChristoph Bumiller <[email protected]>2013-04-12 17:09:03 +0200
commite28c266682fe8ac1c6ba27a90802974c05c35dde (patch)
tree406b30eac092630bdd52dd83860469b07fbd262d /src/gallium
parent249f3d73cf5e9d22c592a619830a2f40912e6197 (diff)
nvc0: compile nve4_cache_split_name() only in debug build
As otherwise it is unused - pointed out by gcc nve4_compute.c:586:20: warning: 'nve4_cache_split_name' defined but not used [-Wunused-function] static const char *nve4_cache_split_name(unsigned value) ^ Signed-off-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/nvc0/nve4_compute.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/nvc0/nve4_compute.c b/src/gallium/drivers/nvc0/nve4_compute.c
index d7aa61ec81d..255053072e4 100644
--- a/src/gallium/drivers/nvc0/nve4_compute.c
+++ b/src/gallium/drivers/nvc0/nve4_compute.c
@@ -583,6 +583,7 @@ nve4_compute_validate_textures(struct nvc0_context *nvc0)
}
+#ifdef DEBUG
static const char *nve4_cache_split_name(unsigned value)
{
switch (value) {
@@ -594,7 +595,6 @@ static const char *nve4_cache_split_name(unsigned value)
}
}
-#ifdef DEBUG
static void
nve4_compute_dump_launch_desc(const struct nve4_cp_launch_desc *desc)
{