Why are you making this more difficult than it needs to be? As I
already said, you don't need to use vglclient to display to a local X
proxy. Just do:
Xvfb :1 -screen 0 1024x768x24 -fbdir vfb_test/fbdir1 &
DISPLAY=:1 /opt/VirtualGL/bin/vglrun -c 0 +v -sp -fps 5.0
/opt/VirtualGL/bin/glxspheres
and similarly for display :2.
Not sure why the context would be indirect on display :0. When you log
into the server locally and run glxinfo, does it also report an indirect
context? If so, then it's probably something amiss with the driver
configuration. If, however, when you log into the server locally and
run glxinfo, it reports a direct context, then try leaving it logged in
and run VGL from your remote shell again. If you no longer get the
warning message, then that means there's something amiss with how
vglserver_config is configuring the device permissions on your machine.
It may be a bug in that script (it honestly doesn't get tested very
often on ATI hardware.)
On 12/2/12 8:13 PM, charles quarra wrote:
> Ok i think it is working correctly now, what i did is this:
>
>
> 1) start Xvfb instances:
> Xvfb :1 -screen 0 1024x768x24 -fbdir vfb_test/fbdir1 &
> Xvfb :2 -screen 0 1024x768x24 -fbdir vfb_test/fbdir2 &
> ...
>
> 2) start vglclients
> /opt/VirtualGL/bin/vglclient -display localhost:1.0 -port 4242 -detach
> /opt/VirtualGL/bin/vglclient -display localhost:2.0 -port 4243 -detach
>
> 3) start applications to be tested
> /opt/VirtualGL/bin/vglrun -cl localhost:4242 +v -c rgb -sp -fps 5.0 --
> ../Downloads/VirtualGL-2.3.2/bin/glxspheres
> /opt/VirtualGL/bin/vglrun -cl localhost:4243 +v -c rgb -sp -fps 5.0 --
> ../Downloads/VirtualGL-2.3.2/bin/glxgears
>
>
> which works great, as Xvfb renders each display successfully
>
>
> only thing that is worrying me is a message that the rendering context
> is indirect after i start glxspheres:
>
>
> $ /opt/VirtualGL/bin/vglrun -cl localhost:4242 +v -c rgb -sp -fps 5.0
> -- ../Downloads/VirtualGL-2.3.2/bin/glxspheres
> Polygons in scene: 62464
> [VGL] Shared memory segment ID for vglconfig: 1769493
> [VGL] VirtualGL v2.3.2 64-bit (Build 20121128)
> [VGL] Opening local display :0
> [VGL] NOTICE: Replacing dlopen("libGL.so.1") with dlopen("librrfaker.so")
> [VGL] NOTICE: Replacing dlopen("libGL.so.1") with dlopen("librrfaker.so")
> Visual ID of window: 0x23
> [VGL] WARNING: The OpenGL rendering context obtained on X display
> [VGL] :0 is indirect, which may cause performance to suffer.
> [VGL] If :0 is a local X display, then the framebuffer device
> [VGL] permissions may be set incorrectly.
> Context is Indirect
> OpenGL Renderer: AMD Radeon HD 6800 Series
> [VGL] Using 1 / 8 CPU's for compression
> [VGL] Using synchronous readback (GL format = 0x1907)
> [VGL] Client version: 2.1
> 5.940935 frames/sec - 6.630083 Mpixels/sec
> 5.006409 frames/sec - 5.587152 Mpixels/sec
>
>
> any idea why i'm getting this message? does it mean that is not doing
> GPU rendering?
>
>
> thanks for your help so far!
>
> ------------------------------------------------------------------------------
> Keep yourself connected to Go Parallel:
> BUILD Helping you discover the best ways to construct your parallel projects.
> http://goparallel.sourceforge.net
> _______________________________________________
> VirtualGL-Users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/virtualgl-users
>
------------------------------------------------------------------------------
Keep yourself connected to Go Parallel:
BUILD Helping you discover the best ways to construct your parallel projects.
http://goparallel.sourceforge.net
_______________________________________________
VirtualGL-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/virtualgl-users