llvmpipe: we need to subdivide if fb is bigger in either direction
authorZack Rusin <zackr@vmware.com>
Tue, 24 Sep 2013 20:25:24 +0000 (16:25 -0400)
committerZack Rusin <zackr@vmware.com>
Wed, 25 Sep 2013 23:38:21 +0000 (19:38 -0400)
We need to subdivide triangles if either of the dimensions is
larger than the max edge length, not when both of them are larger.

Signed-off-by: Zack Rusin <zackr@vmware.com>
Reviewed-by: José Fonseca <jfonseca@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/drivers/llvmpipe/lp_setup.c

index 5fde01fa13b625dce2f4ec28538b551fb6c0ae8a..c8199b496f915ac89881dff6a6598b08f02386ea 100644 (file)
@@ -1015,7 +1015,7 @@ try_update_scene_state( struct lp_setup_context *setup )
        * To cope with this problem we check if triangles are large and
        * subdivide them if needed.
        */
-      setup->subdivide_large_triangles = (setup->fb.width > 2048 &&
+      setup->subdivide_large_triangles = (setup->fb.width > 2048 ||
                                           setup->fb.height > 2048);
    }