Shader disk cache is not supported with nightly on Windows
Categories
(Core :: Graphics: WebRender, defect, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr102 | --- | unaffected |
firefox106 | --- | unaffected |
firefox107 | --- | unaffected |
firefox108 | --- | fixed |
People
(Reporter: sotaro, Assigned: cmartin)
References
(Regression)
Details
(Keywords: regression)
Attachments
(1 file)
It seems like a regression from bug 1347710 Comment 78.
I saw the following error log in about:support with latest nightly on Windows.
GP+[GFX1-]: shader-cache: Shader disk cache is not supported
The problem did not happen with pref security.sandbox.gpu.level=0.
Reporter | ||
Comment 1•2 years ago
|
||
Old diagram of Shader disk cache implementation.
Comment 2•2 years ago
|
||
Chris, the shader cache is stored at [profile-path]/shader-cache
. Can we allow the gpu process access to that path?
Comment 3•2 years ago
|
||
Hmm.. seems like this should already be allowed:
https://searchfox.org/mozilla-central/rev/85cbcecd24554c1fa88360412452ad0f7ed48630/security/sandbox/win/src/sandboxbroker/sandboxBroker.cpp#990
Updated•2 years ago
|
Reporter | ||
Comment 4•2 years ago
|
||
use_disk_cache in WrProgramCache::new() was false
Once Firefox run with pref security.sandbox.gpu.level=0, the use_disk_cache became true even with pref security.sandbox.gpu.level=1.
But the following new error message exists.
GP+[GFX1-]: shader-cache: Failed to write startup whitelist
Reporter | ||
Comment 5•2 years ago
|
||
gfxUtils::RemoveShaderCacheFromDiskIfNecessary() removes shader disk cache from parent process if Firefox build version or gfx driver is updated. It might be related to the following error.
GP+[GFX1-]: shader-cache: Shader disk cache is not supported
Assignee | ||
Comment 6•2 years ago
|
||
Updated•2 years ago
|
Assignee | ||
Comment 7•2 years ago
|
||
FWIW on my machine, the code Jeff shared in Comment 3 still works and allows access to the shader cache... So there must be some difference between machines here.
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Updated•2 years ago
|
Pushed by cmartin@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1fa40d8e9320 Workaround: allow access to entire filesystem from GPU sandbox r=handyman,jrmuizel
Comment 9•2 years ago
|
||
bugherder |
Updated•2 years ago
|
Comment 10•2 years ago
|
||
This TEMPORARY WORKAROUND
should have at the very least a follow-up bug to fix the hack it introduces.
Assignee | ||
Comment 11•2 years ago
|
||
Whoops -- Meant to do this before I left for PTO. FWIW I did have it at the top of my notes to file a follow-up bug :)
Assignee | ||
Updated•2 years ago
|
Description
•