summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2015-07-05 16:34:59 +0200
committerMarek Olšák <[email protected]>2015-07-23 00:59:21 +0200
commit4ef7d93a941257b18506eae056631e8f4a11f893 (patch)
tree1df336cd0c8595ce6e61937e71888b56259df983 /src/mesa
parentb7492a1f45866a01b00263f9e252ddc3835304e9 (diff)
cso: remove clip state handling
There is no need for this. v2: handle redundant clip state changes in st/mesa
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/state_tracker/st_atom_clip.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mesa/state_tracker/st_atom_clip.c b/src/mesa/state_tracker/st_atom_clip.c
index f82c1332afc..506a770499f 100644
--- a/src/mesa/state_tracker/st_atom_clip.c
+++ b/src/mesa/state_tracker/st_atom_clip.c
@@ -59,8 +59,11 @@ static void update_clip( struct st_context *st )
memcpy(clip.ucp,
use_eye ? ctx->Transform.EyeUserPlane
: ctx->Transform._ClipUserPlane, sizeof(clip.ucp));
- st->state.clip = clip;
- cso_set_clip(st->cso_context, &clip);
+
+ if (memcmp(&st->state.clip, &clip, sizeof(clip)) != 0) {
+ st->state.clip = clip;
+ st->pipe->set_clip_state(st->pipe, &clip);
+ }
}