Closed
Bug 1135271
Opened 10 years ago
Closed 9 years ago
Unexpected mix-blend-mode rendering
Categories
(Core :: Graphics, defect)
Tracking
()
RESOLVED
FIXED
mozilla44
Tracking | Status | |
---|---|---|
firefox44 | --- | fixed |
People
(Reporter: mstange, Assigned: dvander)
References
()
Details
(Keywords: testcase, Whiteboard: gfx-noted)
Attachments
(2 files)
3.87 MB,
video/webm
|
Details | |
19.87 KB,
patch
|
mattwoodrow
:
review+
|
Details | Diff | Splinter Review |
Open this testcase: http://codepen.io/chriscoyier/pen/mvbpJ
In some cases, the letters of the middle "hungry" line ("Nice blending way") turn black. It's happening all the time in my main profile in Nightly, and some of the time in my local build in a testing profile.
It would be nice if somebody could find out under which condition the bug occurs, on what platforms, and whether it's a regression.
Reporter | ||
Comment 1•10 years ago
|
||
(In reply to Markus Stange [:mstange] from comment #0)
> and some of the time in my local build in a testing profile.
This probably only worked in my local build because there was a bug in my patch for bug 961887 which I had applied in that build.
> It would be nice if somebody could find out under which condition the bug
> occurs, on what platforms, and whether it's a regression.
So far I have these results:
OS X OpenGL OMTC: bug
OS X BasicLayers: no bug
OS X Basic OMTC: no bug
Linux OpenGL OMTC: bug
Linux BasicLayers: no bug
Updated•10 years ago
|
Whiteboard: gfx-noted
Comment 2•10 years ago
|
||
I see this with 37.0.1 stable on OSX 10.10.2 (14C1514). Happens consistently.
Comment 3•10 years ago
|
||
Works for me in Windows 7 x64, in Firefox 37.0.2 with OMTC.
Bug 1163093 is possibly related.
Keywords: testcase
Comment 4•9 years ago
|
||
Yea discovered this on osx 10.10.2 with FF 40.0.2 - still there and consistent.
Comment 5•9 years ago
|
||
I got the... "solution"! I wrote about this on a article right here:
https://medium.com/@maykelesser/how-to-fix-osx-firefox-mix-blend-mode-bug-6b3548e9e546
Comment 6•9 years ago
|
||
FWIW, this doesn't reproduce on Linux OMTC on Fx41, though Markus points out that BasicLayers is used in that case. Still reproduces with OpenGL acceleration forced on.
Reporter | ||
Comment 7•9 years ago
|
||
(In reply to Ryan VanderMeulen [:RyanVM UTC-4] from comment #6)
> FWIW, this doesn't reproduce on Linux OMTC on Fx41, though Markus points out
> that BasicLayers is used in that case.
It's actually BasicCompositor. Sorry, the terminology here is very confusing... BasicLayers means "no OMTC", BasicCompositor means "OMTC, but not accelerated".
Comment 8•9 years ago
|
||
With layers.acceleration.force-enabled set to true, mozregression is giving the below regression range on Linux. Unfortunately, the regressions are too old to bisect on inbound, so the m-c pushlog range is the best we'll be able to do.
https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=99f694d1b50c&tochange=35f3fa435d2c
The regression is going from normal appearance (including proper opacity) and normal scroll behavior to the current black lettering behavior observed on other platforms. Bug 1023677 from Matt Woodrow looks possibly-relevant.
I don't have access to a Mac, so this is about as far as I'll be able to help.
Keywords: regressionwindow-wanted
Assignee | ||
Comment 9•9 years ago
|
||
Matt and I looked at this today. The mix-blend-mode spec separates blending into two steps: the blend operation on the source and backdrop colors, and then how they are composited into the backdrop[1]. It appears in the compositors we skipped a step and do not factor in the destination alpha.
In the test case, the source text is being composited onto a transparent black surface - the backdrop is rgba(0,0,0,0) - so our formula becomes very obviously wrong. BasicLayers and BasicCompositor handle this correctly.
Unfortunately we can't support the correct formula without shaders, so I'm just going to back out the OGL/D3D11 support for screen/multiply blending. We'll add it back soon though since we want to support all modes in the GPU. (bug 1209278)
[1] http://www.w3.org/TR/compositing-1/#generalformula
Assignee: nobody → dvander
Status: NEW → ASSIGNED
Assignee | ||
Comment 10•9 years ago
|
||
Attachment #8670636 -
Flags: review?(matt.woodrow)
Updated•9 years ago
|
Attachment #8670636 -
Flags: review?(matt.woodrow) → review+
Comment 11•9 years ago
|
||
Comment 12•9 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox44:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla44
You need to log in
before you can comment on or make changes to this bug.
Description
•