[Mesa-dev] [PATCH 02/53] st/nine: Fix clip state logic

Axel Davy axel.davy at ens.fr
Wed Jan 7 08:36:12 PST 2015


The clip state was reset everytime, incurring an overhead.

Reviewed-by: David Heidelberg <david at ixit.cz>
Signed-off-by: Axel Davy <axel.davy at ens.fr>
---
 src/gallium/state_trackers/nine/nine_state.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/gallium/state_trackers/nine/nine_state.c b/src/gallium/state_trackers/nine/nine_state.c
index 4175803..e4e6788 100644
--- a/src/gallium/state_trackers/nine/nine_state.c
+++ b/src/gallium/state_trackers/nine/nine_state.c
@@ -839,8 +839,10 @@ nine_update_state(struct NineDevice9 *device, uint32_t mask)
         }
     }
 
-    if (state->changed.ucp)
+    if (state->changed.ucp) {
         pipe->set_clip_state(pipe, &state->clip);
+        state->changed.ucp = 0;
+    }
 
     if (group & (NINE_STATE_FREQ_GROUP_1 | NINE_STATE_VS)) {
         if (group & (NINE_STATE_TEXTURE | NINE_STATE_SAMPLER))
-- 
2.1.3



More information about the mesa-dev mailing list