[Mesa-dev] [PATCH] glsl: Mark tessellation qualifier maps static const.
Ilia Mirkin
imirkin at alum.mit.edu
Tue Aug 23 20:40:40 UTC 2016
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
Ah so that's why they weren't static const in my patch... coz I copied
it :) Nice sleuth work.
On Tue, Aug 23, 2016 at 4:39 PM, Kenneth Graunke <kenneth at whitecape.org> wrote:
> Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
> ---
> src/compiler/glsl/glsl_parser.yy | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/compiler/glsl/glsl_parser.yy b/src/compiler/glsl/glsl_parser.yy
> index 4f4a83c..5b65861 100644
> --- a/src/compiler/glsl/glsl_parser.yy
> +++ b/src/compiler/glsl/glsl_parser.yy
> @@ -1373,7 +1373,7 @@ layout_qualifier_id:
>
> /* Layout qualifiers for tessellation evaluation shaders. */
> if (!$$.flags.i) {
> - struct {
> + static const struct {
> const char *s;
> GLenum e;
> } map[] = {
> @@ -1396,7 +1396,7 @@ layout_qualifier_id:
> }
> }
> if (!$$.flags.i) {
> - struct {
> + static const struct {
> const char *s;
> GLenum e;
> } map[] = {
> --
> 2.9.3
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list