From: José Fonseca Date: Thu, 26 Aug 2010 11:08:56 +0000 (+0100) Subject: llvmpipe: Fix negated logic in lp_scene_add_resource_reference(). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9cd45b8edf520ccedbc4417dc71dee1556455e91;p=mesa.git llvmpipe: Fix negated logic in lp_scene_add_resource_reference(). Fixes performance regression. --- diff --git a/src/gallium/drivers/llvmpipe/lp_scene.c b/src/gallium/drivers/llvmpipe/lp_scene.c index 54880f2f104..c7e3c597864 100644 --- a/src/gallium/drivers/llvmpipe/lp_scene.c +++ b/src/gallium/drivers/llvmpipe/lp_scene.c @@ -381,7 +381,7 @@ add_new_ref: * data. */ if (!initializing_scene && - scene->resource_reference_size < LP_SCENE_MAX_RESOURCE_SIZE) + scene->resource_reference_size >= LP_SCENE_MAX_RESOURCE_SIZE) return FALSE; return TRUE;