diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-06-15 13:25:39 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-06-18 10:54:16 +0100 |
commit | 40329e34b9ac65d930757d53283b7d8f4066c3a2 (patch) | |
tree | 770224c89b7d7bea55d3082f1612929b48be8e31 /src/sna/sna_io.c | |
parent | abb522e07a2c3bf39e2587ddedc4bb8ac955c536 (diff) |
sna: Add extra assertions to sanity check CPU access is coherent
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_io.c')
-rw-r--r-- | src/sna/sna_io.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sna/sna_io.c b/src/sna/sna_io.c index 3febc273..1ec1a60f 100644 --- a/src/sna/sna_io.c +++ b/src/sna/sna_io.c @@ -74,6 +74,7 @@ static void read_boxes_inplace(struct kgem *kgem, if (src == NULL) return; + assert(src != dst); do { DBG(("%s: copying box (%d, %d), (%d, %d)\n", __FUNCTION__, box->x1, box->y1, box->x2, box->y2)); |