summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers
diff options
context:
space:
mode:
authorAxel Davy <[email protected]>2014-12-21 13:03:47 +0100
committerEmil Velikov <[email protected]>2015-01-22 22:16:17 +0000
commit3bc75fcf2298315a81385e527a1e6f28d7d8c0bf (patch)
treec098c5f27eae28f0e9b6737a895493b17d4157b0 /src/gallium/state_trackers
parent23fae79735c3460d487ba5367aaf00db5fadbdfd (diff)
st/nine: Fix clip state logic
The clip state was reset everytime, incurring an overhead. Reviewed-by: Ilia Mirkin <[email protected]> Reviewed-by: David Heidelberg <[email protected]> Signed-off-by: Axel Davy <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r--src/gallium/state_trackers/nine/nine_state.c4
1 files changed, 3 insertions, 1 deletions
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))