From e845eeb0be89e3dcc62ae43a03f71336c26c40ed Mon Sep 17 00:00:00 2001 From: Tim Rowley Date: Tue, 4 Oct 2016 13:36:12 -0500 Subject: [PATCH] swr: [rasterizer core] disable cull for rect_list Signed-off-by: Tim Rowley --- 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 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) { -- 2.30.2