mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-23 11:40:39 +02:00
mesa/st: Lowered ucp should still mark rast state dirty
Lowered clip planes should respect the enabled/disabled GL_CLIP_PLANEn
(aka GL_CLIP_DISTANCEn), which means updating the rast state as well.
Signed-off-by: Rob Clark <robdclark@chromium.org>
Acked-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14643>
(cherry picked from commit 26d591a669)
This commit is contained in:
parent
12beba1f71
commit
935e5fce5e
2 changed files with 3 additions and 4 deletions
|
|
@ -742,7 +742,7 @@
|
|||
"description": "mesa/st: Lowered ucp should still mark rast state dirty",
|
||||
"nominated": false,
|
||||
"nomination_type": null,
|
||||
"resolution": 4,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
|
|
|||
|
|
@ -555,10 +555,9 @@ st_init_driver_flags(struct st_context *st)
|
|||
f->NewDepthClamp = ST_NEW_RASTERIZER;
|
||||
}
|
||||
|
||||
f->NewClipPlaneEnable = ST_NEW_RASTERIZER;
|
||||
if (st->lower_ucp)
|
||||
f->NewClipPlaneEnable = ST_NEW_VS_STATE | ST_NEW_GS_STATE;
|
||||
else
|
||||
f->NewClipPlaneEnable = ST_NEW_RASTERIZER;
|
||||
f->NewClipPlaneEnable |= ST_NEW_VS_STATE | ST_NEW_GS_STATE;
|
||||
|
||||
f->NewLineState = ST_NEW_RASTERIZER;
|
||||
f->NewPolygonState = ST_NEW_RASTERIZER;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue