The winsys-egl-kms patch from upstream breaks gnome-shell/wayland. Upstream reports issues on Intel and I reported it for Nouveau. Please remove this patch until upstream has a working patch. https://bugzilla.gnome.org/show_bug.cgi?id=758073
This commit is also applied on Fedora to try to avoid a bug is getting a blank screen when, for example, powering off the computer, without it, the screen turns black after X are killed and you need to wait until computer is effectively powered off. Maybe this is only showing problems on wayland setups as, from what I see in your comments, you are using wayland, right?
Ah, are you referring to the cogl-1.22.0-initial-output.patch patch? (as the bogus one?) I was referring to the cogl-1.22.0-wait-flip.patch one as the patch I want to preserve ;)
Yes, removing/commenting this patch fixes gnome session on wayland for me: # Upstream fixes from 1.22 branch # winsys-egl-kms: bypass initial output setup if kms fd passed in epatch "${FILESDIR}"/${P}-initial-output.patch
[master 45604bc] media-libs/cogl: Stop applying buggy patch (#573514 by Pascal Flöschel) 1 file changed, 141 insertions(+) create mode 100644 media-libs/cogl/cogl-1.22.0-r2.ebuild