aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/swr
diff options
context:
space:
mode:
authorTim Rowley <[email protected]>2016-10-04 13:36:12 -0500
committerTim Rowley <[email protected]>2016-10-11 11:22:04 -0500
commite845eeb0be89e3dcc62ae43a03f71336c26c40ed (patch)
treeff30eb1db293a0830f772598fa9f9edbefa778d9 /src/gallium/drivers/swr
parentb3bd8bb611bb465d2e5efddd109cf633bf3cc9b9 (diff)
swr: [rasterizer core] disable cull for rect_list
Signed-off-by: Tim Rowley <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr')
-rw-r--r--src/gallium/drivers/swr/rasterizer/core/api.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/drivers/swr/rasterizer/core/api.cpp b/src/gallium/drivers/swr/rasterizer/core/api.cpp
index 048b9791d6f..2c2810eb26a 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)
{