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>
This commit is contained in:
@@ -437,10 +437,9 @@ st_init_driver_flags(struct st_context *st)
|
||||
f->NewFragClamp = 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;
|
||||
|
||||
if (st->emulate_gl_clamp)
|
||||
f->NewSamplersWithClamp = ST_NEW_SAMPLERS |
|
||||
|
||||
Reference in New Issue
Block a user