r600_update_db_shader_control(rctx);
}
- /* For each shader stage that needs to spill, set up buffer for MEM_SCRATCH */
- if (rctx->b.gfx_level >= EVERGREEN) {
- evergreen_setup_scratch_buffers(rctx);
- } else {
- r600_setup_scratch_buffers(rctx);
- }
-
/* on R600 we stuff masks + txq info into one constant buffer */
/* on evergreen we only need a txq info one */
if (rctx->ps_shader) {
rctx->last_primitive_type = info->mode;
}
+ /* For each shader stage that needs to spill, set up buffer for MEM_SCRATCH */
+ if (rctx->b.gfx_level >= EVERGREEN) {
+ evergreen_setup_scratch_buffers(rctx);
+ } else {
+ r600_setup_scratch_buffers(rctx);
+ }
+
/* Draw packets. */
if (likely(!indirect)) {
radeon_emit(cs, PKT3(PKT3_NUM_INSTANCES, 0, 0));