glsl: fix subroutine lowering reusing actual parmaters
authorDave Airlie <airlied@redhat.com>
Sun, 17 Jan 2016 04:23:35 +0000 (14:23 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 18 Jan 2016 05:02:34 +0000 (15:02 +1000)
commit119bef954379ebb35faf182b0b665becacddab76
tree7b6fa82e138b639f6b748bb8e611c4a5a17f5b69
parent9258d9f23daca39767a41abc47836991a5f189b4
glsl: fix subroutine lowering reusing actual parmaters

One of the oglconform tests was crashing here, and it was
due to not cloning the actual parameters before creating the
new call. This makes a call clone function that does the right
things to make sure we clone all the needed info, and points
the callee at it. (It differs from ->clone due to this).

this may fix https://bugs.freedesktop.org/show_bug.cgi?id=93722, I had this
patch in my cts fixes tree, but hadn't had time to make sure I liked it.

Cc: "11.0 11.1" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
src/glsl/lower_subroutine.cpp