mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 15:20:10 +01:00
iris: max VP index
This commit is contained in:
parent
7cdc6b1173
commit
636cf8971e
1 changed files with 7 additions and 1 deletions
|
|
@ -1262,7 +1262,12 @@ iris_set_viewport_states(struct pipe_context *ctx,
|
|||
|
||||
free(ice->state.cso_vp);
|
||||
ice->state.cso_vp = cso;
|
||||
ice->state.num_viewports = num_viewports;
|
||||
|
||||
if (num_viewports != ice->state.num_viewports) {
|
||||
ice->state.num_viewports = num_viewports;
|
||||
ice->state.dirty |= IRIS_DIRTY_CLIP;
|
||||
}
|
||||
|
||||
ice->state.dirty |= IRIS_DIRTY_SF_CL_VIEWPORT;
|
||||
}
|
||||
|
||||
|
|
@ -2662,6 +2667,7 @@ iris_upload_render_state(struct iris_context *ice,
|
|||
cl.NonPerspectiveBarycentricEnable = true;
|
||||
|
||||
cl.ForceZeroRTAIndexEnable = cso_fb->layers == 0;
|
||||
cl.MaximumVPIndex = ice->state.num_viewports - 1;
|
||||
}
|
||||
iris_emit_merge(batch, cso_rast->clip, dynamic_clip,
|
||||
ARRAY_SIZE(cso_rast->clip));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue