diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2009-06-03 14:29:06 -0400 |
---|---|---|
committer | Alex Deucher <alexdeucher@gmail.com> | 2009-06-03 14:29:06 -0400 |
commit | ada26c40593d1bce972c445aa22f26811f6e6223 (patch) | |
tree | 112bfe0b12faf2fef1c2981a53f2ba832ac4619e /src/mesa/drivers | |
parent | f5d479d7f50abf5d88a388ee80af3222c8bb7e6f (diff) |
dump command buffer
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/r600/r600_cmdbuf.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r600/r600_cmdbuf.c b/src/mesa/drivers/dri/r600/r600_cmdbuf.c index 72a2ac1a8f..5edc42b532 100644 --- a/src/mesa/drivers/dri/r600/r600_cmdbuf.c +++ b/src/mesa/drivers/dri/r600/r600_cmdbuf.c @@ -350,6 +350,17 @@ static int r600_cs_set_age(struct radeon_cs *cs) /* -------------- */ return 0; } +static void dump_cmdbuf(struct radeon_cs *cs) +{ + int i; + fprintf(stderr,"--start--\n"); + for (i = 0; i < cs->cdw; i++){ + fprintf(stderr,"0x%08x\n", cs->packets[i]); + } + fprintf(stderr,"--end--\n"); + +} + static int r600_cs_emit(struct radeon_cs *cs) { struct r600_cs_manager_legacy *csm = (struct r600_cs_manager_legacy*)cs->csm; @@ -391,7 +402,7 @@ static int r600_cs_emit(struct radeon_cs *cs) /* cs_cmd.cs_id = 0; */ cs_cmd.chunks = (uint64_t)(unsigned long)chunk_ptrs; - /* dump_cmdbuf(cs); */ + dump_cmdbuf(cs); do { |