OSDN Git Service

replace _mesa_printf() with fprintf()
authorBrian <brian.paul@tungstengraphics.com>
Wed, 16 Jan 2008 01:26:21 +0000 (18:26 -0700)
committerBrian <brian.paul@tungstengraphics.com>
Wed, 16 Jan 2008 01:26:21 +0000 (18:26 -0700)
src/mesa/pipe/i965simple/brw_sf.c
src/mesa/pipe/i965simple/brw_sf_emit.c

index 362196a..b89b2e4 100644 (file)
@@ -175,7 +175,7 @@ static void upload_sf_prog( struct brw_context *brw )
            //int semantic = parse.FullToken.FullDeclaration.Semantic.SemanticName;
            //int semantic_index = parse.FullToken.FullDeclaration.Semantic.SemanticIndex;
 
-           _mesa_printf("fs input %d..%d interp mode %d\n", first, last, interp_mode);
+           fprintf(stderr, "fs input %d..%d interp mode %d\n", first, last, interp_mode);
            
            switch (interp_mode) {
            case TGSI_INTERPOLATE_CONSTANT:
@@ -213,9 +213,9 @@ static void upload_sf_prog( struct brw_context *brw )
    key.linear_mask |= 1;
    key.const_mask <<= 1;
 
-   _mesa_printf("key.persp_mask: %x\n", key.persp_mask);
-   _mesa_printf("key.linear_mask: %x\n", key.linear_mask);
-   _mesa_printf("key.const_mask: %x\n", key.const_mask);
+   fprintf(stderr, "key.persp_mask: %x\n", key.persp_mask);
+   fprintf(stderr, "key.linear_mask: %x\n", key.linear_mask);
+   fprintf(stderr, "key.const_mask: %x\n", key.const_mask);
 
 
 //   key.do_point_sprite = brw->attribs.Point->PointSprite;
index bc3878a..6ff5254 100644 (file)
@@ -137,8 +137,8 @@ static boolean calculate_masks( struct brw_sf_compile *c,
    unsigned persp_mask = c->key.persp_mask;
    unsigned linear_mask = c->key.linear_mask;
 
-   _mesa_printf("persp_mask: %x\n", persp_mask);
-   _mesa_printf("linear_mask: %x\n", linear_mask);
+   fprintf(stderr, "persp_mask: %x\n", persp_mask);
+   fprintf(stderr, "linear_mask: %x\n", linear_mask);
 
    *pc_persp = 0;
    *pc_linear = 0;
@@ -162,9 +162,9 @@ static boolean calculate_masks( struct brw_sf_compile *c,
         *pc_linear |= 0xf0;
    }
 
-   _mesa_printf("pc: %x\n", *pc);
-   _mesa_printf("pc_persp: %x\n", *pc_persp);
-   _mesa_printf("pc_linear: %x\n", *pc_linear);
+   fprintf(stderr, "pc: %x\n", *pc);
+   fprintf(stderr, "pc_persp: %x\n", *pc_persp);
+   fprintf(stderr, "pc_linear: %x\n", *pc_linear);
    
 
    return is_last_attr;
@@ -177,7 +177,7 @@ void brw_emit_tri_setup( struct brw_sf_compile *c )
    struct brw_compile *p = &c->func;
    unsigned i;
 
-   _mesa_printf("%s START ==============\n", __FUNCTION__);
+   fprintf(stderr, "%s START ==============\n", __FUNCTION__);
 
    c->nr_verts = 3;
    alloc_regs(c);
@@ -250,7 +250,7 @@ void brw_emit_tri_setup( struct brw_sf_compile *c )
       }
    }
 
-   _mesa_printf("%s DONE ==============\n", __FUNCTION__);
+   fprintf(stderr, "%s DONE ==============\n", __FUNCTION__);
 
 }