mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 08:50:13 +01:00
iris: Initialize ice->state.prim_mode to an invalid value
It was calloc'd to 0 which is PIPE_PRIM_POINTS, which means that we
fail to notice an initial primitive of points being new, and fail at
updating the "primitive is points or lines" field.
We do not need to reset this on device loss because we're tracking
the last primitive mode sent to us on the CPU via draw_vbo, not the
last primitive mode sent to the GPU.
Fixes several tests:
- dEQP-GLES3.functional.clipping.point.wide_point_clip
- dEQP-GLES3.functional.clipping.point.wide_point_clip_viewport_center
- dEQP-GLES3.functional.clipping.point.wide_point_clip_viewport_corner
Fixes: dcfca0af7c ("iris: Set XY Clipping correctly.")
This commit is contained in:
parent
7859eb1390
commit
c9fb704f72
1 changed files with 1 additions and 0 deletions
|
|
@ -6974,6 +6974,7 @@ genX(init_state)(struct iris_context *ice)
|
|||
|
||||
ice->state.sample_mask = 0xffff;
|
||||
ice->state.num_viewports = 1;
|
||||
ice->state.prim_mode = PIPE_PRIM_MAX;
|
||||
ice->state.genx = calloc(1, sizeof(struct iris_genx_state));
|
||||
|
||||
/* Make a 1x1x1 null surface for unbound textures */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue