From: Tim Rowley Date: Tue, 4 Oct 2016 18:36:12 +0000 (-0500) Subject: swr: [rasterizer core] disable cull for rect_list X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e845eeb0be89e3dcc62ae43a03f71336c26c40ed;p=mesa.git swr: [rasterizer core] disable cull for rect_list Signed-off-by: Tim Rowley --- 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) {