Commit 0c47195c authored by Chris Wilson's avatar Chris Wilson

i830: Clip solid fills to surface.

There is a reasonable surfeit of evidence to support this error,
for instance: Chris Wilson's avatarChris Wilson <>
parent 5537079c
......@@ -264,6 +264,15 @@ static void i830_uxa_solid(PixmapPtr pixmap, int x1, int y1, int x2, int y2)
unsigned long pitch;
uint32_t cmd;
if (x1 < 0)
x1 = 0;
if (y1 < 0)
y1 = 0;
if (x2 > pixmap->drawable.width)
x2 = pixmap->drawable.width;
if (y2 > pixmap->drawable.height)
y2 = pixmap->drawable.height;
pitch = i830_pixmap_pitch(pixmap);
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