diff options
author | Pauli Nieminen <suokkos@gmail.com> | 2009-08-19 14:47:25 +0300 |
---|---|---|
committer | Alex Deucher <alexdeucher@gmail.com> | 2009-08-19 11:59:34 -0400 |
commit | 66e019c6c91e6ae3fb9e26a12d7b7782a0095a8d (patch) | |
tree | f39ffdc7a8d7b54bbf21829381373b1aba849857 /src/mesa/drivers/dri/radeon/radeon_common_context.h | |
parent | d551b3ac88bffae7e0170ca3f0993c8dcd491c32 (diff) |
radeon: Fix dma buffer object pool to scale object sizes.
This fixes problems when application is using large vertex arrays for drawing.
Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
Diffstat (limited to 'src/mesa/drivers/dri/radeon/radeon_common_context.h')
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_common_context.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_common_context.h b/src/mesa/drivers/dri/radeon/radeon_common_context.h index 39fab66ca7..9e9c35650d 100644 --- a/src/mesa/drivers/dri/radeon/radeon_common_context.h +++ b/src/mesa/drivers/dri/radeon/radeon_common_context.h @@ -313,8 +313,9 @@ struct radeon_dma { struct radeon_dma_bo free; struct radeon_dma_bo wait; struct radeon_dma_bo reserved; - int current_used; /** Number of bytes allocated and forgotten about */ - int current_vertexptr; /** End of active vertex region */ + size_t current_used; /** Number of bytes allocated and forgotten about */ + size_t current_vertexptr; /** End of active vertex region */ + size_t minimum_size; /** * If current_vertexptr != current_used then flush must be non-zero. |