// XXX: could use ctx->Const.MaxViewports for old API efficiency
ice->state.num_viewports =
(vue_map->slots_valid & VARYING_BIT_VIEWPORT) ? IRIS_MAX_VIEWPORTS : 1;
- ice->state.dirty |= IRIS_DIRTY_CLIP | IRIS_DIRTY_SF_CL_VIEWPORT;
+ ice->state.dirty |= IRIS_DIRTY_CLIP |
+ IRIS_DIRTY_SF_CL_VIEWPORT |
+ IRIS_DIRTY_SCISSOR_RECT;
// XXX: CC_VIEWPORT?
}
ice->state.dirty = ~0ull;
+ ice->state.num_viewports = 1;
ice->state.cso_vp = calloc(1, sizeof(struct iris_viewport_state));
ice->state.cso_vertex_buffers =
calloc(1, sizeof(struct iris_vertex_buffer_state));