Commit f8b15376 authored by David Shah's avatar David Shah
Browse files

Fix a rarer etnaviv page fault issue


Signed-off-by: default avatarDavid Shah <dave@ds0.me>
parent c356f1c6
......@@ -1926,6 +1926,12 @@ Viv2DComposite(PixmapPtr pDst, int srcX, int srcY, int maskX, int maskY,
return;
}
if (v2d->op.src && (v2d->op.src_type == 0) && ((srcX + width > v2d->op.src->width) || (srcY + height > v2d->op.src->height))) {
VIV2D_INFO_MSG("dropping composite with OOB source coords (%d, %d)+(%d, %d) from %p (%d, %d)\n",
srcX, srcY, width, height, v2d->op.src, v2d->op.src->width, v2d->op.src->height);
return;
}
if (v2d->op.has_mask) {
// tmp 32bits argb pix
Viv2DPixmapPrivPtr tmp;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment