[Mesa-dev] [PATCH 04/10] swr/rast: Points with clipdistance can't go through simplepoints path
Tim Rowley
timothy.o.rowley at intel.com
Mon Nov 20 17:18:47 UTC 2017
Fixes piglit glsl-1.20:vs-clip-vertex-primitives and
glsl-1.30:vs-clip-distance-primitives.
---
src/gallium/drivers/swr/rasterizer/core/frontend.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/gallium/drivers/swr/rasterizer/core/frontend.h b/src/gallium/drivers/swr/rasterizer/core/frontend.h
index 5cb2f87c15..11099d6449 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
--
2.14.1
More information about the mesa-dev
mailing list