From bc6bff79475ab0996923a105fa699a19fb65455e Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Sun, 15 Jul 2012 15:26:14 +0200 Subject: r600g: compute needed CS space for vertex buffers correctly --- src/gallium/drivers/r600/r600_state_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium/drivers/r600') diff --git a/src/gallium/drivers/r600/r600_state_common.c b/src/gallium/drivers/r600/r600_state_common.c index be3d1014b6f..3c42a447643 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; -- cgit v1.2.3