summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/radeon/radeon_span.c
diff options
context:
space:
mode:
authorPauli Nieminen <suokkos@gmail.com>2009-08-25 19:28:00 +0300
committerPauli Nieminen <suokkos@gmail.com>2009-08-25 19:35:41 +0300
commitc3374bf97ecd82b915fb29c7c04951e2b75d4dbc (patch)
treef00b6561f6c8e27a5058f2aae601629d7844b64d /src/mesa/drivers/dri/radeon/radeon_span.c
parent42ecb1287ebb8b6f29d300e8dcb0e9487504dabc (diff)
downloadexternal_mesa3d-c3374bf97ecd82b915fb29c7c04951e2b75d4dbc.zip
external_mesa3d-c3374bf97ecd82b915fb29c7c04951e2b75d4dbc.tar.gz
external_mesa3d-c3374bf97ecd82b915fb29c7c04951e2b75d4dbc.tar.bz2
radeon: Fix all compiler warnings.
Diffstat (limited to 'src/mesa/drivers/dri/radeon/radeon_span.c')
-rw-r--r--src/mesa/drivers/dri/radeon/radeon_span.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_span.c b/src/mesa/drivers/dri/radeon/radeon_span.c
index 5e4bf00..4e100d8 100644
--- a/src/mesa/drivers/dri/radeon/radeon_span.c
+++ b/src/mesa/drivers/dri/radeon/radeon_span.c
@@ -55,6 +55,7 @@ static void radeonSetSpanFunctions(struct radeon_renderbuffer *rrb);
/* r200 depth buffer is always tiled - this is the formula
according to the docs unless I typo'ed in it
*/
+#if defined(RADEON_COMMON_FOR_R200)
static GLubyte *r200_depth_2byte(const struct radeon_renderbuffer * rrb,
GLint x, GLint y)
{
@@ -103,6 +104,7 @@ static GLubyte *r200_depth_4byte(const struct radeon_renderbuffer * rrb,
}
return &ptr[offset];
}
+#endif
/* radeon tiling on r300-r500 has 4 states,
macro-linear/micro-linear