[PATCH] Notify DRI when crtc regions change

Adam Jackson ajax at nwnk.net
Tue Nov 4 07:35:33 PST 2008


On Tue, 2008-11-04 at 02:07 -0800, Keith Packard wrote:

> diff --git a/hw/xfree86/modes/xf86Crtc.c b/hw/xfree86/modes/xf86Crtc.c
> index df47598..0ae1e4d 100644
> --- a/hw/xfree86/modes/xf86Crtc.c
> +++ b/hw/xfree86/modes/xf86Crtc.c
> @@ -2545,6 +2545,14 @@ xf86SaveScreen(ScreenPtr pScreen, int mode)
>      return TRUE;
>  }
>  
> +static void (*dri_crtc_notify_hook) (ScreenPtr pScreen);
> +
> +_X_EXPORT void
> +xf86_set_dri_crtc_notify_hook (void (*hook) (ScreenPtr pScreen))
> +{
> +    dri_crtc_notify_hook = hook;
> +}
> +
>  /**
>   * Disable all inactive crtcs and outputs
>   */

Please put this in the rrScrPrivRec instead.  When we finally finish
multi-GPU support in RANDR this will want to be per-ScreenRec.

(At which point it should probably be a proper wrap chain as well.)

- ajax
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://lists.x.org/archives/xorg/attachments/20081104/58b15c93/attachment.pgp>


More information about the xorg mailing list