diff options
author | Pauli Nieminen <[email protected]> | 2009-08-21 20:10:30 +0300 |
---|---|---|
committer | Pauli Nieminen <[email protected]> | 2009-08-21 20:26:41 +0300 |
commit | 0bf4308580a88ac672f84472cb76e0236d7f8902 (patch) | |
tree | 35871f8f4ee14620aa38770f500b81a0bf535a3c /src | |
parent | d6b5464aaa93585376610ce8cace66ea3798723d (diff) |
r300: Add debug output to show how much was emited in TryDrawPrims.
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/r300/r300_draw.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_draw.c b/src/mesa/drivers/dri/r300/r300_draw.c index 03521e3fb6d..1437535760c 100644 --- a/src/mesa/drivers/dri/r300/r300_draw.c +++ b/src/mesa/drivers/dri/r300/r300_draw.c @@ -579,8 +579,8 @@ static GLuint r300PredictTryDrawPrimsSize(GLcontext *ctx, GLuint nr_prims) dwords = 2*CACHE_FLUSH_BUFSZ; dwords += PRE_EMIT_STATE_BUFSZ; dwords += (AOS_BUFSZ(vbuf->num_attribs) - + SCISSORS_BUFSZ - + FIREAOS_BUFSZ )*nr_prims; + + SCISSORS_BUFSZ + + FIREAOS_BUFSZ )*nr_prims; state_size= radeonCountEmitSize(&r300->radeon); flushed = rcommonEnsureCmdBufSpace(&r300->radeon, @@ -656,6 +656,10 @@ static GLboolean r300TryDrawPrims(GLcontext *ctx, r300FreeData(ctx); + if (RADEON_DEBUG & DEBUG_PRIMS) + fprintf(stderr, "%s: %u (%d-%d) cs begin at %d\n", + __FUNCTION__, nr_prims, min_index, max_index, r300->radeon.cmdbuf.cs->cdw ); + return GL_TRUE; } |