Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: xsrc/external/mit/xorg-server/dist



Module Name:    xsrc
Committed By:   mrg
Date:           Sun Mar  1 07:44:07 UTC 2015

Modified Files:
        xsrc/external/mit/xorg-server/dist/exa: exa_unaccel.c
        xsrc/external/mit/xorg-server/dist/glx: glxdri.c
        xsrc/external/mit/xorg-server/dist/include: regionstr.h

Log Message:
port a change back from newer xorg-server, which is needed
for xf86-video-ati 7.x.

http://lists.x.org/archives/xorg-devel/2011-March/020990.html

commit 43e47433cf55c98db5308a51c1c514c59901f598
Author: S�ren Sandmann Pedersen <ssp at redhat.com>
Date:   Tue Mar 29 13:06:36 2011 -0400

    Add RegionInitBoxes(), and fix some buggy callers of RegionInit().

    The interface to RegionInit():

        RegionInit (RegionPtr pReg, BoxPtr rect, int size);

    is very confusing because it doesn't take a list of boxes, it takes
    *one* box, but if that box is NULL, it initializes an empty region
    with 'size' rectangles preallocated.

    Most callers of this function were correctly passing either NULL or
    just one box, but there were three confused cases, where the code
    seems to expect a region to be created from a list of boxes.

    This patch adds a new function RegionInitBoxes() and fixes those
    instances to call that instead.

    And yes, the pixman function to initialize a region from a list of
    boxes is called init_rects() because pixman is also awesome.

    V2: Make RegionInitBoxes() return a Bool indicating whether the call
        succeeded, and fix the callers to check this return value.

    Signed-off-by: Soren Sandmann <ssp at redhat.com>


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 xsrc/external/mit/xorg-server/dist/exa/exa_unaccel.c
cvs rdiff -u -r1.5 -r1.6 xsrc/external/mit/xorg-server/dist/glx/glxdri.c
cvs rdiff -u -r1.4 -r1.5 \
    xsrc/external/mit/xorg-server/dist/include/regionstr.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index