[Mesa-dev] glsl2: compile error on MSVC (string constant exceeds 65535 bytes)

Kenneth Graunke kenneth at whitecape.org
Wed Aug 18 13:25:18 PDT 2010


On Tuesday 17 August 2010 04:27:38 Aras Pranckevicius wrote:
> Hi,
> 
> Since commits 2f9ecc818d67 and a433cd286c60 (Add builtins profile for GLSL
> 1.30), GLSL2 does not compile on MSVC 2008:
>   builtin_function.cpp(15821) : fatal error C1091: compiler limit: string
> exceeds 65535 bytes in length
> It does seem quite stupid to have 64k limit for strings in a 21st century
> compiler, but that's what MSVC has.

Huh, I wasn't aware of this limitation.  Sorry about that.
 
> Would it be possible to somehow split that string up? Or have it be
> generated in a more compact form?

I've pushed patches (011be6b5, cf37ba343) that tidy up the output enough that 
it fits in 65535 bytes.  I'll probably need to split it up more in the future, 
but this should get it compiling for now.

Thanks!
--Kenneth


More information about the mesa-dev mailing list