glsl: Always copy the index when cloning a variable.
authorEric Anholt <eric@anholt.net>
Wed, 25 Apr 2012 21:59:25 +0000 (14:59 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 4 May 2012 21:00:32 +0000 (14:00 -0700)
commit6508b0b9b0981662b9ae5bc559b4a6be524f7b86
treee302a3b59f1962f6c68a0e8020f35334f2278056
parentb7932e183c15a224adc4b04835f82f3c867a4a24
glsl: Always copy the index when cloning a variable.

The index is also used for GL_ARB_blend_func_extended.  Cloning in
i965 was dropping a non-ARB_explicit_attrib_location index.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/glsl/ir_clone.cpp