From 9cd45b8edf520ccedbc4417dc71dee1556455e91 Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Thu, 26 Aug 2010 12:08:56 +0100 Subject: llvmpipe: Fix negated logic in lp_scene_add_resource_reference(). Fixes performance regression. --- src/gallium/drivers/llvmpipe/lp_scene.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium/drivers/llvmpipe') 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; -- cgit v1.2.3