From: Tim Rowley Date: Wed, 17 Feb 2016 23:55:59 +0000 (-0600) Subject: swr: [rasterizer core] Split all RECT_LIST draws into 1 RECT per draw X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=45a4afa634bdca2b1147a76b74ed15a690b7a014;p=mesa.git swr: [rasterizer core] Split all RECT_LIST draws into 1 RECT per draw Needed until proper RECT_LIST PrimAssembly code is written. --- diff --git a/src/gallium/drivers/swr/rasterizer/core/api.cpp b/src/gallium/drivers/swr/rasterizer/core/api.cpp index fccccab503c..c70b4fafedd 100644 --- a/src/gallium/drivers/swr/rasterizer/core/api.cpp +++ b/src/gallium/drivers/swr/rasterizer/core/api.cpp @@ -1005,6 +1005,11 @@ uint32_t MaxVertsPerDraw( } break; + // The Primitive Assembly code can only handle 1 RECT at a time. + case TOP_RECT_LIST: + vertsPerDraw = 3; + break; + default: // We are not splitting up draws for other topologies. break;