swr: [rasterizer core] Split all RECT_LIST draws into 1 RECT per draw
authorTim Rowley <timothy.o.rowley@intel.com>
Wed, 17 Feb 2016 23:55:59 +0000 (17:55 -0600)
committerTim Rowley <timothy.o.rowley@intel.com>
Fri, 25 Mar 2016 19:26:16 +0000 (14:26 -0500)
Needed until proper RECT_LIST PrimAssembly code is written.

src/gallium/drivers/swr/rasterizer/core/api.cpp

index fccccab503cb26f2b717c0e5d547cf2535e87dd3..c70b4fafedd17c8b6c02d8d912c51ffe68bae6ee 100644 (file)
@@ -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;