diff options
author | Corbin Simpson <MostAwesomeDude@gmail.com> | 2009-05-17 09:39:06 -0700 |
---|---|---|
committer | Corbin Simpson <MostAwesomeDude@gmail.com> | 2009-05-17 09:39:06 -0700 |
commit | 764bf9501adea0f3dbe8d7c718b22dfb067fbbfa (patch) | |
tree | 2cb0659cdc0587fa3064220e28ab6afc777979b2 /src/gallium/drivers/r300/r300_debug.c | |
parent | 08ec7e0d329a72433b427e8167b2c3442d1f53b4 (diff) | |
download | external_mesa3d-764bf9501adea0f3dbe8d7c718b22dfb067fbbfa.zip external_mesa3d-764bf9501adea0f3dbe8d7c718b22dfb067fbbfa.tar.gz external_mesa3d-764bf9501adea0f3dbe8d7c718b22dfb067fbbfa.tar.bz2 |
r300-gallium: vs: Dupe tokens, better debug, count spurious insts.
Diffstat (limited to 'src/gallium/drivers/r300/r300_debug.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_debug.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gallium/drivers/r300/r300_debug.c b/src/gallium/drivers/r300/r300_debug.c index 1ff7217..ffc93eb 100644 --- a/src/gallium/drivers/r300/r300_debug.c +++ b/src/gallium/drivers/r300/r300_debug.c @@ -152,10 +152,12 @@ void r500_fs_dump(struct r500_fragment_shader* fs) static void r300_vs_op_dump(uint32_t op) { - if (op & 0x81) { - debug_printf("PVS_MACRO_OP_2CLK_M2X_ADD\n"); - } else if (op & 0x80) { - debug_printf(" PVS_MACRO_OP_2CLK_MADD\n"); + if (op & 0x80) { + if (op & 0x1) { + debug_printf("PVS_MACRO_OP_2CLK_M2X_ADD\n"); + } else { + debug_printf(" PVS_MACRO_OP_2CLK_MADD\n"); + } } else if (op & 0x40) { debug_printf("%s\n", r300_vs_me_ops[op & 0x1f]); } else { |