diff options
author | Axel Davy <[email protected]> | 2014-12-21 13:03:47 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2015-01-22 22:16:17 +0000 |
commit | 3bc75fcf2298315a81385e527a1e6f28d7d8c0bf (patch) | |
tree | c098c5f27eae28f0e9b6737a895493b17d4157b0 | |
parent | 23fae79735c3460d487ba5367aaf00db5fadbdfd (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]>
-rw-r--r-- | src/gallium/state_trackers/nine/nine_state.c | 4 |
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)) |