diff options
author | Nicolai Haehnle <[email protected]> | 2005-02-18 16:34:14 +0000 |
---|---|---|
committer | Nicolai Haehnle <[email protected]> | 2005-02-18 16:34:14 +0000 |
commit | 26d812ae00e0bb5abb23e95a36492ef59d416c16 (patch) | |
tree | 626f8d33b638d7262606362df17eddd310382112 /src/mesa/drivers/dri/r300/r300_context.h | |
parent | f448e632b60c3bb81cc3a01d92430f5e4a110327 (diff) |
Reset nr_released_bufs to 0 after the command buffer has been submitted.
Added a more verbose comment about nr_released_bufs in r300_context.h
Diffstat (limited to 'src/mesa/drivers/dri/r300/r300_context.h')
-rw-r--r-- | src/mesa/drivers/dri/r300/r300_context.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_context.h b/src/mesa/drivers/dri/r300/r300_context.h index 0c72aa06704..48822d326cf 100644 --- a/src/mesa/drivers/dri/r300/r300_context.h +++ b/src/mesa/drivers/dri/r300/r300_context.h @@ -128,7 +128,11 @@ struct r300_dma { void (*flush) (r300ContextPtr); char *buf0_address; /* start of buf[0], for index calcs */ - GLuint nr_released_bufs; /* flush after so many buffers released */ + + /* Number of "in-flight" DMA buffers, i.e. the number of buffers + * for which a DISCARD command is currently queued in the command buffer. + */ + GLuint nr_released_bufs; }; /* Texture related */ |