Re: [Mesa-dev] [PATCH v3] glsl: enforce invariant conditions for built-in variables

2016-05-09 Thread Lars Hamre
Looks like it, I didn't realized VARYING_SLOT_POS covered both cases. On Mon, May 9, 2016 at 5:17 PM, Ilia Mirkin wrote: > On Mon, May 9, 2016 at 5:10 PM, Lars Hamre wrote: >> v3: >> - compare varying slot locations rather than names (Ilia Mirkin) >> v2: >> - ES version check (Tapani Pälli) >>

Re: [Mesa-dev] [PATCH v3] glsl: enforce invariant conditions for built-in variables

2016-05-09 Thread Ilia Mirkin
On Mon, May 9, 2016 at 5:10 PM, Lars Hamre wrote: > v3: > - compare varying slot locations rather than names (Ilia Mirkin) > v2: > - ES version check (Tapani Pälli) > > The conditions for which certain built-in special variables > can be declared invariant were not being checked. > > GLSL ES 1.0

[Mesa-dev] [PATCH v3] glsl: enforce invariant conditions for built-in variables

2016-05-09 Thread Lars Hamre
v3: - compare varying slot locations rather than names (Ilia Mirkin) v2: - ES version check (Tapani Pälli) The conditions for which certain built-in special variables can be declared invariant were not being checked. GLSL ES 1.00 specification, Section "Invariance and linkage" says: For the bu