swr/rast: Points with clipdistance can't go through simplepoints path
authorTim Rowley <timothy.o.rowley@intel.com>
Tue, 31 Oct 2017 14:41:02 +0000 (09:41 -0500)
committerTim Rowley <timothy.o.rowley@intel.com>
Mon, 20 Nov 2017 19:50:38 +0000 (13:50 -0600)
Fixes piglit glsl-1.20:vs-clip-vertex-primitives and
glsl-1.30:vs-clip-distance-primitives.

Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
src/gallium/drivers/swr/rasterizer/core/frontend.h

index 5cb2f87..11099d6 100644 (file)
@@ -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