mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 13:28:06 +02:00
iris: clamp PointWidth in 3DSTATE_SF like i965 does
Values match how MinimumPointWidth, MaximumPointWidth is setup. This
fixes assert hit in debug build when packing the struct with too large
value for genxml.
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9942>
(cherry picked from commit b2af419391)
This commit is contained in:
parent
99a47874de
commit
c5c7d6a05a
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue