From 5b2a3443facc561f928fe054abd3542cdda51be9 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Fri, 7 Dec 2012 08:31:57 +1000 Subject: [PATCH] llvmpipe: fix regression in gears speed. This fixes the gears regression since transform feedback. Reported-by: Brian Paul Signed-off-by: Dave Airlie --- src/gallium/drivers/llvmpipe/lp_setup.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/llvmpipe/lp_setup.c b/src/gallium/drivers/llvmpipe/lp_setup.c index 26fa46de803..0f497afac53 100644 --- a/src/gallium/drivers/llvmpipe/lp_setup.c +++ b/src/gallium/drivers/llvmpipe/lp_setup.c @@ -627,8 +627,10 @@ void lp_setup_set_rasterizer_discard( struct lp_setup_context *setup, boolean rasterizer_discard ) { - setup->rasterizer_discard = rasterizer_discard; - set_scene_state( setup, SETUP_FLUSHED, __FUNCTION__ ); + if (setup->rasterizer_discard != rasterizer_discard) { + setup->rasterizer_discard = rasterizer_discard; + set_scene_state( setup, SETUP_FLUSHED, __FUNCTION__ ); + } } void -- 2.30.2