i965/fs: Use VARYING_SLOT checks rather than strcmp().
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 31 Jan 2015 12:31:16 +0000 (04:31 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 19 Feb 2015 23:15:45 +0000 (15:15 -0800)
commit231267bf011e1fa6edb52ffad27fcbca8e0e28e1
treeb2e361019d61eca2245d3b1232f4396f63ade615
parenta07cd42f1e4739000adbbcf5613ba163cf73b666
i965/fs: Use VARYING_SLOT checks rather than strcmp().

Comparing the location field is equivalent and more efficient.

We'll also need this when we start using NIR for ARB programs, as our
NIR converter will set the location field correctly, but probably won't
use the GLSL names for these concepts.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/mesa/drivers/dri/i965/brw_fs_nir.cpp
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp