Closed Bug 1736626 Opened 4 years ago Closed 4 years ago

NV12 IOSurface upload is not aligning the CbCr plane correctly

Categories

(Core :: Graphics: WebRender, defect)

All
macOS
defect

Tracking

()

RESOLVED FIXED
95 Branch
Tracking Status
firefox95 --- fixed

People

(Reporter: mstange, Assigned: mstange)

References

Details

Attachments

(1 file)

We suspect that this is the reason why we were seeing artifacts on some hardware configurations when we tried using NV12 IOSurfaces for software-decoded video last time. See bug 1657107 for those artifacts.

Apparently this doesn't fix the issue. :(

But at least it gets us detachment for software-decoded NV12 video on M1 Macs! I'm not sure which part of the patch is responsible for this.

Without this patch, software-decoded NV12 does not achieve detachment on M1 Macs, see bug 1732677 comment 13.

Chromium likely encountered the same problem, see https://bugs.chromium.org/p/chromium/issues/detail?id=1134712 .

(In reply to Markus Stange [:mstange] from comment #2)

Apparently this doesn't fix the issue. :(

Jeff found the real reason: we were using kIOSurfaceBytesPerElement instead of kIOSurfacePlaneBytesPerElement, i.e. missing the word Plane. He's fixing it in bug 1736670.

Attachment #9246685 - Attachment description: Bug 1736626 - Align the CbCr plane properly when creating NV12 IOSurfaces. r=jrmuizel → Bug 1736626 - Properly align more IOSurface properties. r=jrmuizel
Blocks: 1733499
Pushed by mstange@themasta.com: https://hg.mozilla.org/integration/autoland/rev/4535cfabee0d Properly align more IOSurface properties. r=jrmuizel
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 95 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: