glsl: Delete unused code for handling samplers in array-initializers.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 17 Jul 2013 18:45:57 +0000 (11:45 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 18 Jul 2013 23:57:24 +0000 (16:57 -0700)
commit0a23ec2b6e3742281a0047da9246039e86e4a7b6
treedbf12bad9aace58ab3e73d6c929f3abbf322fddb
parent9a9a830b445b5dbd70a4155e0e5e8b896abfb868
glsl: Delete unused code for handling samplers in array-initializers.

There is existing code to handle sampler uniform initializers.  Prior to
GLSL 4.20's "binding" keyword, sampler uniforms don't have initializers
at all, so this is somewhat surprising.

The existing code is broken into two cases: one where both the variable and
initializer are arrays, and a second where the variable and initializer are
scalars.

The first case should never occur, since array-typed initializers do not
exist for sampler uniforms.  Even with the binding keyword, the
initializer is a single integer which represents the texture unit to use
for the first array element.

The second is apparently used for some fixed-function code.

v2: Rewrite the commit message - suggested by Paul.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/glsl/link_uniform_initializers.cpp