Mesa (master): swr: [rasterizer core] disable cull for rect_list

Tim Rowley torowley at kemper.freedesktop.org
Tue Oct 11 16:58:30 UTC 2016


Module: Mesa
Branch: master
Commit: e845eeb0be89e3dcc62ae43a03f71336c26c40ed
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e845eeb0be89e3dcc62ae43a03f71336c26c40ed

Author: Tim Rowley <timothy.o.rowley at intel.com>
Date:   Tue Oct  4 13:36:12 2016 -0500

swr: [rasterizer core] disable cull for rect_list

Signed-off-by: Tim Rowley <timothy.o.rowley at intel.com>

---

 src/gallium/drivers/swr/rasterizer/core/api.cpp | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/gallium/drivers/swr/rasterizer/core/api.cpp b/src/gallium/drivers/swr/rasterizer/core/api.cpp
index 048b979..2c2810e 100644
--- a/src/gallium/drivers/swr/rasterizer/core/api.cpp
+++ b/src/gallium/drivers/swr/rasterizer/core/api.cpp
@@ -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)
     {




More information about the mesa-commit mailing list