r300: Converted a few "if (0)" into "if (RADEON_DEBUG & DEBUG_TEXTURE)".
authorOliver McFadden <z3ro.geek@gmail.com>
Wed, 9 May 2007 21:41:03 +0000 (21:41 +0000)
committerOliver McFadden <z3ro.geek@gmail.com>
Wed, 9 May 2007 22:43:01 +0000 (22:43 +0000)
src/mesa/drivers/dri/r300/r300_tex.c
src/mesa/drivers/dri/r300/r300_texmem.c
src/mesa/drivers/dri/r300/r300_texstate.c

index 71673e857b833a6f8fbd6ea958cc03da729ccb0d..78b6dd24dac888912a34905ea80ff2629952d2cb 100644 (file)
@@ -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);
 
index 4377b7cdc7b49bb6b70e8d0512be3cafcff199a5..13178e9973ccec44bc943a546b2d5d306bbd6d81 100644 (file)
@@ -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);
index d20a61e07eed015535a117b31973a17296e48a78..7bd7cf22e898d9a998b5e10419b195828e639c2c 100644 (file)
@@ -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,