Re: [Mesa-dev] [RFC 01/16] glsl: Add tracking for GLSL precision qualifiers

2015-05-18 Thread Pohjolainen, Topi
On Mon, May 18, 2015 at 11:19:13AM +0300, Petri Latvala wrote: > On 05/15/2015 12:39 PM, Topi Pohjolainen wrote: > >diff --git a/src/glsl/glsl_types.h b/src/glsl/glsl_types.h > >index 5645dcd..25c4d30 100644 > >--- a/src/glsl/glsl_types.h > >+++ b/src/glsl/glsl_types.h > >@@ -100,6 +100,13 @@ enum

Re: [Mesa-dev] [RFC 01/16] glsl: Add tracking for GLSL precision qualifiers

2015-05-18 Thread Petri Latvala
On 05/15/2015 12:39 PM, Topi Pohjolainen wrote: diff --git a/src/glsl/glsl_types.h b/src/glsl/glsl_types.h index 5645dcd..25c4d30 100644 --- a/src/glsl/glsl_types.h +++ b/src/glsl/glsl_types.h @@ -100,6 +100,13 @@ enum glsl_matrix_layout { GLSL_MATRIX_LAYOUT_ROW_MAJOR }; +enum { + GL

[Mesa-dev] [RFC 01/16] glsl: Add tracking for GLSL precision qualifiers

2015-05-15 Thread Topi Pohjolainen
From: Iago Toral Quiroga Currently, we only consider precision qualifiers at compile-time. This patch adds precision information to ir_variable so we can also do link time checks. Specifically, from the GLSL ES3 spec, 4.5.3 Precision Qualifiers: "The same uniform declared in different shaders th