All of lore.kernel.org
 help / color / mirror / Atom feed
* Variable Refresh Rate & flickering screens
@ 2020-03-11 20:09 Simon Ser
  2020-03-12 10:45 ` Michel Dänzer
  0 siblings, 1 reply; 8+ messages in thread
From: Simon Ser @ 2020-03-11 20:09 UTC (permalink / raw)
  To: DRI Development, Ville Syrjala, Manasi Navare, Harry Wentland,
	Alex Deucher, Scott Anderson, Anthony.Koo@amd.com, Martin Peres

Hi all,

I've been working on adding VRR support to Sway [1] (a Wayland
compositor). The compositor just sets the VRR_ENABLED property.

This works fine for some screens, but causes flcikering for other
screens as expected [2]. Fixing the flickering is something we've
talked about last XDC [3]. The flickering is caused by physical
limitations of the screen: changing the refresh rate too quickly
results in brightness issues.

The approach taken by xf86-video-amdgpu is to only enable VRR if an app
is fullscreen and not present in a special Mesa blacklist (e.g. Firefox
is in the blacklist because it doesn't render at a fixed interval).

For Wayland, I'd prefer to avoid having a blacklist. I'd like to be
able to use VRR in the general case (not just for fullscreen apps).
A way to fix the flickering would be to implement a slew rate and make
it so refresh rate variations are capped by the slew rate.

The main question is: should this be implemented in the kernel or in
user-space?

I personally think it'd make more sense to implement this in the
kernel. This would de-duplicate the slew rate logic between compositors
and would avoid unnecessarily waking up user-space.

Moreover, it seems Intel hardware supports programming a slew rate
directly. To take advantage of this feature the slew rate needs to be
implemented in the kernel.

Harry, what do you think?

Thanks,

Simon

[1]: https://github.com/swaywm/sway/pull/5063
[2]: https://github.com/swaywm/sway/issues/5076
[3]: https://xdc2019.x.org/event/5/contributions/331/
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-03-26  9:45 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-11 20:09 Variable Refresh Rate & flickering screens Simon Ser
2020-03-12 10:45 ` Michel Dänzer
2020-03-12 11:25   ` Simon Ser
2020-03-12 14:43     ` Harry Wentland
2020-03-17  9:08       ` Simon Ser
2020-03-17 13:25         ` Harry Wentland
2020-03-25 18:55           ` Manasi Navare
2020-03-26  9:45             ` Simon Ser

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.