summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-05-26 10:11:32 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2010-05-26 10:21:03 +0100
commit309bd3a29943ef7502d40c67be49c19a59b6d1a2 (patch)
tree95c2dd954510bbf25bb0fd2c1bbc3403769d8fdb /src
parentb645ec83e0d86f2247b8338ceab60b9502516e70 (diff)
i830: Skip an empty fill.
In the extremely unlikely event that the higher layer erroneous gave us an empty fill, skip it. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r--src/i830_uxa.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/i830_uxa.c b/src/i830_uxa.c
index a2da530c..bbbf542a 100644
--- a/src/i830_uxa.c
+++ b/src/i830_uxa.c
@@ -282,6 +282,9 @@ static void i830_uxa_solid(PixmapPtr pixmap, int x1, int y1, int x2, int y2)
if (y2 > pixmap->drawable.height)
y2 = pixmap->drawable.height;
+ if (x2 <= x1 || y2 <= y1)
+ return;
+
pitch = i830_pixmap_pitch(pixmap);
{