swr: [rasterizer core] disable cull for rect_list
authorTim Rowley <timothy.o.rowley@intel.com>
Tue, 4 Oct 2016 18:36:12 +0000 (13:36 -0500)
committerTim Rowley <timothy.o.rowley@intel.com>
Tue, 11 Oct 2016 16:22:04 +0000 (11:22 -0500)
Signed-off-by: Tim Rowley <timothy.o.rowley@intel.com>
src/gallium/drivers/swr/rasterizer/core/api.cpp

index 048b979..2c2810e 100644 (file)
@@ -1108,6 +1108,10 @@ void DrawInstanced(
         pState->rastState.cullMode = SWR_CULLMODE_NONE;
         pState->forceFront = true;
     }
+    else if (topology == TOP_RECT_LIST)
+    {
+        pState->rastState.cullMode = SWR_CULLMODE_NONE;
+    }
 
     int draw = 0;
     while (remainingVerts)
@@ -1243,6 +1247,10 @@ void DrawIndexedInstance(
         pState->rastState.cullMode = SWR_CULLMODE_NONE;
         pState->forceFront = true;
     }
+    else if (topology == TOP_RECT_LIST)
+    {
+        pState->rastState.cullMode = SWR_CULLMODE_NONE;
+    }
 
     while (remainingIndices)
     {