r600g/sb: fix debug dump code in scheduler
authorVadim Girlin <vadimgirlin@gmail.com>
Wed, 17 Jul 2013 08:10:40 +0000 (12:10 +0400)
committerVadim Girlin <vadimgirlin@gmail.com>
Wed, 17 Jul 2013 14:27:31 +0000 (18:27 +0400)
Update the stale debug code for other changes related to debug output.

Signed-off-by: Vadim Girlin <vadimgirlin@gmail.com>
src/gallium/drivers/r600/sb/sb_sched.cpp

index f99d64279f495fe8300be39b29bbb94d7bb6c6c8..f0e41f5863774fcda77c40d5cc0173b6af07eff1 100644 (file)
@@ -348,7 +348,8 @@ void alu_group_tracker::discard_slots(unsigned slot_mask,
                                     container_node &removed_nodes) {
 
        PSC_DUMP(
-               sblog << "discard_slots : packed_ops : " << packed_ops.size() << "\n";
+               sblog << "discard_slots : packed_ops : "
+                       << (unsigned)packed_ops.size() << "\n";
        );
 
        for (node_vec::iterator N, I = packed_ops.begin();
@@ -1848,9 +1849,9 @@ void literal_tracker::init_group_literals(alu_group_node* g) {
                g->literals.push_back(lt[i]);
 
                PSC_DUMP(
-                       sblog << "literal emitted: " << lt[i].f
-                               << "  0x" << std::hex << lt[i].u
-                               << std::dec << "   " << lt[i].i << "\n";
+                       sblog << "literal emitted: " << lt[i].f;
+                       sblog.print_zw_hex(lt[i].u, 8);
+                       sblog << "   " << lt[i].i << "\n";
                );
        }
 }