Mesa (master): nvc0: program smooth line width when multisampling is enabled
Ilia Mirkin
imirkin at kemper.freedesktop.org
Mon Aug 17 05:17:21 UTC 2015
Module: Mesa
Branch: master
Commit: ae5cf4f3f7525c49d1cd012697e8e30db86a8890
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ae5cf4f3f7525c49d1cd012697e8e30db86a8890
Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date: Mon Aug 17 00:53:04 2015 -0400
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 <imirkin at alum.mit.edu>
---
src/gallium/drivers/nouveau/nvc0/nvc0_state.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
More information about the mesa-commit
mailing list