gpu.c: group_array_references: maintain proper groups during construction
commit24c61af8c2452b04b56cbb6be8b6de364c95799a
authorSven Verdoolaege <skimo@kotnet.org>
Tue, 25 Dec 2012 18:52:11 +0000 (25 19:52 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Wed, 26 Dec 2012 16:24:32 +0000 (26 17:24 +0100)
tree01085931b4fcb4a1b7780793c50e6f54243dfbb8
parent46bc77f68dfb764c5799cfb0ee7a76a15bd1c90a
gpu.c: group_array_references: maintain proper groups during construction

The original code would only construct the refs array at the very end of
group_array_references.  We now maintain a proper refs array from the start.
This simplifies the logic and makes it easier to perform further merging
of groups.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
gpu.c