Experimental Wayland VRR breaks direct scanout
Affected version
- Fedora 40
- Mutter 46
- Issue appearing in Wayland
- AMDGPU
- Xwayland 23.2
Bug summary
When variable refresh rate is enabled, games and VRRTest seem to skip in and out of direct scanout constantly, which seems to negate some of the benefits of VRR. Disabling VRR fixes the issue, but of course without the benefit of VRR.
Also, when first logging into a session, if VRR is already enabled and you open a game/VRRTest, the screen stays mostly or completely red until you disable and reenable VRR.
Steps to reproduce
- Enable PAINT_DAMAGE_REGIONS flag
- Open VRRTest or a game (I've been using Total War: Warhammer 3)
- See that the screen will flicker red
- Disable VRR and see the screen no longer flickers red
What happened
Direct scanout not sustaining and VRR not staying consistent.
What did you expect to happen
Direct scanout to sustain the same as when VRR is disabled.
Edited by Tayler Geiger