diff --git a/.pick_status.json b/.pick_status.json index 64be840207c..c697fc9e507 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -229,7 +229,7 @@ "description": "iris: clamp PointWidth in 3DSTATE_SF like i965 does", "nominated": true, "nomination_type": 0, - "resolution": 0, + "resolution": 1, "master_sha": null, "because_sha": null }, diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index e543d12d1c9..3ee01b5fb19 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -1761,7 +1761,7 @@ iris_create_rasterizer_state(struct pipe_context *ctx, sf.SmoothPointEnable = (state->point_smooth || state->multisample) && !state->point_quad_rasterization; sf.PointWidthSource = state->point_size_per_vertex ? Vertex : State; - sf.PointWidth = state->point_size; + sf.PointWidth = CLAMP(state->point_size, 0.125f, 255.875f); if (state->flatshade_first) { sf.TriangleFanProvokingVertexSelect = 1;