utils.[ch]: add fence_image_create_bits ()
authorPekka Paalanen <pekka.paalanen@collabora.co.uk>
Thu, 7 May 2015 13:46:01 +0000 (16:46 +0300)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Tue, 1 Sep 2015 14:06:46 +0000 (17:06 +0300)
commit13d93aa12050ce99643d56b0c730404294f46c2f
treefecef60c6de03b021d6d6a2f56273eb90a0ecf45
parentc70ddd5c9e12d87ff461d73a6f53b00d52925cf5
utils.[ch]: add fence_image_create_bits ()

Useful for detecting out-of-bounds accesses in composite operations.

This will be used by follow-up patches adding new tests.

Changes in v2:

- fix style on fence_image_create_bits args
- add page to stride only if stride_fence
- add comment on the fallback definition about freeing storage

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Ben Avison <bavison@riscosopen.org>
test/utils.c
test/utils.h