diff options
author | Marek Olšák <[email protected]> | 2012-07-18 06:23:28 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2012-07-18 06:25:37 +0200 |
commit | f237fd431b512f1d67c88a8d29581b5bef143bbf (patch) | |
tree | eba43ad17ad3042a46cf7d1a8ce84c5ed4611432 /src/gallium | |
parent | 30257c32910c3f7ac2b9cc24399d6be196d34d26 (diff) |
r600g: update R600_MAX_DRAW_CS_DWORDS to take draw-opaque into account
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/r600/r600_hw_context_priv.h | 2 | ||||
-rw-r--r-- | src/gallium/drivers/r600/r600_state_common.c | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/gallium/drivers/r600/r600_hw_context_priv.h b/src/gallium/drivers/r600/r600_hw_context_priv.h index 81a998dcddc..8d0ebc9d52d 100644 --- a/src/gallium/drivers/r600/r600_hw_context_priv.h +++ b/src/gallium/drivers/r600/r600_hw_context_priv.h @@ -28,7 +28,7 @@ #include "r600_pipe.h" -#define R600_MAX_DRAW_CS_DWORDS 11 +#define R600_MAX_DRAW_CS_DWORDS 16 /* these flags are used in register flags and added into block flags */ #define REG_FLAG_NEED_BO 1 diff --git a/src/gallium/drivers/r600/r600_state_common.c b/src/gallium/drivers/r600/r600_state_common.c index 05152caf2a7..2c95878ef25 100644 --- a/src/gallium/drivers/r600/r600_state_common.c +++ b/src/gallium/drivers/r600/r600_state_common.c @@ -1070,9 +1070,7 @@ void r600_draw_vbo(struct pipe_context *ctx, const struct pipe_draw_info *dinfo) r600_context_pipe_state_set(rctx, &rctx->vgt); /* Emit states (the function expects that we emit at most 17 dwords here). */ - r600_need_cs_space(rctx, - !info.indexed && info.count_from_stream_output ? 14 : 0, - TRUE); + r600_need_cs_space(rctx, 0, TRUE); LIST_FOR_EACH_ENTRY_SAFE(state, next_state, &rctx->dirty_states, head) { r600_emit_atom(rctx, state); |