From 45a4afa634bdca2b1147a76b74ed15a690b7a014 Mon Sep 17 00:00:00 2001 From: Tim Rowley Date: Wed, 17 Feb 2016 17:55:59 -0600 Subject: [PATCH] swr: [rasterizer core] Split all RECT_LIST draws into 1 RECT per draw Needed until proper RECT_LIST PrimAssembly code is written. --- src/gallium/drivers/swr/rasterizer/core/api.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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; -- 2.30.2