Re: [Mesa-dev] [PATCH] glsl: Eliminate unused built-in variables after compilation

2014-05-31 Thread Kenneth Graunke
On Thursday, May 29, 2014 02:37:34 PM Ian Romanick wrote: > From: Ian Romanick > > After compilation (and before linking) we can eliminate quite a few > built-in variables. Basically, any uniform or constant (e.g., > gl_MaxVertexTextureImageUnits) that isn't used (with one exception) can > be el

[Mesa-dev] [PATCH] glsl: Eliminate unused built-in variables after compilation

2014-05-29 Thread Ian Romanick
From: Ian Romanick After compilation (and before linking) we can eliminate quite a few built-in variables. Basically, any uniform or constant (e.g., gl_MaxVertexTextureImageUnits) that isn't used (with one exception) can be eliminated. System values, vertex shader inputs (with one exception), a