From c3374bf97ecd82b915fb29c7c04951e2b75d4dbc Mon Sep 17 00:00:00 2001 From: Pauli Nieminen Date: Tue, 25 Aug 2009 19:28:00 +0300 Subject: radeon: Fix all compiler warnings. --- src/mesa/drivers/dri/r600/r600_tex.c | 4 ++-- src/mesa/drivers/dri/r600/r700_debug.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mesa/drivers/dri/r600') diff --git a/src/mesa/drivers/dri/r600/r600_tex.c b/src/mesa/drivers/dri/r600/r600_tex.c index 6d531bf0f93..a06a1fa9214 100644 --- a/src/mesa/drivers/dri/r600/r600_tex.c +++ b/src/mesa/drivers/dri/r600/r600_tex.c @@ -167,9 +167,9 @@ static void r600SetTexDefaultState(radeonTexObjPtr t) } +#if 0 static GLuint aniso_filter(GLfloat anisotropy) { -#if 0 if (anisotropy >= 16.0) { return R300_TX_MAX_ANISO_16_TO_1; } else if (anisotropy >= 8.0) { @@ -181,9 +181,9 @@ static GLuint aniso_filter(GLfloat anisotropy) } else { return R300_TX_MAX_ANISO_1_TO_1; } -#endif return 0; } +#endif /** * Set the texture magnification and minification modes. diff --git a/src/mesa/drivers/dri/r600/r700_debug.c b/src/mesa/drivers/dri/r600/r700_debug.c index ecdb75ad482..dabd0d2c259 100644 --- a/src/mesa/drivers/dri/r600/r700_debug.c +++ b/src/mesa/drivers/dri/r600/r700_debug.c @@ -75,7 +75,7 @@ void DumpHwBinary(int type, void *addr, int size) { DEBUGP("0x%08x,\t", *pHw); if (i%4 == 3) - DEBUGP("\n", *pHw); + DEBUGP("0x%08x\n", *pHw); pHw++; } -- cgit v1.2.3