summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver McFadden <z3ro.geek@gmail.com>2007-05-09 21:41:03 +0000
committerOliver McFadden <z3ro.geek@gmail.com>2007-05-09 22:43:01 +0000
commit0dcea4bf8eeddf5d1f3b40c6ba5eedec298b040c (patch)
tree8e17960a382812986e797107f23e471cc7baa876
parent16c503f39a05726f3e994e42cb1c03e0a308b80d (diff)
r300: Converted a few "if (0)" into "if (RADEON_DEBUG & DEBUG_TEXTURE)".
-rw-r--r--src/mesa/drivers/dri/r300/r300_tex.c4
-rw-r--r--src/mesa/drivers/dri/r300/r300_texmem.c2
-rw-r--r--src/mesa/drivers/dri/r300/r300_texstate.c4
3 files changed, 5 insertions, 5 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_tex.c b/src/mesa/drivers/dri/r300/r300_tex.c
index 71673e857b..78b6dd24da 100644
--- a/src/mesa/drivers/dri/r300/r300_tex.c
+++ b/src/mesa/drivers/dri/r300/r300_tex.c
@@ -510,7 +510,7 @@ r300ValidateClientStorage(GLcontext * ctx, GLenum target,
{
r300ContextPtr rmesa = R300_CONTEXT(ctx);
- if (0)
+ if (RADEON_DEBUG & DEBUG_TEXTURE)
fprintf(stderr, "intformat %s format %s type %s\n",
_mesa_lookup_enum_by_nr(internalFormat),
_mesa_lookup_enum_by_nr(format),
@@ -567,7 +567,7 @@ r300ValidateClientStorage(GLcontext * ctx, GLenum target,
GLint srcRowStride = _mesa_image_row_stride(packing, srcWidth,
format, type);
- if (0)
+ if (RADEON_DEBUG & DEBUG_TEXTURE)
fprintf(stderr, "%s: srcRowStride %d/%x\n",
__FUNCTION__, srcRowStride, srcRowStride);
diff --git a/src/mesa/drivers/dri/r300/r300_texmem.c b/src/mesa/drivers/dri/r300/r300_texmem.c
index 4377b7cdc7..13178e9973 100644
--- a/src/mesa/drivers/dri/r300/r300_texmem.c
+++ b/src/mesa/drivers/dri/r300/r300_texmem.c
@@ -255,7 +255,7 @@ static void r300UploadRectSubImage(r300ContextPtr rmesa,
/* Copy texdata to dma:
*/
- if (0)
+ if (RADEON_DEBUG & DEBUG_TEXTURE)
fprintf(stderr,
"%s: src_pitch %d dst_pitch %d\n",
__FUNCTION__, src_pitch, dstPitch);
diff --git a/src/mesa/drivers/dri/r300/r300_texstate.c b/src/mesa/drivers/dri/r300/r300_texstate.c
index d20a61e07e..7bd7cf22e8 100644
--- a/src/mesa/drivers/dri/r300/r300_texstate.c
+++ b/src/mesa/drivers/dri/r300/r300_texstate.c
@@ -296,7 +296,7 @@ static void r300SetTexImages(r300ContextPtr rmesa,
}
assert(size > 0);
- if (0)
+ if (RADEON_DEBUG & DEBUG_TEXTURE)
fprintf(stderr, "w=%d h=%d d=%d tb=%d intFormat=%d\n",
texImage->Width, texImage->Height,
texImage->Depth,
@@ -325,7 +325,7 @@ static void r300SetTexImages(r300ContextPtr rmesa,
t->image[0][i].height = size / t->image[0][i].width;
}
- if (0)
+ if (RADEON_DEBUG & DEBUG_TEXTURE)
fprintf(stderr,
"level %d: %dx%d x=%d y=%d w=%d h=%d size=%d at %d\n",
i, texImage->Width, texImage->Height,