ralloc: Fix ralloc_adopt() to the old context's last child's parent.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 18 Dec 2015 10:48:34 +0000 (02:48 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 19 Dec 2015 07:30:51 +0000 (23:30 -0800)
commit14193e4643370db92210710f2ef152c693d6c4ff
treea2571b0118751c2b26fbf6a6c2f1a7e815640b62
parentb476c587e3c8ffd61e833c3252d69c5edd16c0f6
ralloc: Fix ralloc_adopt() to the old context's last child's parent.

I was cleverly using one iteration to obtain a pointer to the last item
in ralloc's singly list child list, while also setting parents.

Unfortunately, I forgot to set the parent on that last item.

Cc: "11.1 11.0 10.6" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/util/ralloc.c