Closed Bug 1715895 Opened 3 years ago Closed 3 years ago

Disable sw-wr on non-x86 Linux in late beta and release.

Categories

(Core :: Graphics: WebRender, defect)

defect

Tracking

()

RESOLVED FIXED
91 Branch
Tracking Status
firefox89 --- fixed
firefox90 --- fixed
firefox91 --- fixed

People

(Reporter: jrmuizel, Assigned: jrmuizel)

References

Details

Attachments

(2 files)

This avoids bug 1714064 (SPARC) and bug 1714511 (ARM)

Blocks: 1714511
Blocks: 1714064

Comment on attachment 9226414 [details]
Bug 1715895 - Disable sw-wr on non-x86 Linux in late beta and release.

Beta/Release Uplift Approval Request

  • User impact if declined: Crashes on SPARC and video corruption on ARM Linux
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): This just disables sw-wr on 89 (switches back to the same as 88) on non-x86, it has no impact on builds that we ship.
  • String changes made/needed:
Attachment #9226414 - Flags: approval-mozilla-release?
Attachment #9226414 - Flags: approval-mozilla-beta?
Pushed by jmuizelaar@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6d9f9d90a767 Disable sw-wr on non-x86 Linux in late beta and release. r=aosmond
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 91 Branch

Jeff, I am assuming that this would fix bug 1714511, correct?
I saw that the uplift request in bug 1714069 was removed today, would that also be fixed with this one?

Flags: needinfo?(jmuizelaar)

Nope, this won't help with bug 1714069. We're hoping to use bug 1715902 for that instead.

Flags: needinfo?(jmuizelaar)

Comment on attachment 9226414 [details]
Bug 1715895 - Disable sw-wr on non-x86 Linux in late beta and release.

Approved for beta and release, thanks.

Attachment #9226414 - Flags: approval-mozilla-release?
Attachment #9226414 - Flags: approval-mozilla-release+
Attachment #9226414 - Flags: approval-mozilla-beta?
Attachment #9226414 - Flags: approval-mozilla-beta+

Jeff, this patch does not graft cleanly to release, could you provide a rebased patch please? Thanks

Flags: needinfo?(jmuizelaar)
Flags: needinfo?(jmuizelaar)
Regressions: 1717843

I'm confused. There is EARLY_BETA_OR_EARLIER in:

https://hg.mozilla.org/mozilla-central/rev/6d9f9d90a767f4dd696b5648e5ebb0956108e3d4

which can be valid also on SPARC and thus it causes problem again...

But original fix pointed in https://bugzilla.mozilla.org/show_bug.cgi?id=1715895#c11 was missing EARLY_BETA_OR_EARLIER.

Flags: needinfo?(jmuizelaar)

Indeed. sw-wr is disabled in release but it is just temporary to give non-x86 platforms a chance to get their bugs sorted out. The #ifdef will likely be going away in Firefox 91 or 92.

Flags: needinfo?(jmuizelaar)

I would prefer to remove the #ifdef in Firefox 92 (after ESR version)...

(In reply to Jeff Muizelaar [:jrmuizel] from comment #13)

Indeed. sw-wr is disabled in release but it is just temporary to give non-x86 platforms a chance to get their bugs sorted out. The #ifdef will likely be going away in Firefox 91 or 92.

While Firefox 91 still contains the ifdef:

https://searchfox.org/mozilla-esr91/rev/0b6fc0f59e4f070fe176124f63c8b7db0a4c8b73/widget/gtk/GfxInfo.cpp#793

it no longer seems to workaround SPARC Rust issue (wr_dp_push_stacking_context() gets wrong parameters).

Is there still possibility to run Firefox 91 without WebRender API? Even for: firefox -P.

Flags: needinfo?(jmuizelaar)

You should be able gfx.webrender.force-legacy-layers=true to disable WebRender in 91

Flags: needinfo?(jmuizelaar)

Actually, that's wrong. gfx.webrender.force-disabled=true should still work in 91. gfx.webrender.force-legacy-layers=true is just for 92

(In reply to Jeff Muizelaar [:jrmuizel] from comment #17)

Actually, that's wrong. gfx.webrender.force-disabled=true should still work in 91. gfx.webrender.force-legacy-layers=true is just for 92

Sorry. What that just mean? Is it expected that function wr_dp_push_stacking_context() is called in Firefox 91 then?

I'm trying to workaround SPARC Rust issue (https://github.com/rust-lang/rust/issues/86163) and avoid to call this function (and similar which passes Box2D structure as argument).

Flags: needinfo?(jmuizelaar)

When gfx.webrender.force-disabled=true is set in Firefox 91, wr_dp_push_stacking_context should not be called.

Flags: needinfo?(jmuizelaar)

(In reply to Jeff Muizelaar [:jrmuizel] from comment #19)

When gfx.webrender.force-disabled=true is set in Firefox 91, wr_dp_push_stacking_context should not be called.

Thank you! Starting Firefox 91 with MOZ_WEBRENDER=0 seems to be the best option now.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: