From: Michel Dänzer Date: Wed, 17 Oct 2007 16:26:31 +0000 (+0200) Subject: i915: Don't emit 'empty' blit rectangles. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b4531121330fa85a072f129d11e8432b5294c789;p=mesa.git i915: Don't emit 'empty' blit rectangles. The hardware seems to interpret them differently and produce unexpected results... --- diff --git a/src/mesa/drivers/dri/i915/intel_blit.c b/src/mesa/drivers/dri/i915/intel_blit.c index b00b0d9e1b5..2d4d00edefd 100644 --- a/src/mesa/drivers/dri/i915/intel_blit.c +++ b/src/mesa/drivers/dri/i915/intel_blit.c @@ -402,6 +402,9 @@ intelClearWithBlit(GLcontext * ctx, GLbitfield mask) b = *box; } + if (b.x1 >= b.x2 || b.y1 >= b.y2) + continue; + if (0) _mesa_printf("clear %d,%d..%d,%d, mask %x\n", b.x1, b.y1, b.x2, b.y2, mask);