From: Tim Rowley Date: Tue, 31 Oct 2017 14:41:02 +0000 (-0500) Subject: swr/rast: Points with clipdistance can't go through simplepoints path X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=37bb69fb88d632b4c50162c5d6b0ccd96f23d533;p=mesa.git swr/rast: Points with clipdistance can't go through simplepoints path Fixes piglit glsl-1.20:vs-clip-vertex-primitives and glsl-1.30:vs-clip-distance-primitives. Reviewed-by: Bruce Cherniak --- diff --git a/src/gallium/drivers/swr/rasterizer/core/frontend.h b/src/gallium/drivers/swr/rasterizer/core/frontend.h index 5cb2f87c158..11099d6449d 100644 --- a/src/gallium/drivers/swr/rasterizer/core/frontend.h +++ b/src/gallium/drivers/swr/rasterizer/core/frontend.h @@ -352,7 +352,8 @@ bool CanUseSimplePoints(DRAW_CONTEXT *pDC) return (state.rastState.sampleCount == SWR_MULTISAMPLE_1X && state.rastState.pointSize == 1.0f && !state.rastState.pointParam && - !state.rastState.pointSpriteEnable); + !state.rastState.pointSpriteEnable && + !state.backendState.clipDistanceMask); } INLINE