[Webkit-unassigned] [Bug 223096] New: [GPU Process] Encoding buffer for DisplayList items should be aligned to 8 bytes

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Mar 11 15:43:33 PST 2021


https://bugs.webkit.org/show_bug.cgi?id=223096

            Bug ID: 223096
           Summary: [GPU Process] Encoding buffer for DisplayList items
                    should be aligned to 8 bytes
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Canvas
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: sabouhallawa at apple.com
                CC: dino at apple.com

ItemBuffer::append() allocates a static buffer whose size = sizeof(DisplayList::Item) + uint64_t for the DisplayList::ItemType. But this static buffer is of type uint8_t. So this array should be aligned to the alignment of a single uint8_t which is 1.

The expectation is to have this buffer aligned to 8 bytes so all each member in the encoded DisplayList::Item can be aligned to its alignment requirement.

This was caught on Apple Silicon when trying to enable GPU rendering for 2D canvas for layout tests. See https://build.webkit.org/#/builders/103/builds/88. But the same assertion fires if the same page is just opened in mini browser while GPU rendering for 2D canvas is enabled.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210311/294c3873/attachment.htm>


More information about the webkit-unassigned mailing list