From: Zack Rusin Date: Tue, 24 Sep 2013 20:25:24 +0000 (-0400) Subject: llvmpipe: we need to subdivide if fb is bigger in either direction X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1291e833e70f79bc7fb53846c25de7309075ea10;p=mesa.git llvmpipe: we need to subdivide if fb is bigger in either direction 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 Reviewed-by: José Fonseca Reviewed-by: Roland Scheidegger --- diff --git a/src/gallium/drivers/llvmpipe/lp_setup.c b/src/gallium/drivers/llvmpipe/lp_setup.c index 5fde01fa13b..c8199b496f9 100644 --- a/src/gallium/drivers/llvmpipe/lp_setup.c +++ b/src/gallium/drivers/llvmpipe/lp_setup.c @@ -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); }