update_gs_block_state(rctx, rctx->gs_shader != NULL);
- if (rctx->gs_shader) {
+ if (rctx->gs_shader)
SELECT_SHADER_OR_FAIL(gs);
+ SELECT_SHADER_OR_FAIL(vs);
+
+ if (rctx->gs_shader) {
if (!rctx->shader_stages.geom_enable) {
rctx->shader_stages.geom_enable = true;
r600_mark_atom_dirty(rctx, &rctx->shader_stages.atom);
rctx->b.streamout.enabled_stream_buffers_mask = rctx->gs_shader->current->gs_copy_shader->enabled_stream_buffers_mask;
}
- SELECT_SHADER_OR_FAIL(vs);
-
/* vs_shader is used as ES */
if (unlikely(vs_dirty || rctx->hw_shader_stages[R600_HW_STAGE_ES].shader != rctx->vs_shader->current)) {
update_shader_atom(ctx, &rctx->hw_shader_stages[R600_HW_STAGE_ES], rctx->vs_shader->current);
r600_mark_atom_dirty(rctx, &rctx->shader_stages.atom);
}
- SELECT_SHADER_OR_FAIL(vs);
-
if (unlikely(vs_dirty || rctx->hw_shader_stages[R600_HW_STAGE_VS].shader != rctx->vs_shader->current)) {
update_shader_atom(ctx, &rctx->hw_shader_stages[R600_HW_STAGE_VS], rctx->vs_shader->current);