From: Pekka Paalanen <[email protected]> Hi,
this is in reply to http://lists.freedesktop.org/archives/pixman/2014-October/003457.html item 37 (the last one). "I think it would be worthwhile to have a test that uses fence_malloc for the source buffer and the matrix mentioned in the commit. In fact, the fence_malloc() testing could benefit from being extended in various ways: - having fence pages both before and after the image - having fence pages in the 'stride' part of the image" These patches add fence_image_create_bits() that builds on fence_malloc(). To make sure it actually will catch out-of-bounds accesses, the last patch adds a self-test. This is v2, addressing the review comments from the last time: http://lists.freedesktop.org/archives/pixman/2015-May/003643.html The changes are minor and listed in each patch. This is also rebased on top of current master. This series is a pre-requisite for the cover-test patch: http://lists.freedesktop.org/archives/pixman/2015-August/003912.html Pekka Paalanen (3): utils.[ch]: add FENCE_MALLOC_ACTIVE utils.[ch]: add fence_image_create_bits () test: add fence-image-self-test test/Makefile.sources | 1 + test/fence-image-self-test.c | 218 +++++++++++++++++++++++++++++++++++++++++++ test/utils.c | 112 +++++++++++++++++++++- test/utils.h | 17 ++++ 4 files changed, 345 insertions(+), 3 deletions(-) create mode 100644 test/fence-image-self-test.c -- 2.4.6 _______________________________________________ Pixman mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/pixman
