st/nine: Fix clip state logic

The clip state was reset everytime, incurring an overhead.

Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: David Heidelberg <david@ixit.cz>
Signed-off-by: Axel Davy <axel.davy@ens.fr>
This commit is contained in:
Axel Davy 2014-12-21 13:03:47 +01:00 committed by Emil Velikov
parent 23fae79735
commit 3bc75fcf22

View file

@ -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))