From: Axel Davy Date: Sun, 21 Dec 2014 12:03:47 +0000 (+0100) Subject: st/nine: Fix clip state logic X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3bc75fcf2298315a81385e527a1e6f28d7d8c0bf;p=mesa.git st/nine: Fix clip state logic The clip state was reset everytime, incurring an overhead. Reviewed-by: Ilia Mirkin Reviewed-by: David Heidelberg Signed-off-by: Axel Davy --- diff --git a/src/gallium/state_trackers/nine/nine_state.c b/src/gallium/state_trackers/nine/nine_state.c index 41758036bc2..e4e6788fb84 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))