diff options
author | Marek Olšák <[email protected]> | 2012-02-02 08:27:01 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2012-02-21 21:42:27 +0100 |
commit | 182fd4c54476ced92b61412b0cac5be32e257b53 (patch) | |
tree | 43a7c64157184e9293283c2a351ab5a590a2c79b /src/gallium/drivers/r600/r600_state.c | |
parent | f126253040654d52db134063a69ebaf0c417d410 (diff) |
r600g: move all invariant state from draw_vbo into start_cs
Diffstat (limited to 'src/gallium/drivers/r600/r600_state.c')
-rw-r--r-- | src/gallium/drivers/r600/r600_state.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_state.c b/src/gallium/drivers/r600/r600_state.c index 939bbe4126b..f8711b22751 100644 --- a/src/gallium/drivers/r600/r600_state.c +++ b/src/gallium/drivers/r600/r600_state.c @@ -2040,6 +2040,12 @@ void r600_init_atom_start_cs(struct r600_context *rctx) r600_store_value(cb, 0); /* R_028AB8_VGT_VTX_CNT_EN */ r600_store_context_reg(cb, R_028B20_VGT_STRMOUT_BUFFER_EN, 0); + + r600_store_context_reg_seq(cb, R_028400_VGT_MAX_VTX_INDX, 2); + r600_store_value(cb, ~0); /* R_028400_VGT_MAX_VTX_INDX */ + r600_store_value(cb, 0); /* R_028404_VGT_MIN_VTX_INDX */ + + r600_store_ctl_const(cb, R_03CFF0_SQ_VTX_BASE_VTX_LOC, 0); } void r600_pipe_shader_ps(struct pipe_context *ctx, struct r600_pipe_shader *shader) |