xf86-video-intel: src/sna/sna_render.c

Chris Wilson ickle at kemper.freedesktop.org
Sat Mar 23 16:11:13 PDT 2013


 src/sna/sna_render.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 6b20924f22a14f69651dcf471c48f8a44d8ad42f
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Sat Mar 23 23:08:02 2013 +0000

    sna: Convert out-of-bounds sample to CLEAR
    
    If asked to perform pixelformat conversion of a sample that resides
    outside the valid area, we can simply substitute CLEAR.
    
    Bugzila: http://bugs.freedesktop.org/show_bug.cgi?id=62681
    Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

diff --git a/src/sna/sna_render.c b/src/sna/sna_render.c
index 2e29d95..4241836 100644
--- a/src/sna/sna_render.c
+++ b/src/sna/sna_render.c
@@ -1734,7 +1734,7 @@ sna_render_picture_convert(struct sna *sna,
 	     pixmap->drawable.width,
 	     pixmap->drawable.height));
 
-	if (w == 0 || h == 0) {
+	if (w <= 0 || h <= 0) {
 		DBG(("%s: sample extents lie outside of source, using clear\n",
 		     __FUNCTION__));
 		return 0;


More information about the xorg-commit mailing list