i915: Fix off-by-one for drawing rectangle.
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 5 Jun 2010 08:33:58 +0000 (09:33 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 5 Jun 2010 08:33:58 +0000 (09:33 +0100)
commitadd3260157368458501709d08a3f913ed448234f
tree786e906b77eb619f23f5ca71ca16ce1c0b145358
parentff74c2ced5e7234902d43712a3759f91fd534a91
i915: Fix off-by-one for drawing rectangle.

The drawing rectangle is given in *inclusive* pixel values, so the range
is only [0,2047]. Hence when rendering to a 2048 wide target, such as an
extended desktop, we would issue an illegal instruction zeroing the draw
area.

Fixes:

  Bug 27408: Primary and Secondary display blanks in extended
             desktop mode with Compiz enabled
  https://bugs.freedesktop.org/show_bug.cgi?id=27408

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
src/mesa/drivers/dri/i915/i915_vtbl.c