From e5d84bbd36dd63132854924d77102574c2ffaec0 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Wed, 7 Nov 2018 22:54:25 -0800 Subject: [PATCH] iris: Fix MSAA smooth points Fixes bin/ext_framebuffer_multisample-point-smooth 2 -auto -fbo --- src/gallium/drivers/iris/iris_state.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index 3d2af86c544..67f8bb782e0 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -1065,7 +1065,7 @@ iris_create_rasterizer_state(struct pipe_context *ctx, state->line_smooth ? _10pixels : _05pixels; sf.LastPixelEnable = state->line_last_pixel; sf.LineWidth = line_width; - sf.SmoothPointEnable = state->point_smooth; + sf.SmoothPointEnable = state->point_smooth || state->multisample; sf.PointWidthSource = state->point_size_per_vertex ? Vertex : State; sf.PointWidth = state->point_size; @@ -1090,7 +1090,7 @@ iris_create_rasterizer_state(struct pipe_context *ctx, rr.GlobalDepthOffsetConstant = state->offset_units * 2; rr.GlobalDepthOffsetScale = state->offset_scale; rr.GlobalDepthOffsetClamp = state->offset_clamp; - rr.SmoothPointEnable = state->point_smooth; + rr.SmoothPointEnable = state->point_smooth || state->multisample; rr.AntialiasingEnable = state->line_smooth; rr.ScissorRectangleEnable = state->scissor; rr.ViewportZNearClipTestEnable = state->depth_clip_near; -- 2.30.2