diff options
author | Rhys Perry <[email protected]> | 2018-04-20 23:32:05 +0100 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2018-04-20 20:43:59 -0400 |
commit | a0e57432b76c32f2109dab0ad3df0ba03967441c (patch) | |
tree | f07b9980b9f34e72736b66a22919251aa15dabfa /src/gallium/drivers/nouveau | |
parent | 7b2032910761a7e36ceeb498eee4e77c7a916f38 (diff) |
nvc0: fix line width on GM20x+
This has the side-effect of fixing polygon-offset piglit test failures.
Signed-off-by: Rhys Perry <[email protected]>
Reviewed-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nouveau')
-rw-r--r-- | src/gallium/drivers/nouveau/nvc0/nvc0_state.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_state.c b/src/gallium/drivers/nouveau/nvc0/nvc0_state.c index 99d45a238ae..3e204f09a4d 100644 --- a/src/gallium/drivers/nouveau/nvc0/nvc0_state.c +++ b/src/gallium/drivers/nouveau/nvc0/nvc0_state.c @@ -233,7 +233,10 @@ 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 || cso->multisample) + /* On GM20x+, LINE_WIDTH_SMOOTH controls both aliased and smooth + * rendering and LINE_WIDTH_ALIASED seems to be ignored + */ + if (cso->line_smooth || cso->multisample || class_3d >= GM200_3D_CLASS) SB_BEGIN_3D(so, LINE_WIDTH_SMOOTH, 1); else SB_BEGIN_3D(so, LINE_WIDTH_ALIASED, 1); |