Mesa (gallium-no-rhw-position): st/mesa: Use cso context to manage clip state.

Michał Król michal at kemper.freedesktop.org
Wed Feb 24 15:41:32 UTC 2010


Module: Mesa
Branch: gallium-no-rhw-position
Commit: 8039ee09b8c78a70c1c50207cce9a7bb4cffc675
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8039ee09b8c78a70c1c50207cce9a7bb4cffc675

Author: Michal Krol <michal at vmware.com>
Date:   Wed Feb 24 15:28:41 2010 +0100

st/mesa: Use cso context to manage clip state.

---

 src/mesa/state_tracker/st_atom_clip.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/mesa/state_tracker/st_atom_clip.c b/src/mesa/state_tracker/st_atom_clip.c
index 23d709b..80c0e92 100644
--- a/src/mesa/state_tracker/st_atom_clip.c
+++ b/src/mesa/state_tracker/st_atom_clip.c
@@ -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);
    }
 }
 




More information about the mesa-commit mailing list