The final Goal is to do JPEG compression done by TurboVNC using libjpeg on
GPU and not on CPU and in order to do that below is the given setup.
We have a setup where VirtualGL interrupts all GLX calls and renders
offline in a pbuffer on a NVIDIA GPU. In normal setup VirtualGL reads this
rendered image and then this image is taken by TurboVNC. TurboVNC
does compression of this image using libjpeg and sends it over to the
client side. Now we want to fasten the process of compressing the image
using CUDA on NVIDIA GPU.
In order to do that I need to send this image to GPU and run the parallel
compression algorithm and get back the compressed image to CPU to be sent
to client. In order to save this extra effort of transferring data back and
forth between GPU we thought VirtualGL should not read back the pbuffer
and TurboVNC directly takes this pbuffer to do the compression on GPU.
This saves 2 copies to the GPU. So I set VGL_READBACK=0 so that VirtualGL
does not read back the pbuffer. Now the question is how does this pbuffer
is accessible to TurboVNC?
As I said I am new to VirtualGL and TurboVNC so kindly suggest the
appropriate way of doing this.
On Thu, Jun 20, 2013 at 8:16 PM, DRC <dcomman...@users.sourceforge.net>wrote:
> Please explain what you're trying to accomplish.
>
> On Jun 20, 2013, at 1:54 AM, Bharatkumar Sharma <
> bharatkumar.sha...@gmail.com> wrote:
>
> > Hi,
> >
> > I am new to VirtualGL and TurboVNC. We have requirement that VirtualGL
> should not readback the rendered image and TurboVNC before compressing the
> rendered image should get handle to this pbuffer.
> > After reading the VirtualGL guide I see that setting VGL_READBACK will
> solve the first part of problem where the rendered image is not read back.
> > But how to get handle to the pbuffer in TuboVNC before compression and
> sending to the client part is not very clear to me.
> >
> > In my knowledge pbuffer cannot be shared acroos process. I saw a similar
> approach used by ParaView where they create a wrapper around swapbuffer but
> I am not sure how to implement this.
> >
> > Regards,
> > Bharat
> >
> ------------------------------------------------------------------------------
> > This SF.net email is sponsored by Windows:
> >
> > Build for Windows Store.
> >
> > http://p.sf.net/sfu/windows-dev2dev
> > _______________________________________________
> > VirtualGL-Devel mailing list
> > VirtualGL-Devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/virtualgl-devel
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Windows:
>
> Build for Windows Store.
>
> http://p.sf.net/sfu/windows-dev2dev
> _______________________________________________
> VirtualGL-Devel mailing list
> VirtualGL-Devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/virtualgl-devel
>
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
VirtualGL-Devel mailing list
VirtualGL-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtualgl-devel