ATI OpenGL driver renders point sprite upside-down

RESOLVED FIXED in mozilla16

Status

()

Core
Canvas: WebGL
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: bjacob, Assigned: bjacob)

Tracking

(Blocks: 1 bug)

unspecified
mozilla16
x86
Mac OS X
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: webgl-conformance)

Attachments

(1 attachment)

Created attachment 638009 [details] [diff] [review]
work around upside-down point sprites

This is the reason why this test fails:
https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/conformance-suites/1.0.1/conformance/glsl/variables/gl-pointcoord.html

Attached patch fixes it, but will break down whenever the driver bug is fixed (in the sense that the upside-down bug will then resurface). I think we should still take it so at least we're not blocked on Apple.
Attachment #638009 - Flags: review?(jgilbert)
Comment on attachment 638009 [details] [diff] [review]
work around upside-down point sprites

Review of attachment 638009 [details] [diff] [review]:
-----------------------------------------------------------------

Can we try to get ahead on this by querying the value before we set it properly? We could put a DEBUG abort in there which will let us know when this is fixed.
Attachment #638009 - Flags: review?(jgilbert) → review+
(Assignee)

Comment 2

5 years ago
Part of this tryserver push: https://tbpl.mozilla.org/?tree=Try&rev=35d614a1c367
(Assignee)

Comment 3

5 years ago
(In reply to Jeff Gilbert [:jgilbert] from comment #1)
> Comment on attachment 638009 [details] [diff] [review]
> work around upside-down point sprites
> 
> Review of attachment 638009 [details] [diff] [review]:
> -----------------------------------------------------------------
> 
> Can we try to get ahead on this by querying the value before we set it
> properly? We could put a DEBUG abort in there which will let us know when
> this is fixed.

The bug is not at the level of which of UPPER_LEFT / LOWER_LEFT is current or default. The bug is that no matter what we ask for, the driver actually does the opposite. So it's not something we can easily detect by a GL getter call. We'd have to render a point sprite, readpixels, and look at the result.
(Assignee)

Comment 4

5 years ago
http://hg.mozilla.org/integration/mozilla-inbound/rev/8faed44d0af6
Assignee: nobody → bjacob
Target Milestone: --- → mozilla16
https://hg.mozilla.org/mozilla-central/rev/8faed44d0af6
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
Blocks: 834654
You need to log in before you can comment on or make changes to this bug.