summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/swr
diff options
context:
space:
mode:
authorTim Rowley <timothy.o.rowley@intel.com>2017-10-31 09:41:02 -0500
committerTim Rowley <timothy.o.rowley@intel.com>2017-11-20 13:50:38 -0600
commit37bb69fb88d632b4c50162c5d6b0ccd96f23d533 (patch)
tree3b5811bb63fa3bbc7550c4337596967a157ccc9a /src/gallium/drivers/swr
parentd9de8f3122737517352eeaa4d1f2e79360526eff (diff)
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 <bruce.cherniak@intel.com>
Diffstat (limited to 'src/gallium/drivers/swr')
-rw-r--r--src/gallium/drivers/swr/rasterizer/core/frontend.h3
1 files changed, 2 insertions, 1 deletions
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