Re: [e-users] Wayland problems

2019-01-11 Thread Carsten Haitzler
On Thu, 10 Jan 2019 15:20:14 -0500 Conrad Knight  said:

> On Thu, Jan 10, 2019 at 1:39 PM Carsten Haitzler  wrote:
> > As usual - wayland stuff is kind of new and experimental so I'd advise using
> > git master for that.
> > as for how to compile - look at the aur git pkgs:
> 
> Ok, i'll give it a shot :) Couple of quick questions:
> 
> For EFL, are "--enable-egl" and "--enable-gl-drm" not needed, then?
> What configure option does "-Dbuffer=true" correspond to?
> Does "-Dopengl=es-egl" mean "--with-opengl=es"? Because i don't see
> any other options besides "full" or "none".

that's the meson based build - you can just use it as-is and copy & paste... :)

> I have to admit, i'm a little lost on the differences and requirements
> for opengl, gl-drm, egl, es-egl, etc. Is there by any chance a short
> reference to all these terms?

once upon a time there was opengl. it included glue to the display system
called glx. then it needed to work on something other than x11, so the glx
functions were replaced by wgl or agl functions on windows and mac (i never
looked at or touched them but i know that they exist somewhere).

then the embedded world appeared with gpus on small devices and the whole
opengl api was a bit too fat. it was trimmed down to opengl-es. at the same
time a unified egl api was added to a separate egl library this was now "cross
platform" and could be used regardless of target display system.

once upon a time linux had no opengl acceleration infrastructure at the kernel
level. drm was born (direct rendering manager) as the kernel interface. it also
came together with dri (direct rendering infrastructure) so often the naming was
interchanged. there was now a libdrm library that acted as a front-end to
opening /dev/dri/card0,1,2, etc. and doing ioctl()'s and
read()ing/write()ing/mmap()ing it etc. this api also took on control of kms when
it turned up (kernel mode switching) to set modes and atomically swap buffers.

efl has 2 gl modes. opengl + glx, or opengl-es + egl. wayland required you use
egl. while in theory you can do opengl + egl, we do not offer that as an option
and we do stick to almost entirely using a subset of opengl that is common with
opengl-es. these days we COULD drop opengl entirely, but many years ago desktop
systems only offered opengl and embedded only offered opengl-es. today mesa
offers both for all the drivers i know of and nvidia also offer both even on
desktops. some embedded systems have gotten to offering opengl in addition to
opengl-es. so in order to use gl efl has to switch to opengl-es mode as that
then allows us to work with egl and support wayland. our drm based engines (2
of them) use libdrm to render directly to the "framebuffer" but with kms etc.
drm is just software based where the cpu renders to buffers and we flip buffers.
some drm implementations actually can only offer basic framebuffer management
like this and no gpu support. this also then works if you have a fully
accelerated opengl-es stack or not. the gl_drm is what it says on the lid -
uses gl with drm to have gpu based acceleration. only opengl-es though.

you did want an explanation... :)

> Thanks,
> -Conrad.
> 
> -- 
> Shine like thunder
> Cry like rain
> 


-- 
- Codito, ergo sum - "I code, therefore I am" --
Carsten Haitzler - ras...@rasterman.com



___
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users


Re: [e-users] Wayland problems

2019-01-11 Thread Conrad Knight
On Fri, Jan 11, 2019 at 3:24 AM Carsten Haitzler  wrote:
> that's the meson based build - you can just use it as-is and copy & paste... 
> :)

I was under the impression that meson building wasn't quite working
yet for efl. I just gave it a go, and it wants a more recent version
of meson, anyway...

> you did want an explanation... :)

Thanks for the info-dump, that's exactly what i was looking for! Would
it be safe to just enable "everything" in efl, or would there be
conflicts?
And, related, i just checked "glxinfo" in a wayland session (Ubuntu
has a login option for gnome in either wayland or xorg) and noticed it
was running the "mesa project and sgi" version instead of the nvidia
one i have in xorg. Does that mean not hardware accelerated (or at
least, not by my video card)?

It looks like there are some more things for me to work out before i
give wayland another shot.

On switching back, i seem to have messed something up... i've deleted
everything in /usr/local/ that got installed in the past few days, did
a "make clean", and "configure" with my usual options, "make", "make
install" for efl-1.21.1 and enlightenment-0.22.4 (released versions),
and now i can't login! I can start a bare X session, and run
enlightenment_start from an xterm, but this is hardly ideal. Trying to
start it from gdm directly just dumps me back at the login screen. Any
suggestions? I made sure to remove the
/usr/share/wayland-sessions/enlightenment.desktop file i had added, so
it's not trying to run a wayland session and failing (i think...?).
And "enlightenment_remote -desktop-show 2 1" now gives an error:

Error org.freedesktop.DBus.Error.UnknownMethod: Method "Show" with
signature "ii" on interface "org.enlightenment.wm.Desktop" doesn't
exist

Thanks,
-Conrad.

-- 
Shine like thunder
Cry like rain


___
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users