Closed Bug 1568136 Opened 6 years ago Closed 6 years ago

Call gfxUtils::RemoveShaderCacheFromDiskIfNecessary() in gfxPlatform::InitWebRenderConfig()

Categories

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

Unspecified
Windows
defect

Tracking

()

RESOLVED FIXED
mozilla70
Tracking Status
firefox-esr60 --- unaffected
firefox-esr68 --- disabled
firefox68 --- wontfix
firefox69 --- fixed
firefox70 --- fixed

People

(Reporter: sotaro, Assigned: sotaro)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

gfxUtils::RemoveShaderCacheFromDiskIfNecessary() is called before gfxPlatform::InitWebRenderConfig(). It is not good. By it, obsoleted program binary might be used after Firefox update.

Assignee: nobody → sotaro.ikeda.g
Regressed by: 1546901
Priority: -- → P1
Blocks: 1567620
OS: Unspecified → Windows

I've noticed some "failed to compile shader" log messages on my android devices, and can confirm that this is the cause, and your patch fixes it. Hopefully this will fix bug 1567620 too.

Pushed by sikeda.birchill@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/920ff23dbffc Call gfxUtils::RemoveShaderCacheFromDiskIfNecessary() in gfxPlatform::InitWebRenderConfig() r=nical
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla70

Please nominate this for Beta approval when you get a chance. IIUC, we don't need this on ESR68 since WebRender is disabled there.

Comment on attachment 9079942 [details]
Bug 1568136 - Call gfxUtils::RemoveShaderCacheFromDiskIfNecessary() in gfxPlatform::InitWebRenderConfig()

Beta/Release Uplift Approval Request

  • User impact if declined: Obsoleted shader program could continue to exist in a disk cache and could be loaded. It could cause a problem like Bug 1567620 if the program is obsoleted by graphics driver update. But if the program is obsoleted by WR shader change, the program is loaded, but it is not used by WR, since different program uses different digest(file name).
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • 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): The change reverts to before Bug 1546901 fix.
  • String changes made/needed: none
Flags: needinfo?(sotaro.ikeda.g)
Attachment #9079942 - Flags: approval-mozilla-beta?

Comment on attachment 9079942 [details]
Bug 1568136 - Call gfxUtils::RemoveShaderCacheFromDiskIfNecessary() in gfxPlatform::InitWebRenderConfig()

Fixes running a stale shader program in some situations when WebRender is enabled, which can cause badness. Approved for 69.0b8.

Attachment #9079942 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: