llvmpipe: Fix negated logic in lp_scene_add_resource_reference().
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 26 Aug 2010 11:08:56 +0000 (12:08 +0100)
committerKeith Whitwell <keithw@vmware.com>
Tue, 7 Sep 2010 13:02:29 +0000 (14:02 +0100)
Fixes performance regression.

src/gallium/drivers/llvmpipe/lp_scene.c

index 54880f2f104dc63747612d5f6c1b297cce2f3a4e..c7e3c59786482fe0dfbb5d8a48cd8756542604a0 100644 (file)
@@ -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;