Git Product home page Git Product logo

Comments (12)

Cloudef avatar Cloudef commented on August 22, 2024

Is this llvmpipe? The mesa's old swrast does not work at least, however llvmpipe worked here at least under X11.

from wlc.

johalun avatar johalun commented on August 22, 2024

Yes, it is llvm pipe..

from wlc.

Cloudef avatar Cloudef commented on August 22, 2024

Maybe you could set WAYLAND_DISPLAY variable to something before running compositor. It will skip the SIGFPE setup (see: https://github.com/Cloudef/wlc/blob/master/src/wlc.c#L429-L434). However if this works, it most likely just hides bug in swrast.

There also seems to be software rendering related bug with latest mesa regarding weston https://bugs.freedesktop.org/show_bug.cgi?id=86701

from wlc.

johalun avatar johalun commented on August 22, 2024

Thanks! Works fine in VMWare.. Maybe go with that instead of VirtualBox (better support for hardware rendering..)

from wlc.

johalun avatar johalun commented on August 22, 2024

Oh it does not really work as I hoped.. I have hardware rendering working in VMWare. X11 works just fine. I can run wlc/example and weston under X11 in a window. Without X11 I can not run wlc/example or weston from console so I guess maybe the problem is in wayland or vmware.. weston says "failed to create display: no such file or directory".. According to wlc log, wlc tries to open Xwayland rather than using drm..

from wlc.

johalun avatar johalun commented on August 22, 2024

Ah! Progress. Got weston running by using "weston --backend=drm-backend.so" so it should be possible to run wlc as well, right?

from wlc.

Cloudef avatar Cloudef commented on August 22, 2024

Xwayland is not related to rendering. It's thing that provides you X11 inside Wayland. wlc will use drm when run from TTY. Can you show the full log for wlc.

from wlc.

johalun avatar johalun commented on August 22, 2024

Got this log:

Date: 2015-04-28 JST
[04:37:05.783] logind: session control granted
[04:37:05.783] Work done, dropping permissions and checking communication
[04:37:05.851] (WARN) Failed to open X11 display
[04:37:05.889] Activating tty
[04:37:05.889] become active
[04:37:05.890] INPUT DEVICE ADDED
[04:37:05.890] INPUT DEVICE ADDED
[04:37:05.890] INPUT DEVICE ADDED
[04:37:05.890] INPUT DEVICE ADDED

with envs:

WLC_XWAYLAND=0
WAYLAND_DISPLAY=0
WLC_DRM_DEVICE=card0

from wlc.

Cloudef avatar Cloudef commented on August 22, 2024

It seems like it's running OK, apart that it does not find any outputs and thus does not open any GLES2 context either.

from wlc.

Cloudef avatar Cloudef commented on August 22, 2024

What was the state of this issue. We got vmware to work at least partially, how was virtualbox?

from wlc.

johalun avatar johalun commented on August 22, 2024

Hardware rendering seem to be working somewhat on VirtualBox using Lubuntu 15. Weston does not run and wlc/example runs with this log. Screen is all black..

[11:18:18.563] Running on vt 1 (fd 0)
[11:18:18.571] Work done, dropping permissions and checking communication
[11:18:18.637] (WARN) Failed to open X11 display
[11:18:18.678] libinput: resume
[11:18:18.678] (WARN) Could not set master for drm fd (12)
[11:18:18.678] (WARN) Failed to get drm resources
[11:18:18.678] (WARN) drmModeGetResources failed
[11:18:18.678] become active
[11:18:18.678] INPUT DEVICE ADDED
[11:18:18.678] INPUT DEVICE ADDED
[11:18:18.678] INPUT DEVICE ADDED
[11:18:18.678] INPUT DEVICE ADDED
[11:18:18.678] INPUT DEVICE ADDED
[11:18:18.678] INPUT DEVICE ADDED
[11:18:18.678] INPUT DEVICE ADDED
[11:18:18.678] Xwayland :0 -rootless -terminate -listen 26 -listen 27 -wm 31

from wlc.

Cloudef avatar Cloudef commented on August 22, 2024

It seems virtualbox does not implement KMS I guess? Weston won't run without it, and wlc will fallback to headless mode (Which may not be what people want actually)

from wlc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.