Reduce noiseness of the driver.
authorVladimir Dergachev <volodya@freedesktop.org>
Tue, 1 Feb 2005 15:46:23 +0000 (15:46 +0000)
committerVladimir Dergachev <volodya@freedesktop.org>
Tue, 1 Feb 2005 15:46:23 +0000 (15:46 +0000)
src/mesa/drivers/dri/r300/r300_context.h
src/mesa/drivers/dri/r300/r300_ioctl.c
src/mesa/drivers/dri/r300/r300_state.c
src/mesa/drivers/dri/r300/r300_texstate.c
src/mesa/drivers/dri/r300/radeon_span.c

index 8c8a8bfc71e61183551951dec63a625dd48f1f17..47b3c8374d91f3dd3ad64ca50f9b9a516821795a 100644 (file)
@@ -59,7 +59,7 @@ typedef struct r300_context *r300ContextPtr;
 #define WARN_ONCE(a)   { \
        static int warn=1; \
        if(warn){ \
-               fprintf(stderr, (a)); \
+               fprintf(stderr, "***WARN_ONCE*** " a); \
                warn=0;\
                } \
        }
index b0222a129d7cf998003258de8ee82b1768ccb52e..ee5fb07fae0d45c7e78efb81b6aead8975f524c5 100644 (file)
@@ -69,7 +69,7 @@ static void r300ClearBuffer(r300ContextPtr r300, int flags, int buffer)
        drm_r300_cmd_header_t* cmd2;
        LOCAL_VARS;
 
-       if (1 || RADEON_DEBUG & DEBUG_IOCTL)
+       if (RADEON_DEBUG & DEBUG_IOCTL)
                fprintf(stderr, "%s: %s buffer (%i,%i %ix%i)\n",
                        __FUNCTION__, buffer ? "back" : "front",
                        dPriv->x, dPriv->y, dPriv->w, dPriv->h);
index 3c7f0367b4971db36ec294fb6bb706ebca765d09..c75f2154e1a92b93767f271bde406d26c4a11c66 100644 (file)
@@ -1111,14 +1111,14 @@ void r300_setup_textures(GLcontext *ctx)
        for(i=0;i<mtu;i++){
                if(ctx->Texture.Unit[i].Enabled){
                        t=r300->state.texture.unit[i].texobj;
-                       fprintf(stderr, "format=%08x\n", r300->state.texture.unit[i].format);
+                       //fprintf(stderr, "format=%08x\n", r300->state.texture.unit[i].format);
                        r300->state.texture.tc_count++;
                        if(t==NULL){
                                fprintf(stderr, "Texture unit %d enabled, but corresponding texobj is NULL, using default object.\n", i);
                                //exit(-1);
                                t=&default_tex_obj;
                                }
-                       fprintf(stderr, "t->format=%08x\n", t->format);
+                       //fprintf(stderr, "t->format=%08x\n", t->format);
                        if (RADEON_DEBUG & DEBUG_STATE)
                                fprintf(stderr, "Activating texture unit %d\n", i);
                        max_texture_unit=i;
index 2351d7777e298babdebfc0a2836d1b080672ef97..09864ccad8e99c02bfef29a8f9270fa6147c05dd 100644 (file)
@@ -767,8 +767,10 @@ static GLboolean r300UpdateTextureEnv(GLcontext * ctx, int unit)
                 */
        }
 
+       #if 0
        fprintf(stderr, "color_combine=%08x alpha_combine=%08x color_scale=%08x alpha_scale=%08x\n", 
                color_combine, alpha_combine, color_scale, alpha_scale);
+       #endif
        
        #if 0
        if (rmesa->hw.pix[unit].cmd[PIX_PP_TXCBLEND] != color_combine ||
index efc5a01c37b433bff6882f99d4d9ae64103d7735..5bb7f832e115e0aa4379eb40a3c16e9149d8aa39 100644 (file)
@@ -352,8 +352,10 @@ static void radeonSetBuffer(GLcontext * ctx,
        if (radeon->doPageFlip && radeon->sarea->pfCurrentPage == 1)
                buffer ^= 1;
 
+       #if 0
        fprintf(stderr, "%s: using %s buffer\n", __FUNCTION__,
                buffer ? "back" : "front");
+       #endif
 
        if (buffer) {
                radeon->state.pixel.readOffset =