From e063162e80e51ed4368874b3af7ba690ea280d9e Mon Sep 17 00:00:00 2001
From: Keith Packard <keithp@keithp.com>
Date: Thu, 13 Mar 2008 14:26:01 -0700
Subject: Add projective transforms to RandR DIX/DDX API.

New RRCrtcGetTransform function in DIX that DDX can use to get the pending
transform. The DDX code should be complete; the DIX code is just a stub at
this point.
---
 randr/randrstr.h | 14 ++++++++++++++
 randr/rrcrtc.c   | 19 +++++++++++++++++++
 2 files changed, 33 insertions(+)

(limited to 'randr')

diff --git a/randr/randrstr.h b/randr/randrstr.h
index bd7c7c59a..4692ddf91 100644
--- a/randr/randrstr.h
+++ b/randr/randrstr.h
@@ -586,6 +586,20 @@ RRCrtcGammaSetSize (RRCrtcPtr	crtc,
 void
 RRCrtcGetScanoutSize(RRCrtcPtr crtc, int *width, int *height);
 
+/*
+ * Return crtc transform
+ */
+Bool
+RRCrtcGetTransform (RRCrtcPtr crtc,
+		    PictTransformPtr crtc_to_fb,
+		    PictTransformPtr fb_to_crtc);
+
+/*
+ * Mark the pending transform as current
+ */
+void
+RRCrtcPostPendingTransform (RRCrtcPtr crtc);
+
 /*
  * Destroy a Crtc at shutdown
  */
diff --git a/randr/rrcrtc.c b/randr/rrcrtc.c
index ec65a040e..38b34525c 100644
--- a/randr/rrcrtc.c
+++ b/randr/rrcrtc.c
@@ -358,6 +358,25 @@ RRCrtcSet (RRCrtcPtr    crtc,
     return ret;
 }
 
+/*
+ * Return crtc transform
+ */
+Bool
+RRCrtcGetTransform (RRCrtcPtr crtc,
+		    PictTransformPtr crtc_to_fb,
+		    PictTransformPtr fb_to_crtc)
+{
+    return FALSE;
+}
+
+/*
+ * Mark the pending transform as current
+ */
+void
+RRCrtcPostPendingTransform (RRCrtcPtr crtc)
+{
+}
+
 /*
  * Destroy a Crtc at shutdown
  */
-- 
cgit v1.2.3