summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2017-08-30 13:10:43 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2017-08-30 13:10:43 +0100
commit88db4f1dc194c37c3868acc04b7d9f6fb2a1883a (patch)
tree0db2d23846c0a5548ed008b52d37211d2202ba12 /src
parentc89905754b929f0421db7ea6d60b8942ccdbd8af (diff)
sna: Tweak fb size assertion
When pageflipping, we should be able to flip to an fb that is larger than the CRTC, so we can relax the assertion that checking for the exact size. References: https://bugs.freedesktop.org/show_bug.cgi?id=102442#c12 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r--src/sna/sna_display.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c
index d1f01218..3f70d536 100644
--- a/src/sna/sna_display.c
+++ b/src/sna/sna_display.c
@@ -565,7 +565,7 @@ static void assert_scanout(struct kgem *kgem, struct kgem_bo *bo,
assert(drmIoctl(kgem->fd, DRM_IOCTL_MODE_GETFB, &info) == 0);
gem_close(kgem->fd, info.handle);
- assert(width == info.width && height == info.height);
+ assert(width <= info.width && height <= info.height);
}
#else
#define assert_scanout(k, b, w, h)