Open Bug 1706222 Opened 3 years ago Updated 22 days ago

Rendering artifact with test case of Bug 1678938

Categories

(Core :: Graphics: WebRender, defect, P3)

defect

Tracking

()

People

(Reporter: sotaro, Unassigned)

References

(Blocks 2 open bugs)

Details

Attachments

(2 files, 1 obsolete file)

Found the problem during looking into crash test crash with sw-wr on Android.

When I tested test contents of Bug 1678938, I saw rendering artifact both with WebRender and sw-wr on Win10 and on Linux.

The problem did not happen by disabling WebRender and chrome browser.

Attached image screenshot 1
Attached image screenshot 2

:gw, can you comment to the bug?

Flags: needinfo?(gwatson)
Blocks: 1706011

The transform matrix on that border primitive is:

        m11: 2513,
        m12: 4.666667,
        m13: 3,
        m14: 2.6666667,
        m21: 5029,
        m22: 11.333334,
        m23: 7.0000005,
        m24: 5.3333335,
        m31: 7545,
        m32: 18,
        m33: 11,
        m34: 8,
        m41: -2357183.5,
        m42: -4370.333,
        m43: -2810.5,
        m44: -2501.3333,

I suspect that non-WR Gecko is probably rejecting that transform and skipping rendering of that content?

Matt, do you know if this might be a case where Gecko is skipping rendering of this primitive and if so, where any such code might exist?

Flags: needinfo?(gwatson) → needinfo?(matt.woodrow)
Severity: -- → S3
Priority: -- → P3

Sorry, totally forgot about this.

I think we cull out parts of polygons that cross through the w=0 plane, which might be what's needed here. https://searchfox.org/mozilla-central/rev/dedc585e3028e9b1ac9815e49b21e8f37e5ed3b7/gfx/2d/Polygon.h#314-316

Flags: needinfo?(matt.woodrow)
Attachment #9385152 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: