Bug 90367 - [PNV]Piglit/spec/opengl_1.1/line-aa-width fails
Summary: [PNV]Piglit/spec/opengl_1.1/line-aa-width fails
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/i915 (show other bugs)
Version: git
Hardware: All Linux (All)
: medium normal
Assignee: marius predut
QA Contact:
Depends on:
Reported: 2015-05-08 05:51 UTC by lu hua
Modified: 2019-09-18 19:38 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Description lu hua 2015-05-08 05:51:36 UTC
System Environment:
Platform: PNV
Libdrm:		(master)libdrm-2.4.61
Mesa:		(master)55b66dc4dee489e43b8e7a170fbc9ddd19a33aac
Xserver:	(master)xorg-server-1.17.0-76-gb1029716e41e252f149b82124a149da180607c96
Libva:		(master)9bfde38f19d81b7f33db8c4c8e80420c9e60429e
Kernel:   (drm-intel-nightly)87afe90f5a58fabbd3f2a567afad748a190adb71

Bug detailed description:
bug 28832 fixed on i965 platforms, but it still fails on PNV with the latest mesa master and 10.5 branch.
Line from 0,2-30,3 had bad thickness (min < 0.25):
min coverage: 0.062745
avg coverage: 0.555354
max coverage: 1.000000
Line from 30,3-60,6 had bad thickness (min < 0.25):
min coverage: 0.125490
avg coverage: 0.552941
max coverage: 1.000000
Line from 60,6-90,12 had bad thickness (avg / min > 2.0):
min coverage: 0.250980
avg coverage: 0.596229
max coverage: 1.000000
Line from 90,12-120,20 had bad thickness (avg / min > 2.0):
min coverage: 0.313726
avg coverage: 0.637104
max coverage: 1.000000
PIGLIT: {"result": "fail" }

Reproduce steps:
1. xinit
2. bin/line-aa-width -auto
Comment 1 marius predut 2015-06-03 06:39:21 UTC
A patch was sent to the mesa mailing list
Comment 2 marius predut 2015-06-04 20:08:08 UTC
Something unexpected is happened here on i915 related to ctx->Line.SmoothFlag.
Even if GL client app call glEnable(GL_LINE_SMOOTH);glEnable(GL_BLEND);glBlendFunc(GL_SRC_ALPHA, GL_ZERO);
at the driver level the ctx flag was not set. But, if call glLineWidth (lineWidth), lineWidth != 1 , the flag is set!
This is the reason for I ignore the SmoothFlag into the patch.

Also, the piglit test needs adjustment for PNV platform , a patch with updates was sent to piglit mailing list.
Comment 3 GitLab Migration User 2019-09-18 19:38:57 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/753.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.