iris: Fix MSAA smooth points
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 8 Nov 2018 06:54:25 +0000 (22:54 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:09 +0000 (10:26 -0800)
Fixes bin/ext_framebuffer_multisample-point-smooth 2 -auto -fbo

src/gallium/drivers/iris/iris_state.c

index 3d2af86c5443c41668e62f09d803c720b12ddd30..67f8bb782e0a0b881fd12a0360a3f91fd44c3724 100644 (file)
@@ -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;