Re: [Mesa-dev] [PATCH] glsl: Add gl_MaxViewports to available builtin constants

2014-12-15 Thread Matt Turner
On Sun, Dec 14, 2014 at 11:47 AM, Maxence Le Doré wrote: > Hi Matt, > > To be sure to not missing something, I used a simple vertex shader I have > there and had > the following line in : > > int a = gl_MaxDrawBuffers; > > At runtime, everything was ok, and GLSL compiler didn't complain about > an

Re: [Mesa-dev] [PATCH] glsl: Add gl_MaxViewports to available builtin constants

2014-12-15 Thread Ian Romanick
On 12/14/2014 11:47 AM, Maxence Le Doré wrote: > Hi Matt, > > To be sure to not missing something, I used a simple vertex shader I > have there and had > the following line in : > > int a = gl_MaxDrawBuffers; > > At runtime, everything was ok, and GLSL compiler didn't complain about > anything.

Re: [Mesa-dev] [PATCH] glsl: Add gl_MaxViewports to available builtin constants

2014-12-14 Thread Maxence Le Doré
Hi Matt, To be sure to not missing something, I used a simple vertex shader I have there and had the following line in : int a = gl_MaxDrawBuffers; At runtime, everything was ok, and GLSL compiler didn't complain about anything. So there is nothing in mesa to prevent the use of some GLSL constan

Re: [Mesa-dev] [PATCH] glsl: Add gl_MaxViewports to available builtin constants

2014-12-12 Thread Matt Turner
On Tue, Dec 9, 2014 at 11:09 PM, Maxence Le Doré wrote: > It seems to have been forgotten during viewports array implementation time. > --- > src/glsl/builtin_variables.cpp | 4 > src/glsl/glsl_parser_extras.cpp | 3 +++ > src/glsl/glsl_parser_extras.h | 3 +++ > 3 files changed, 10 inser

[Mesa-dev] [PATCH] glsl: Add gl_MaxViewports to available builtin constants

2014-12-09 Thread Maxence Le Doré
It seems to have been forgotten during viewports array implementation time. --- src/glsl/builtin_variables.cpp | 4 src/glsl/glsl_parser_extras.cpp | 3 +++ src/glsl/glsl_parser_extras.h | 3 +++ 3 files changed, 10 insertions(+) diff --git a/src/glsl/builtin_variables.cpp b/src/glsl/buil