Closed Bug 953215 Opened 11 years ago Closed 10 years ago

Optimize per pixel alpha blending in H/W Composition.

Categories

(Firefox OS Graveyard :: General, defect, P2)

ARM
Gonk (Firefox OS)
defect

Tracking

(blocking-b2g:1.3+, firefox27 wontfix, firefox28 fixed, firefox29 fixed, b2g-v1.3 fixed, b2g-v1.3T fixed, b2g-v1.4 fixed)

RESOLVED FIXED
1.3 C2/1.4 S2(17jan)
blocking-b2g 1.3+
Tracking Status
firefox27 --- wontfix
firefox28 --- fixed
firefox29 --- fixed
b2g-v1.3 --- fixed
b2g-v1.3T --- fixed
b2g-v1.4 --- fixed

People

(Reporter: sushilchauhan, Assigned: sushilchauhan)

Details

Attachments

(1 file, 1 obsolete file)

Per pixel alpha blending operation is not needed when a layer is opaque and visible content on the layer is promised to be opaque. I have attached the corresponding patch.
Attachment #8351521 - Flags: review?(dwilson)
Assignee: nobody → sushilchauhan
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Please test it on ICS reference device with FFOS v1.3
blocking-b2g: --- → 1.3?
Tested on JB and ICS reference devices with FFOS v1.3. Please review.
Comment on attachment 8351521 [details] [diff] [review]
Optimize per pixel alpha blending in H/W Composition.

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

LGTM
Attachment #8351521 - Flags: review?(dwilson) → review+
Uploading HG friendly version of reviewed patch.
Attachment #8351521 - Attachment is obsolete: true
Attachment #8357480 - Flags: review+
Keywords: checkin-needed
Why was this nominated to block for 1.3?
Flags: needinfo?(sushilchauhan)
(In reply to Jason Smith [:jsmith] from comment #5)
> Why was this nominated to block for 1.3?

Because it leads to MDP hang on b2g v1.3 device during monkey runs.

Setting default HWC_BLENDING_PREMULT on each layer leads to an unnecessary full-screen solid fill (clear with black color) in HAL on each frame during H/W composition which is unnecessary load on MDP. Plus it optimizes per pixel alpha blending operation.
Flags: needinfo?(sushilchauhan)
SurfaceFlinger in Android also follows same approach.
blocking-b2g: 1.3? → 1.3+
https://hg.mozilla.org/mozilla-central/rev/16969ee4b04b
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Flags: in-moztrap-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: