gpu_array_info: replace read_only by read_only_scalar
commita413bd286f0748af489288fd73675bad00cfac07
authorSven Verdoolaege <skimo@kotnet.org>
Thu, 22 Aug 2013 13:12:54 +0000 (22 15:12 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Wed, 18 Sep 2013 11:25:04 +0000 (18 13:25 +0200)
treeaafc4316b1d0c8314a8f0b7c9d678c2c50bb8847
parent8c61eafad165897201f0ca96a12f6955e44362bd
gpu_array_info: replace read_only by read_only_scalar

The original field only contained meaningful information if
the corresponding array is a scalar, which could be confusing.
The new field is set iff the array is a scalar and it is read-only.

Extract the corresponding check into a separate function
to reduce clutter.

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