Reduce noiseness of the driver.

This commit is contained in:
Vladimir Dergachev 2005-02-01 15:46:23 +00:00
parent 88e155e353
commit 6d419feec7
5 changed files with 8 additions and 4 deletions

View 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;\
} \
}

View 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);

View 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;

View 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 ||

View 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 =