From: Ilia Mirkin Date: Mon, 17 Aug 2015 04:53:04 +0000 (-0400) Subject: nvc0: program smooth line width when multisampling is enabled X-Git-Tag: upstream/17.1.0~16851 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ae5cf4f3f7525c49d1cd012697e8e30db86a8890;p=platform%2Fupstream%2Fmesa.git nvc0: program smooth line width when multisampling is enabled There are separate line widths for smooth and aliased lines. The smooth one is selected when multisampling is enabled even if line smoothing isn't explicitly turned on. Fixes the ext_framebuffer_multisample-line-smooth piglits Signed-off-by: Ilia Mirkin --- diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_state.c b/src/gallium/drivers/nouveau/nvc0/nvc0_state.c index 2a33857..25183a6 100644 --- a/src/gallium/drivers/nouveau/nvc0/nvc0_state.c +++ b/src/gallium/drivers/nouveau/nvc0/nvc0_state.c @@ -234,7 +234,7 @@ nvc0_rasterizer_state_create(struct pipe_context *pipe, SB_IMMED_3D(so, MULTISAMPLE_ENABLE, cso->multisample); SB_IMMED_3D(so, LINE_SMOOTH_ENABLE, cso->line_smooth); - if (cso->line_smooth) + if (cso->line_smooth || cso->multisample) SB_BEGIN_3D(so, LINE_WIDTH_SMOOTH, 1); else SB_BEGIN_3D(so, LINE_WIDTH_ALIASED, 1);