[Pixman] [PATCH v2 0/3] Add fence_image_create_bits() test helper

Pekka Paalanen ppaalanen at gmail.com
Fri Aug 28 04:53:35 PDT 2015

From: Pekka Paalanen <pekka.paalanen at collabora.co.uk>


this is in reply to
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

This is v2, addressing the review comments from the last time:

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:

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


More information about the Pixman mailing list