<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Aug 18, 2014 at 1:32 AM, Yang Andy <span dir="ltr"><<a href="mailto:williamyang13@hotmail.com" target="_blank">williamyang13@hotmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div dir="ltr">Hi Pekka<br><br>Thank you very much for your reply.<div class=""><br><br>> > 3.In order to run weston-launch,do i have to use gpu?<br>> No, you can choose e.g. the fbdev backend for Weston, and so Weston<br>
> will run on the /dev/fb, software rendered. No GPU used there in that<br>> sense. Software rendering also means that no application under Weston<br>> can use the GPU for rendering windows.<br><br></div>If i choose fbdev backend for weston,can i use EFL/Evas and EGL/OpenGL for draw graphics?<br>
</div></div></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div dir="ltr">I mean that EGL/OpenGL which implement Software rendering.<br></div></div>
</blockquote><div><br></div><div>I don't think you can use the fbdev backend with EGL. Somebody could attempt to try to make that work, but bringing up DRM/KMS on your platform would be a much better choice of your time.<br>
</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div dir="ltr">What the difference between drm-backend/fbdev-backend/wayland-backend/x11-backend?<br>
</div></div></blockquote><div><br></div><div>fbdev, or /dev/fb, is the deprecated simple API for doing any sort of rendering to a front-buffer. It's quite limited and doesn't have lots of functionality, so we replaced it with a newer API known as "DRM". The fbdev-backend uses the deprecated /dev/fb API.<br>
<br></div><div>The DRM uses the newer "DRM" API that replaces /dev/fb. The kernel implements the DRM API for a bunch of different GPUs, and apps like Weston and libraries like mesa can use these to do rendering and modesetting.<br>
<br></div><div>The X11 and Wayland backends are nested backends for testing. The X11 backend lets you test Weston on top of an existing X11 session, and the Wayland backend lets you test Weston on top of an existing Wayland session.<br>
</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div dir="ltr">Best regards.<br><br>Andy<br><div>> Date: Thu, 14 Aug 2014 16:57:26 +0300<br>
> From: <a href="mailto:ppaalanen@gmail.com" target="_blank">ppaalanen@gmail.com</a><br>> To: <a href="mailto:williamyang13@hotmail.com" target="_blank">williamyang13@hotmail.com</a><br>> CC: <a href="mailto:wayland-devel@lists.freedesktop.org" target="_blank">wayland-devel@lists.freedesktop.org</a><br>
> Subject: Re: [Help]Question about graphics architecture for weson/wayland<div><div class="h5"><br>> <br>> On Thu, 14 Aug 2014 08:36:43 +0000<br>> Yang Andy <<a href="mailto:williamyang13@hotmail.com" target="_blank">williamyang13@hotmail.com</a>> wrote:<br>
> <br>> > Hi everyone<br>> > <br>> > When i run 3D application through weston-launch, it failed because the graphics driver is not right.<br>> <br>> weston-launch starts weston, you cannot use it to launch something else.<br>
> <br>> > I have some questions for help.<br>> > <br>> > 1.Is there any requirement for Hardware(GPU??) / Drivers?<br>> <br>> Yes, see hardware enabling at<br>> <a href="http://wayland.freedesktop.org/architecture.html" target="_blank">http://wayland.freedesktop.org/architecture.html</a><br>
> <br>> > 2.Is DRM must for weston(compositor),how to setup DRM?<br>> <br>> Weston's DRM backend depends on DRM. Make sure your kernel has a DRM<br>> driver for your graphics chip.<br>> <br>> > 3.In order to run weston-launch,do i have to use gpu?<br>
> <br>> No, you can choose e.g. the fbdev backend for Weston, and so Weston<br>> will run on the /dev/fb, software rendered. No GPU used there in that<br>> sense. Software rendering also means that no application under Weston<br>
> can use the GPU for rendering windows.<br>> <br>> You can also choose Weston's DRM backend with the software (Pixman)<br>> renderer. That will not use the GPU either, but does need DRM and KMS.<br>> <br>
> > 4.Does GPU kernel drvier consist of kernel/driver/gpu/xxxx(xxxx.ko??) and of kernel/driver/gpu/drm/xxxx(DRM_xxxx.ko)?<br>> <br>> Roughly yes.<br>> <br>> > 5.Does user side drvier consist of EGL/OpenGLES?<br>
> <br>> The user space side of the driver usually implements EGL and OpenGL<br>> (desktop/ES/whatever).<br>> <br>> > 6.graphics architecture is Application⇒EGL/OpenGLES/⇒libDRM⇒DRM_xxxx.ko⇒xxxx.ko⇒GPU?<br>
> <br>> Yes, where EGL/OpenGLES is actually Mesa, since you have libdrm there.<br>> This is specific to the open source drivers.<br>> <br>> <br>> Thanks,<br>> pq<br></div></div></div> </div>
</div>
<br>_______________________________________________<br>
wayland-devel mailing list<br>
<a href="mailto:wayland-devel@lists.freedesktop.org">wayland-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/wayland-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/wayland-devel</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br> Jasper<br>
</div></div>