Garbled textures after resume from hibernate on Lunar Lake
After resuming from hibernation, the textures of any graphical applications (including the compositor) are garbled until they are restarted or somehow forced to reload their resources. Happens on every resume from hibernation.
Textures are not completely random, but almost look like a permutation of the tiles making up each application window; see attached screenshot of Firefox and the Kitty and Foot terminals for reference. The last rendered screen from before hibernating seems to be perfectly preserved immediately after resume, but as soon as any window updates the garbled textures kick in.
Using Firefox to illustrate the behaviour, refreshing a page in this state will re-render the page correctly on a structural level, but any individual resources that were not reloaded (images, fonts, etc.) will still be garbled, making the page look like a lovecraftian horror version of itself. Same applies when navigating to a new page, but any resources that were NOT loaded before hibernation will appear normal.
Observed on a Dell XPS 13 9350 (Core Ultra 7 258V) running Fedora 41, on upstream kernel 6.12-rc6 with the patches that fix the GPU freeze after resume applied. Also happens on drm-tip, commit 9bcce25c88a853967702ceae9f9ef35d2c0e7ee8. Reproduced on sway, hyprland and wayfire. Blacklisting the xe module and using software rendering "fixes" the issue.