Closed Bug 1665815 Opened 4 years ago Closed 4 years ago

Black squares artifacts on Android WebRender (Emulator SwiftShader)

Categories

(Core :: Graphics: WebRender, defect)

Unspecified
Android
defect

Tracking

()

RESOLVED FIXED
83 Branch
Tracking Status
firefox-esr78 --- unaffected
firefox81 --- wontfix
firefox82 --- wontfix
firefox83 --- fixed

People

(Reporter: sotaro, Assigned: sotaro)

References

(Blocks 2 open bugs, Regression)

Details

(Keywords: regression)

Attachments

(2 files)

When I enabled WebRender on Android Emulator, I saw black squares.

Assignee: nobody → sotaro.ikeda.g

It looks similar to Bug 1558374. Clear seemed not work as expected.

OS: Unspecified → Android
Blocks: wr-android
Attached image Screenshot

What android emulator version are you running? And what Android version is the AVD? This appears to be with the swiftshader backend. does running the GPU backend work correctly?

Just so you know, I've actually just landed a patch to remove that code for Mali (bug 1663355). It wasn't the right fix, some websites still showed artefacts. So your patch will conflict with autoland.

Would you be able to run mozregression? If only Mali is buggy, or if only the emulator is buggy, then I assume it is just a driver/emulator bug. But if both are buggy, it makes me think that it could be a webrender bug.

Flags: needinfo?(sotaro.ikeda.g)

By Bug 1485981, it seems that mozregression alway tries to install ARM on android. I tried locally on android x86 emulator, but it failed.

(In reply to Sotaro Ikeda [:sotaro] from comment #7)

By Bug 1485981, it seems that mozregression alway tries to install ARM on android. I tried locally on android x86 emulator, but it failed.

Sorry, it should be addressed by Bug 1651760.

(In reply to Jamie Nicol [:jnicol] from comment #5)

What android emulator version are you running? And what Android version is the AVD? This appears to be with the swiftshader backend. does running the GPU backend work correctly?

On Android 7.0, 8.0, 9.0 and 10.0. All used Swift Shader. When backend was GPU backend, the problem did not happen.

Summary: Black squares artifacts on Android WebRender (Emulator) → Black squares artifacts on Android WebRender (Emulator SwiftShader)

Bug 1663355 affected to the patch, I am going to update it.

Checked regression with the following.

./mach mozregression -n gve --good 2020-09-10 --bad 2020-05-01 --pref gfx.webrender.all:true --arch x86_64

https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=0fdeafcdcb41a6e7def0650ef1d93e3e5bef9299&tochange=6199f7b91e8bde7b7965585842d7a72e2e406e3e

Bug 1621390 seemed to cause the regression.

Regressed by: 1621390
Has Regression Range: --- → yes
Attachment #9176454 - Attachment description: Bug 1665815 - Avoid using scissored glClear() on Android Emulator → Bug 1665815 - Avoid using scissored glClear() on Android Emulator with SwiftShader

Confirmed that updated patch worked on Android Emulator with SwiftShader on Android 7, 8, 9 and 10.

Flags: needinfo?(sotaro.ikeda.g)

(In reply to Sotaro Ikeda [:sotaro] from comment #11)

Checked regression with the following.

./mach mozregression -n gve --good 2020-09-10 --bad 2020-05-01 --pref gfx.webrender.all:true --arch x86_64

https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=0fdeafcdcb41a6e7def0650ef1d93e3e5bef9299&tochange=6199f7b91e8bde7b7965585842d7a72e2e406e3e

Bug 1621390 seemed to cause the regression.

Interesting. So the problem is perhaps to do with coloured scissored clears. So it seems different than the Mali bug, and it's not worth spending too much time on the emulator or swiftshader, so let's land this. Thanks!

Pushed by sikeda.birchill@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b60c4c84feab Avoid using scissored glClear() on Android Emulator with SwiftShader r=geckoview-reviewers,jnicol,agi
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 83 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: