Re: [Mesa-dev] [PATCH] Linking fails when not writing gl_Position.

2014-09-10 Thread Erik Faye-Lund
On Tue, Sep 9, 2014 at 7:30 PM, Ian Romanick i...@freedesktop.org wrote: On 09/08/2014 01:10 AM, Tapani Pälli wrote: From: Kalyan Kondapally kalyan.kondapa...@intel.com According to GLSL-ES Spec(i.e. 1.0, 3.0), gl_Position value is undefined after the vertex processing stage if we don't write

Re: [Mesa-dev] [PATCH] Linking fails when not writing gl_Position.

2014-09-10 Thread Ian Romanick
On 09/10/2014 01:53 PM, Erik Faye-Lund wrote: On Tue, Sep 9, 2014 at 7:30 PM, Ian Romanick i...@freedesktop.org wrote: On 09/08/2014 01:10 AM, Tapani Pälli wrote: From: Kalyan Kondapally kalyan.kondapa...@intel.com According to GLSL-ES Spec(i.e. 1.0, 3.0), gl_Position value is undefined

Re: [Mesa-dev] [PATCH] Linking fails when not writing gl_Position.

2014-09-10 Thread Erik Faye-Lund
On Thu, Sep 11, 2014 at 12:32 AM, Ian Romanick i...@freedesktop.org wrote: On 09/10/2014 01:53 PM, Erik Faye-Lund wrote: On Tue, Sep 9, 2014 at 7:30 PM, Ian Romanick i...@freedesktop.org wrote: On 09/08/2014 01:10 AM, Tapani Pälli wrote: From: Kalyan Kondapally kalyan.kondapa...@intel.com

Re: [Mesa-dev] [PATCH] Linking fails when not writing gl_Position.

2014-09-09 Thread Ian Romanick
On 09/08/2014 01:10 AM, Tapani Pälli wrote: From: Kalyan Kondapally kalyan.kondapa...@intel.com According to GLSL-ES Spec(i.e. 1.0, 3.0), gl_Position value is undefined after the vertex processing stage if we don't write gl_Position. However, GLSL 1.10 Spec mentions that writing to

Re: [Mesa-dev] [PATCH] Linking fails when not writing gl_Position.

2014-09-09 Thread Kenneth Graunke
On Tuesday, September 09, 2014 10:30:16 AM Ian Romanick wrote: On 09/08/2014 01:10 AM, Tapani Pälli wrote: From: Kalyan Kondapally kalyan.kondapa...@intel.com According to GLSL-ES Spec(i.e. 1.0, 3.0), gl_Position value is undefined after the vertex processing stage if we don't write

Re: [Mesa-dev] [PATCH] Linking fails when not writing gl_Position.

2014-09-09 Thread Marek Olšák
On Tue, Sep 9, 2014 at 8:26 PM, Kenneth Graunke kenn...@whitecape.org wrote: On Tuesday, September 09, 2014 10:30:16 AM Ian Romanick wrote: On 09/08/2014 01:10 AM, Tapani Pälli wrote: From: Kalyan Kondapally kalyan.kondapa...@intel.com According to GLSL-ES Spec(i.e. 1.0, 3.0), gl_Position

Re: [Mesa-dev] [PATCH] Linking fails when not writing gl_Position.

2014-09-09 Thread Ian Romanick
On 09/09/2014 11:54 AM, Marek Olšák wrote: On Tue, Sep 9, 2014 at 8:26 PM, Kenneth Graunke kenn...@whitecape.org wrote: On Tuesday, September 09, 2014 10:30:16 AM Ian Romanick wrote: On 09/08/2014 01:10 AM, Tapani Pälli wrote: From: Kalyan Kondapally kalyan.kondapa...@intel.com According to

[Mesa-dev] [PATCH] Linking fails when not writing gl_Position.

2014-09-08 Thread Tapani Pälli
From: Kalyan Kondapally kalyan.kondapa...@intel.com According to GLSL-ES Spec(i.e. 1.0, 3.0), gl_Position value is undefined after the vertex processing stage if we don't write gl_Position. However, GLSL 1.10 Spec mentions that writing to gl_Position is mandatory. In case of GLSL-ES, it's not an