diff options
author | Christoph Bumiller <e0425955@student.tuwien.ac.at> | 2010-08-31 13:17:07 +0200 |
---|---|---|
committer | Christoph Bumiller <e0425955@student.tuwien.ac.at> | 2010-09-01 18:02:50 +0200 |
commit | d90502b2b468732e2a42985580bbbe9d9fdfd14e (patch) | |
tree | 05577128b9731570382f054c846d5b231061a817 /src/gallium/drivers/nv50/nv50_tgsi_to_nc.c | |
parent | 3844c365947082550565accefd996c10fbb15cc4 (diff) |
nv50: turn off verbose debug output by default
Diffstat (limited to 'src/gallium/drivers/nv50/nv50_tgsi_to_nc.c')
-rw-r--r-- | src/gallium/drivers/nv50/nv50_tgsi_to_nc.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/gallium/drivers/nv50/nv50_tgsi_to_nc.c b/src/gallium/drivers/nv50/nv50_tgsi_to_nc.c index 7b2ccef704..115b5df939 100644 --- a/src/gallium/drivers/nv50/nv50_tgsi_to_nc.c +++ b/src/gallium/drivers/nv50/nv50_tgsi_to_nc.c @@ -20,6 +20,8 @@ * SOFTWARE. */ +/* #define NV50_TGSI2NC_DEBUG */ + /* XXX: need to clean this up so we get the typecasting right more naturally */ #include <unistd.h> @@ -1015,10 +1017,8 @@ emit_fetch(struct bld_context *bld, const struct tgsi_full_instruction *insn, abort(); break; } - if (!res) { - debug_printf("WARNING: undefined source value in TGSI instruction\n"); - return bld_load_imm_u32(bld, 0); - } + if (!res) + return bld_undef(bld, NV_FILE_GPR); switch (tgsi_util_get_full_src_register_sign_mode(src, chan)) { case TGSI_UTIL_SIGN_KEEP: @@ -1234,7 +1234,9 @@ bld_instruction(struct bld_context *bld, int c; uint opcode = translate_opcode(insn->Instruction.Opcode); - tgsi_dump_instruction(insn, 1); +#ifdef NV50_TGSI2NC_DEBUG + debug_printf("bld_instruction:"); tgsi_dump_instruction(insn, 1); +#endif switch (insn->Instruction.Opcode) { case TGSI_OPCODE_ADD: |