Mateusz Kaduk wrote:
> Hi,
> 
> I am curious will "Separate compilation units" be supported in mesa 7.4
> for Intel 3d driver ?
> Both commercial and not commercial games for Linux does not work well or
> just die because of not being able to compile shader.
> 
> Example
> [26/03/2009 08:13:43] [ShaderGL][shader_gl.cpp(655)] Shader
> <vs_specular_with_scissor_and_color_mask> info log:
> Error: Function 'CalculateFog' prototyped but not defined.  Separate
> compilation units not supported.
> 
> The problem is quite old and there are bugs already reported about that
> ex. https://bugs.freedesktop.org/show_bug.cgi?id=19273
> and many similar. Games not working are YoFrankie (Blender Project),
> Savage2(Commercial), Nexuiz(Open-Source DarkAges Q1 engine),
> RegnumOnline(Commercial free to play) and many more in GLSL mode.
> 
> Are there any plans to implement this feature ?

Not in 7.4 (which is due tomorrow).

I could try to look into this over the weekend maybe.  I think the simplest way 
to get this working is to check for unresolved references at link time, then if 
needed, concatenate the relevant shader sources together and recompile as one 
unit.  I believe another GL vendor was doing that at one point.

-Brian

------------------------------------------------------------------------------
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to