From: Dave Airlie Date: Thu, 6 Dec 2012 22:31:57 +0000 (+1000) Subject: llvmpipe: fix regression in gears speed. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5b2a3443facc561f928fe054abd3542cdda51be9;p=mesa.git llvmpipe: fix regression in gears speed. This fixes the gears regression since transform feedback. Reported-by: Brian Paul Signed-off-by: Dave Airlie --- 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