I overlooked the tiling-fill path passing down a temporary DrawableRec
into the fill_boxes callback - invalidating the assertion.
Fixes regression from
commit
43176b9bfafe389c4b9ed676f4e50e3b06f858c4
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date: Mon Jun 30 21:01:11 2014 +0100
sna/dri2: Pass around the correct DrawableRec for sampling from the foriegn bo
Reported-by: Jiri Slaby <jirislaby@gmail.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=70461#c62
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
memset(&tmp, 0, sizeof(tmp));
tmp.op = op;
- assert(dst->type == DRAWABLE_PIXMAP);
tmp.dst.pixmap = (PixmapPtr)dst;
tmp.dst.width = dst->width;
tmp.dst.height = dst->height;
__FUNCTION__, op, (int)format, pixel));
tmp.op = op;
- assert(dst->type == DRAWABLE_PIXMAP);
tmp.dst.pixmap = (PixmapPtr)dst;
tmp.dst.width = dst->width;
tmp.dst.height = dst->height;
tmp.op = op;
- assert(dst->type == DRAWABLE_PIXMAP);
tmp.dst.pixmap = (PixmapPtr)dst;
tmp.dst.width = dst->width;
tmp.dst.height = dst->height;
tmp.op = op;
- assert(dst->type == DRAWABLE_PIXMAP);
tmp.dst.pixmap = (PixmapPtr)dst;
tmp.dst.width = dst->width;
tmp.dst.height = dst->height;
__FUNCTION__, pixel, n,
box[0].x1, box[0].y1, box[0].x2, box[0].y2));
- assert(dst->type == DRAWABLE_PIXMAP);
tmp.dst.pixmap = (PixmapPtr)dst;
tmp.dst.width = dst->width;
tmp.dst.height = dst->height;
__FUNCTION__, pixel, n,
box[0].x1, box[0].y1, box[0].x2, box[0].y2));
- assert(dst->type == DRAWABLE_PIXMAP);
tmp.dst.pixmap = (PixmapPtr)dst;
tmp.dst.width = dst->width;
tmp.dst.height = dst->height;
__FUNCTION__, pixel, n,
box[0].x1, box[0].y1, box[0].x2, box[0].y2));
- assert(dst->type == DRAWABLE_PIXMAP);
tmp.dst.pixmap = (PixmapPtr)dst;
tmp.dst.width = dst->width;
tmp.dst.height = dst->height;
pixman_box16_t stack_boxes[64], *boxes = stack_boxes;
int num_boxes, i;
- assert(draw->type == DRAWABLE_PIXMAP);
DBG(("%s: pixmap=%ld, handle=%d, %d x [(%d, %d), (%d, %d)], dst=(%d, %d), src=(%d, %d)\n",
__FUNCTION__, draw->serialNumber, bo->handle,
n, extents->x1, extents->y1, extents->x2, extents->y2,