[PATCH 32/36] xf86/cursor: fallback to sw cursor if we have slaves present.

Alex Deucher alexdeucher at gmail.com
Mon Jul 2 14:16:29 PDT 2012


On Mon, Jul 2, 2012 at 6:13 AM, Dave Airlie <airlied at gmail.com> wrote:
> From: Dave Airlie <airlied at redhat.com>
>
> Current USB devices have no hw rendered cursors, so we need the
> master GPU to render the cursor, so whenever we plug in a
> slave device, fallback to sw rendered cursors.

What about when we have a non-USB output slave that can do hw cursors?

Alex

>
> Signed-off-by: Dave Airlie <airlied at redhat.com>
> ---
>  hw/xfree86/ramdac/xf86Cursor.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/hw/xfree86/ramdac/xf86Cursor.c b/hw/xfree86/ramdac/xf86Cursor.c
> index 8b91e05..8d48a75 100644
> --- a/hw/xfree86/ramdac/xf86Cursor.c
> +++ b/hw/xfree86/ramdac/xf86Cursor.c
> @@ -336,7 +336,7 @@ xf86CursorSetCursor(DeviceIntPtr pDev, ScreenPtr pScreen, CursorPtr pCurs,
>          if (!infoPtr->pScrn->vtSema)
>              ScreenPriv->SavedCursor = pCurs;
>
> -        if (infoPtr->pScrn->vtSema &&
> +        if (infoPtr->pScrn->vtSema && xorg_list_is_empty(&pScreen->pixmap_dirty_list) &&
>              (ScreenPriv->ForceHWCursorCount ||
>               ((
>  #ifdef ARGB_CURSOR
> --
> 1.7.10.2
>
> _______________________________________________
> xorg-devel at lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: http://lists.x.org/mailman/listinfo/xorg-devel


More information about the xorg-devel mailing list