xserver-multidpi/render
Søren Sandmann Pedersen 57b35adaed Remove geometry arguments from miSourceValidate()
The only user of the geometry coordinates is the software sprite code,
which uses them to remove the pointer whenever the window beneath is
being used as a source. However, using Window pictures as a source is
extremely rare (let alone *partial* windows), so there is no harm done
in just validating all of the drawable.

Additionally, the miSourceValidate() function was buggy in at least
three respects:

(a) It added drawable->{x,y} before calling down, which is wrong since
    the misprite code already adds them in its check. (Alternatively,
    the misprite code is wrong, but there are actual users who would
    notice if that code was broken).

(b) It didn't account for the width of the interpolation filter, so if
    the Picture had a bilinear or convolution filter, the edges
    surrounding the source area would not be validated.

(c) It didn't validate alpha maps.

Finally, computing the bounding box of the transform on every
composite request was a real performance issue in pixman, so
presumably it could be one here as well.

This patch changes miSourceValidate() to simply validate all of the
underlying drawable.

Reviewed-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Soren Sandmann <ssp@redhat.com>
2011-03-14 13:57:42 -04:00
..
animcur.c render: Enable animated cursor block handler only when needed 2010-12-31 12:52:51 +00:00
filter.c Replace X-allocation functions with their C89 counterparts 2010-05-13 00:22:37 +07:00
glyph.c Place glyph privates at correct location within the allocate storage 2010-06-06 16:22:12 -07:00
glyphstr.h render: Reshuffle and cull dead field from GlyphSetRec 2010-11-30 13:46:09 -05:00
Makefile.am render: Delete renderedge.[ch] 2010-11-01 22:54:18 -04:00
matrix.c Rework symbol visibility for easier maintenance 2008-12-03 05:43:34 -02:00
miindex.c Remove superfluous if(p!=NULL) checks around free(p); p=NULL; 2010-11-11 08:22:59 +10:00
mipict.c Remove geometry arguments from miSourceValidate() 2011-03-14 13:57:42 -04:00
mipict.h Remove geometry arguments from miSourceValidate() 2011-03-14 13:57:42 -04:00
mirect.c Clean up after removal of screen parameters from region macros. 2010-06-05 22:07:21 -07:00
mitrap.c Move miTriangles to fb as fbTriangles() 2011-02-26 13:58:54 -05:00
mitri.c Move miTriangles to fb as fbTriangles() 2011-02-26 13:58:54 -05:00
picture.c render: repack PictureRec 2010-11-30 13:46:08 -05:00
picture.h Change the devPrivates API to require dixRegisterPrivateKey 2010-06-05 19:23:03 -07:00
picturestr.h render: repack PictureRec 2010-11-30 13:46:08 -05:00
render.c xinerama: Use RESTYPE consistently 2011-03-08 13:20:08 -05:00