[Mesa-dev] glsl2 compiler preprocessor regression

Ian Romanick idr at freedesktop.org
Tue Aug 10 12:17:55 PDT 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thomas Jones wrote:
> I have a shader that fails to pre-process on the new compiler, but
> does compile on the old one, I've reduced it to this:
> 
> #ifdef FOO
> #if FOO == 4
> #elif SAMP == 5
> #endif
> #endif
> void main()  { gl_FragData[0] = vec4(0);}

I've added a piglit test case for this, and I've created a bug report.
Thanks.

https://bugs.freedesktop.org/show_bug.cgi?id=29489

> I think it might be mis-nesting the #elif since it succeeds if I
> change it to:
> 
> #ifdef FOO
> #if FOO == 4
> #endif
> #endif
> void main()  { gl_FragData[0] = vec4(0);}


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxhpeAACgkQX1gOwKyEAw8FSQCgmECmx9pg9geu1wGYv53zKCgU
14gAn3Psxr7tYkCG4g3/utSrcs6IILmU
=H+8U
-----END PGP SIGNATURE-----


More information about the mesa-dev mailing list