Closed Bug 746296 Opened 14 years ago Closed 14 years ago

Check for antialiasing should be samples>1 not samples>0

Categories

(Core :: Graphics: CanvasWebGL, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla14

People

(Reporter: bjacob, Assigned: bjacob)

References

Details

(Whiteboard: webgl-conformance)

Attachments

(1 file)

We're failing on https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/conformance-suites/1.0.1/conformance/context/context-attributes-alpha-depth-stencil-antialias.html on mesa 8 + intel driver, while we are passing on mesa 7.11 + r600g driver. Neither support MSAA. The failure is when getContextAttributes returns antialias=true despite antialiasing not being effectively performed. Our test is samples>0. Maybe samples>1 is the better test to perform? Indeed, for practical purposes, samples=1 seems undistinguishable from samples=0.
Attachment #615837 - Flags: review?(jgilbert)
Whiteboard: webgl-conformance
Comment on attachment 615837 [details] [diff] [review] fix check for antialiasing Review of attachment 615837 [details] [diff] [review]: ----------------------------------------------------------------- Please add a comment that while samples=1 uses our multisampling render path, it does not qualify as antialiasing.
Attachment #615837 - Flags: review?(jgilbert) → review+
I wonder then. Shouldn't we just kill the samples=1 path and just tweak samples in the GL context creation: if (samples==1) samples=0;
I mean, samples=1 seems useless overhead and this path is hit in the real world on linux, apparently.
Blocks: 746328
(In reply to Benoit Jacob [:bjacob] from comment #2) > I wonder then. Shouldn't we just kill the samples=1 path and just tweak > samples in the GL context creation: > > if (samples==1) > samples=0; Filed bug 746328 for this.
Comment on attachment 615837 [details] [diff] [review] fix check for antialiasing Please approve for mozilla-central. Needed for WebGL conformance on real-world drivers. Very safe. Only affects WebGL, which is not a priority for the upcoming Android release.
Attachment #615837 - Flags: approval-mozilla-central?
Attachment #615837 - Flags: approval-mozilla-central? → approval-mozilla-central+
Assignee: nobody → bjacob
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla14
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/conformance-suites/1.0.1/conformance/context/context-attributes-alpha-depth-stencil-antialias.html now passes on Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:14.0) Gecko/20120424 Firefox/14.0a1 ID:20120424034314 Adapter Description nouveau -- Gallium 0.4 on NVA5 Vendor ID nouveau Device ID Gallium 0.4 on NVA5 Driver Version 2.1 Mesa 8.0.2 WebGL Renderer nouveau -- Gallium 0.4 on NVA5 -- 2.1 Mesa 8.0.2 GPU Accelerated Windows 0 AzureBackends kia
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: