mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 07:08:04 +02:00
st/mesa: Use cso context to manage clip state.
This commit is contained in:
parent
227ae7b968
commit
8039ee09b8
1 changed files with 3 additions and 1 deletions
|
|
@ -35,6 +35,8 @@
|
|||
#include "pipe/p_context.h"
|
||||
#include "st_atom.h"
|
||||
|
||||
#include "cso_cache/cso_context.h"
|
||||
|
||||
|
||||
/* Second state atom for user clip planes:
|
||||
*/
|
||||
|
|
@ -56,7 +58,7 @@ static void update_clip( struct st_context *st )
|
|||
|
||||
if (memcmp(&clip, &st->state.clip, sizeof(clip)) != 0) {
|
||||
st->state.clip = clip;
|
||||
st->pipe->set_clip_state(st->pipe, &clip);
|
||||
cso_set_clip(st->cso_context, &clip);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue