summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver McFadden <z3ro.geek@gmail.com>2007-10-03 11:18:56 +0000
committerOliver McFadden <z3ro.geek@gmail.com>2007-10-03 11:18:56 +0000
commit4b2d6d4414449938e981ed26dc46c5a7bcf1a9d8 (patch)
treed8b274375b3f0ec55bce840b37e39126930141f2
parentb288a991bdbb9a96916f72338818d87c4c799f51 (diff)
Don't need to pass global variables for IB and TX dumping.
-rw-r--r--src/revenge_dump.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/revenge_dump.c b/src/revenge_dump.c
index 5c0bee7..8a7fd1d 100644
--- a/src/revenge_dump.c
+++ b/src/revenge_dump.c
@@ -32,10 +32,10 @@ static unsigned int ib_addr = 0, ib_num = 0, ib_size = 0;
static unsigned int rb_addr = 0, rb_head = 0, rb_size = 0, rb_tail = 0;
static unsigned int tx_addr = 0, tx_width = 0, tx_height = 0;
-static void dump_ib (unsigned int ib_addr, unsigned int ib_size);
+static void dump_ib (void);
static void
-dump_tx (unsigned int tx_addr, unsigned int tx_width, unsigned int tx_height)
+dump_tx (void)
{
if (option_debug)
{
@@ -62,7 +62,7 @@ dump_reg (unsigned int key, unsigned int val)
if (key == RADEON_CP_IB_BUFSZ)
{
ib_size = val;
- dump_ib (ib_addr, ib_size);
+ dump_ib ();
ib_addr = ib_size = 0;
}
@@ -79,7 +79,7 @@ dump_reg (unsigned int key, unsigned int val)
if (key == R300_TX_OFFSET_0 + (i << 2))
{
tx_addr = (val >> R300_TXO_OFFSET_SHIFT) & R300_TXO_OFFSET_MASK;
- dump_tx (tx_addr, tx_width, tx_height);
+ dump_tx ();
tx_addr = tx_width = tx_height = 0;
}
}
@@ -214,7 +214,7 @@ dump_packets (unsigned int head, unsigned int tail, unsigned int *mem_map,
}
static void
-dump_ib (unsigned int ib_addr, unsigned int ib_size)
+dump_ib (void)
{
char buf[BUFSIZ];
unsigned int *ib_mem_map;