Browse Source

replace _mesa_printf() with fprintf()

tags/mesa_20090313
Brian 17 years ago
parent
commit
5a185ca09a
2 changed files with 11 additions and 11 deletions
  1. 4
    4
      src/mesa/pipe/i965simple/brw_sf.c
  2. 7
    7
      src/mesa/pipe/i965simple/brw_sf_emit.c

+ 4
- 4
src/mesa/pipe/i965simple/brw_sf.c View 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;

+ 7
- 7
src/mesa/pipe/i965simple/brw_sf_emit.c View 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__);

}


Loading…
Cancel
Save