summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2012-07-15 15:26:14 +0200
committerMarek Olšák <maraeo@gmail.com>2012-07-15 15:26:14 +0200
commitbc6bff79475ab0996923a105fa699a19fb65455e (patch)
treef67e9209ed7f4029f5674faab35bcd9c2d13facf /src/gallium
parent15ca9d159e50815b0bfe60df8873f48c32a59ca5 (diff)
downloadexternal_mesa3d-bc6bff79475ab0996923a105fa699a19fb65455e.zip
external_mesa3d-bc6bff79475ab0996923a105fa699a19fb65455e.tar.gz
external_mesa3d-bc6bff79475ab0996923a105fa699a19fb65455e.tar.bz2
r600g: compute needed CS space for vertex buffers correctly
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/r600/r600_state_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r600/r600_state_common.c b/src/gallium/drivers/r600/r600_state_common.c
index be3d101..3c42a44 100644
--- a/src/gallium/drivers/r600/r600_state_common.c
+++ b/src/gallium/drivers/r600/r600_state_common.c
@@ -413,7 +413,7 @@ void r600_set_vertex_buffers(struct pipe_context *ctx, unsigned count,
util_copy_vertex_buffers(rctx->vertex_buffer, &rctx->nr_vertex_buffers, buffers, count);
r600_inval_vertex_cache(rctx);
- state->atom.num_dw = (rctx->chip_class >= EVERGREEN ? 12 : 10) *
+ state->atom.num_dw = (rctx->chip_class >= EVERGREEN ? 12 : 11) *
rctx->nr_vertex_buffers;
for (i = 0 ; i < rctx->nr_vertex_buffers; i++) {
state->dirty_mask |= 1 << i;