Closed
Bug 901722
Opened 12 years ago
Closed 12 years ago
Support component alpha layers with d3d11 compositor
Categories
(Core :: Graphics: Layers, defect)
Tracking
()
RESOLVED
FIXED
mozilla26
People
(Reporter: nrc, Assigned: nrc)
References
Details
Attachments
(4 files, 2 obsolete files)
|
14.14 KB,
patch
|
mattwoodrow
:
review+
|
Details | Diff | Splinter Review |
|
11.31 KB,
patch
|
nrc
:
review+
|
Details | Diff | Splinter Review |
|
52.05 KB,
patch
|
nrc
:
review+
|
Details | Diff | Splinter Review |
|
2.26 KB,
patch
|
nrc
:
review+
|
Details | Diff | Splinter Review |
Requires making Azure and component alpha work together in ThebesLayerBuffer. Also we need to not have component alpha for Metro.
| Assignee | ||
Comment 1•12 years ago
|
||
Attachment #786025 -
Flags: review?(matt.woodrow)
| Assignee | ||
Comment 2•12 years ago
|
||
Attachment #786760 -
Flags: review?(bas)
Comment 3•12 years ago
|
||
Comment on attachment 786760 [details] [diff] [review]
component alpha for d3d11 compositor
Review of attachment 786760 [details] [diff] [review]:
-----------------------------------------------------------------
D3D10 should use a single pass and use DualOutput blending. See also the current D3D10 code. This requires a little adjustment to the LayerManagerComposite, obviously.
We should also actively investigate dropping component alpha in all the hard cases. (Or maybe everywhere as IE has done)
Attachment #786760 -
Flags: review?(bas) → review-
Updated•12 years ago
|
Attachment #786025 -
Flags: review?(matt.woodrow) → review+
| Assignee | ||
Comment 4•12 years ago
|
||
Attachment #786760 -
Attachment is obsolete: true
Attachment #787224 -
Flags: review?(bas)
Comment 5•12 years ago
|
||
Comment on attachment 787224 [details] [diff] [review]
on pass component alpha
Review of attachment 787224 [details] [diff] [review]:
-----------------------------------------------------------------
There we go!
::: gfx/layers/d3d9/CompositorD3D9.cpp
@@ -376,5 @@
> device()->SetTexture(0, sourceOnBlack->GetD3D9Texture());
> device()->SetTexture(1, sourceOnWhite->GetD3D9Texture());
> device()->SetRenderState(D3DRS_SRCBLEND, D3DBLEND_ZERO);
> device()->SetRenderState(D3DRS_DESTBLEND, D3DBLEND_INVSRCCOLOR);
> - device()->SetRenderState(D3DRS_SEPARATEALPHABLENDENABLE, TRUE);
Not sure why this particular change is in this patch, probably shouldn't be :-).
Attachment #787224 -
Flags: review?(bas) → review+
| Assignee | ||
Comment 6•12 years ago
|
||
(In reply to Bas Schouten (:bas.schouten) from comment #5)
> Comment on attachment 787224 [details] [diff] [review]
> on pass component alpha
>
> Review of attachment 787224 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> There we go!
>
> ::: gfx/layers/d3d9/CompositorD3D9.cpp
> @@ -376,5 @@
> > device()->SetTexture(0, sourceOnBlack->GetD3D9Texture());
> > device()->SetTexture(1, sourceOnWhite->GetD3D9Texture());
> > device()->SetRenderState(D3DRS_SRCBLEND, D3DBLEND_ZERO);
> > device()->SetRenderState(D3DRS_DESTBLEND, D3DBLEND_INVSRCCOLOR);
> > - device()->SetRenderState(D3DRS_SEPARATEALPHABLENDENABLE, TRUE);
>
> Not sure why this particular change is in this patch, probably shouldn't be
> :-).
Oh, they were just things I noticed were wrong with the d3d9 compositor whilst looking at blend modes. I'll pull them out into another patch.
| Assignee | ||
Comment 7•12 years ago
|
||
| Assignee | ||
Comment 8•12 years ago
|
||
Splitting the previous patch into three. Carrying r=Bas for all patches.
Attachment #787224 -
Attachment is obsolete: true
Attachment #787782 -
Flags: review+
| Assignee | ||
Comment 9•12 years ago
|
||
Attachment #787783 -
Flags: review+
| Assignee | ||
Comment 10•12 years ago
|
||
Attachment #787784 -
Flags: review+
| Assignee | ||
Comment 11•12 years ago
|
||
Comment 12•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/c0274b4c2499
https://hg.mozilla.org/mozilla-central/rev/198e81ab1bb9
https://hg.mozilla.org/mozilla-central/rev/00d371b69457
https://hg.mozilla.org/mozilla-central/rev/8d8f82c911f6
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla26
You need to log in
before you can comment on or make changes to this bug.
Description
•