3

I need to do headless hardware accelerated server rendering using OpenGL and found out that this is possible with pbuffers and frame buffer objects (FBO). But today these approaches still need a context and can't run without a running X server.

I found a (now deleted, but on web archive) presentation from Sun about exactly what I want to do with the title "The GLP OpenGL Extension, OpenGL Rendering Without A Window System".

What happened to this proposal and are there any alternatives today or any similar developments underway?

1 Answer 1

2

Recent versions of opensource Linux OpenGL drivers (that is, drivers provided by Mesa [1]) support rendering on headless machines without a window system. The Intel Mesa team (to which I belong) uses this feature to run OpenGL tests on headless machines with no X server.

A coworker and I added the support for headless rendering to Mesa's testsuite, Piglit [2], by using the Waffle [3] framework atop libEGL's GBM backend. (GBM stands for Generic Buffer Manager, and is used to manage GPU buffers without an intermediary display server).

A possible showstopper, if you wish to pursue this approach, is that to my knowledge EGL with GBM is only supported by opensource Linux drivers. If your appplication must support another Unix or proprietary drivers, this approach won't work.

If you're interested pursuing using EGL/GBM, I can point you to some example code.

(By the way, if you're unfamiliar with EGL, it's a modern replacement for GLX whose API is independent of window system. If you're comfortable with GLX, then you should feel at home with EGL because the two API's are very similar).

[1] http://mesa3d.org

[2] http://piglit.freedesktop.org

[3] http://people.freedesktop.org/~chadversary/waffle

2
  • 1
    Chadversary answered two of the three questions (are there any alternatives? similar developments today?), for the other one (What happened to GLP?) I have old private mail from one of the Sun engineers involved in which he said they proposed GLP to the OpenGL ARB, but the ARB chose EGL to standardize on instead.
    – alanc
    Commented Jan 22, 2013 at 7:24
  • This sounds quite interesting, although I probably can't use it because it would run in a production environment on Nvidia cards and from the description of the nouveau drivers it seems they aren't as stable as the proprietary ones.
    – letmaik
    Commented Jan 22, 2013 at 14:25

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .