gpu_array_tile: keep track of own depth
commit5bed75c7725125d1e6c3e6163b3588882436e7fa
authorSven Verdoolaege <skimo@kotnet.org>
Mon, 29 Jun 2015 09:15:51 +0000 (29 11:15 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Fri, 18 Dec 2015 13:36:21 +0000 (18 14:36 +0100)
treea131ee0b064c4aa1eb4bf8c71563fb2d62f01dac
parent2b3dd8305f1d8e3956bd63d8d521f3b5076b05be
gpu_array_tile: keep track of own depth

The depth field of a gpu_array_ref_group is used for two purposes:
- the depth at which overlapping accesses should be considered
- the depth at which copying of a tile should be introduced

If both a shared and a private tile have been computed,
then to ensure correctness the minimal depth of the shared and
the private tile should be used to determine overlapping accesses.

Due to the double use of the group->depth field,
it is not clear if the current implementation will always get it right.
This commit therefore splits up the field in a group->min_depth
field used for determining overlap and a tile->depth field
to keep track of the copying depth for a particular tile.

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