mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 01:08:03 +02:00
nvc0: fix line width on GM20x+
This has the side-effect of fixing polygon-offset piglit test failures. Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:
parent
7b20329107
commit
a0e57432b7
1 changed files with 4 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue