ff_fragment_shader: Use binding to set the sampler unit
authorIan Romanick <ian.d.romanick@intel.com>
Thu, 8 Oct 2015 18:13:00 +0000 (11:13 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 12 Oct 2015 17:15:13 +0000 (10:15 -0700)
commit8acce5d53af44a3d1d05a26e69559fd35f835de4
treeeb4644073a2e1e938a34a74efc07527ec529b11a
parent43b07eb60faba1c65fc6f7a99087d051b00e9c0f
ff_fragment_shader: Use binding to set the sampler unit

This is the way layout(binding=xxx) works from GLSL.  The old method
just happened to work (and significantly predated support for
layout(binding=xxx)), but future changes will break this.

v2: Remove some stale comments.  Suggested by Matt and Chris Forbes.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Cc: "10.6 11.0" <mesa-stable@lists.freedesktop.org>
src/mesa/main/ff_fragment_shader.cpp