summaryrefslogtreecommitdiff
path: root/src/i830_common.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@neko.keithp.com>2006-06-19 13:47:28 -0700
committerKeith Packard <keithp@neko.keithp.com>2006-06-19 13:47:28 -0700
commit8a6edba33213911cc2210b5e903428b81d45862f (patch)
treecf1ff10a7d2ca15319a286ef932dad91dc594acf /src/i830_common.h
parenta73ab7f0e6e3b0462e05c0031ffd602ed3e2bcd4 (diff)
Set vblank interrupt configuration to match pipe configuration
New i915 drm ioctl (in version 1.5) allows the X server to select which pipe drives vblank interrupts. Use this to drive from the 'preferred' pipe. Yes, per-window vblanks would be nice in a shared fb environment. Maybe someday. (cherry picked from 2fb375b665f4802819b89f2277fd6154006c11ee commit)
Diffstat (limited to 'src/i830_common.h')
-rw-r--r--src/i830_common.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/i830_common.h b/src/i830_common.h
index 41b5cc3c..a27bc011 100644
--- a/src/i830_common.h
+++ b/src/i830_common.h
@@ -52,6 +52,9 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
#define DRM_I830_INIT_HEAP 0x0a
#define DRM_I830_CMDBUFFER 0x0b
#define DRM_I830_DESTROY_HEAP 0x0c
+#define DRM_I830_SET_VBLANK_PIPE 0x0d
+#define DRM_I830_GET_VBLANK_PIPE 0x0e
+
typedef struct {
enum {
@@ -193,5 +196,11 @@ typedef struct {
int region;
} drmI830MemDestroyHeap;
+#define DRM_I830_VBLANK_PIPE_A 1
+#define DRM_I830_VBLANK_PIPE_B 2
+
+typedef struct {
+ int pipe;
+} drmI830VBlankPipe;
#endif /* _I830_DRM_H_ */