Re: proper OpenGL version support with local configuration?

Brian Paul <[email protected]> Wed, 18 Oct 2006 08:35:54 -0600
Newsgroups gmane.comp.graphics.chromium.devel
Message-ID <[email protected]>
James Supancic wrote:
> proper OpenGL version with local configuration?
> 
> I wrote a new SPU (I named it dmxdirect), it basically allows me to
> use Chromium in a local configuration on a single DMX backend display
> (rendering is restricted to one of my four monitors). The
> configuration is as follows
> AppNode:
> 	dmxdirectspu
> 	renderspu
> 
> The dmxdirectspu basicly does what is needed to get the renderspu to
> render to backend window (like the tilesortSPU but for a single
> machine).
> 
> This is much faster than using the tilesort spu, and as I only need 3d
> support on one of the four monitors it is better for my configuration.
> 
> Overall things run much better, but I still have some problems, a
> number of applications don't render correctly. I suspect this is
> because Chromium is returning the OpenGL capabilities of the card, not
> the intersection of it's capabilities and the cards. For example,
> glxinfo says that my OpenGL version string is 2.0.2.

First, you can test your hypothesis by changing renderspuGetString() 
in spu/render/renderspu.c so that it returns "1.5" or thereabouts.

If that doesn't fix things, the problem is elsewhere.


> My question is, is there an easy way to compile Chromium with support
> for OpenGL 2 in a local configuration? I shouldn't have to do that
> much to get OpenGL 2 working in this configuration as all Chromium
> must do is forward the calls as they are, there is no need for any
> packing/tilesorting etc.

You'd basically have to add the OpenGL 2.0 functions to the API 
dispatch layer.  The relevant directories are opengl_stub/, 
glapi_parser/ and spu_loader/.  Not easy, but not too hard either.

-Brian



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642