Closed Bug 1203829 Opened 9 years ago Closed 9 years ago

Add more compositor support for mix-blend modes

Categories

(Core :: Graphics: Layers, defect)

40 Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla43
Tracking Status
firefox43 --- fixed

People

(Reporter: dvander, Assigned: dvander)

References

Details

Attachments

(4 files)

      No description provided.
Attached patch use newer fxcSplinter Review
The FXC used in the tree is from 2009, and reports as version "9.29". The compiler in the latest Windows SDK is from 2013, and reports as version "6.3".

I don't know what to make of that, but Matt suggested using the newer-dated version, so I ran it once before changing shaders on top of it.
Attachment #8659721 - Flags: review?(matt.woodrow)
The way shaders are initialized makes it pretty verbose to add new shaders. This is a little refactoring to make it easier.
Attachment #8659722 - Flags: review?(matt.woodrow)
Add support for OP_MULTIPLY and OP_SCREEN blend modes in CompositorD3D11. (Most of this diff is the new shader bytecode.)
Attachment #8659723 - Flags: review?(matt.woodrow)
Attachment #8659723 - Attachment description: MULTIPLY and SOURCE support for d3d11 → MULTIPLY and SCREEN support for d3d11
Attachment #8659718 - Flags: review?(matt.woodrow) → review+
Attachment #8659721 - Flags: review?(matt.woodrow) → review+
Attachment #8659722 - Flags: review?(matt.woodrow) → review+
Comment on attachment 8659723 [details] [diff] [review]
MULTIPLY and SCREEN support for d3d11

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

::: gfx/layers/d3d11/CompositorD3D11.cpp
@@ +620,3 @@
>  
>  void
>  CompositorD3D11::SetPSForEffect(Effect* aEffect, MaskType aMaskType, gfx::SurfaceFormat aFormat)

Comment about how RENDER_TARGET/RGB are handled later on.

@@ +628,1 @@
>      mContext->PSSetShader(mAttachments->mRGBAShader[aMaskType], nullptr, 0);

This is unreachable and should be removed, right?
Attachment #8659723 - Flags: review?(matt.woodrow) → review+
https://hg.mozilla.org/mozilla-central/rev/c76ccb113197
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla43
Depends on: 1207041
Depends on: 1208302
Depends on: 1237979
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: