[Piglit] [PATCH] built-in-constants: don't try to create GS with version < 150.
Ian Romanick
idr at freedesktop.org
Mon Oct 14 23:55:18 CEST 2013
On 10/14/2013 02:05 PM, Paul Berry wrote:
> On 14 October 2013 12:44, Ian Romanick <idr at freedesktop.org
> <mailto:idr at freedesktop.org>> wrote:
>
> On 10/12/2013 10:11 AM, Paul Berry wrote:
> > Previously, built-in-constants looked at required_glsl_version to
> > determine what to include in the "#version" directive, but it looked
> > at glsl_version (the maximum version supported by the implementation)
> > to decide whether to test geometry shaders. As a result, it when
> > testing a built-in constant whose required_glsl_version was less than
> > 150, it would try to create a geometry shader using a "#version"
> > directive less than 150, leading to GL errors.
> >
> > This patch prevents the problem by only testing geometry shaders when
> > required_glsl_version >= 150.
>
> It's actually even more broken than that. :( Sorry about that.
>
> If required_glsl_version or glsl_version is 300 (for OpenGL ES 3.0), it
> will also try to create a geometry shader.
>
> How about
>
> if (required_glsl_version >= 150 && required_glsl_version != 300)
>
> instead?
>
>
> Oops, good call. With that fixed, do I have your r-b?
Yes, definitely.
More information about the Piglit
mailing list