Permalink
Browse files

Silence some debugging information.

  • Loading branch information...
1 parent fedb15d commit c64332aef7c9b9f342798fd8a78f219ed697b768 @gzorin committed Aug 3, 2012
Showing with 3 additions and 8 deletions.
  1. +3 −3 src/library/compiler_translate.c
  2. +0 −5 src/nvfx/nvfx_vertprog.c
@@ -78,7 +78,7 @@ compiler_context__translate_vp(struct gl_context * mesa_ctx, struct gl_shader_pr
struct tgsi_shader_info vp_info;
tgsi_scan_shader(tgsi.tokens,&vp_info);
- tgsi_dump(tgsi.tokens,0);
+ //tgsi_dump(tgsi.tokens,0);
nvfx_vp = nvfx_vertprog_translate((struct nvfx_context *)(st_context(mesa_ctx) -> pipe),&tgsi,&vp_info);
@@ -384,7 +384,7 @@ compiler_context__translate_fp(struct gl_context * mesa_ctx,struct gl_shader_pro
goto end;
}
- tgsi_dump(stfp->tgsi.tokens,0);
+ //tgsi_dump(stfp->tgsi.tokens,0);
}
struct nvfx_pipe_fragment_program fp;
@@ -642,7 +642,7 @@ compiler_context__translate_stream_vp_fp(struct gl_context * mesa_ctx,struct gl_
struct tgsi_token * streamvp_tokens = tgsi_alloc_tokens(streamvp_tokens_count);
tgsi_transform_shader(vp_tokens,streamvp_tokens,streamvp_tokens_count,&vp2streamvp_ctx.base);
rsxgl_debug_printf("result:\n");
- tgsi_dump(streamvp_tokens,0);
+ //tgsi_dump(streamvp_tokens,0);
// translate to nvfx:
{
View
@@ -358,7 +358,6 @@ tgsi_src(struct nvfx_vpc *vpc, const struct tgsi_full_src_register *fsrc) {
switch (fsrc->Register.File) {
case TGSI_FILE_INPUT:
- rsxgl_debug_printf("reading from input: %u\n",fsrc->Register.Index);
src.reg = nvfx_reg(NVFXSR_INPUT, fsrc->Register.Index);
break;
case TGSI_FILE_CONSTANT:
@@ -415,7 +414,6 @@ tgsi_dst(struct nvfx_vpc *vpc, const struct tgsi_full_dst_register *fdst) {
break;
case TGSI_FILE_OUTPUT:
dst = vpc->r_result[fdst->Register.Index];
-rsxgl_debug_printf("writing to output: %u\n",fdst->Register.Index);
break;
case TGSI_FILE_TEMPORARY:
dst = vpc->r_temp[fdst->Register.Index];
@@ -825,7 +823,6 @@ nvfx_vertprog_parse_decl_output(struct nvfx_context* nvfx, struct nvfx_vpc *vpc,
case TGSI_SEMANTIC_POSITION:
hw = NVFX_VP(INST_DEST_POS);
vpc->hpos_idx = idx;
- rsxgl_debug_printf("hpos_idx is: %u\n",vpc->hpos_idx);
break;
case TGSI_SEMANTIC_COLOR:
if (fdec->Semantic.Index == 0) {
@@ -873,8 +870,6 @@ nvfx_vertprog_parse_decl_output(struct nvfx_context* nvfx, struct nvfx_vpc *vpc,
return FALSE;
}
- rsxgl_debug_printf("output reg %u is: %i (%x)\n",idx,hw,hw);
-
vpc->r_result[idx] = nvfx_reg(NVFXSR_OUTPUT, hw);
return TRUE;
}

0 comments on commit c64332a

Please sign in to comment.