Seems unrelated to the kernel and would have a better place in a compositor or in mesa. If you disagree, please file a bug in https://gitlab.freedesktop.org/drm/misc.