dri2_priv.h revision 848b8605
1848b8605Smrg/*
2848b8605Smrg * Copyright © 2008 Red Hat, Inc.
3848b8605Smrg *
4848b8605Smrg * Permission is hereby granted, free of charge, to any person obtaining a
5848b8605Smrg * copy of this software and associated documentation files (the "Soft-
6848b8605Smrg * ware"), to deal in the Software without restriction, including without
7848b8605Smrg * limitation the rights to use, copy, modify, merge, publish, distribute,
8848b8605Smrg * and/or sell copies of the Software, and to permit persons to whom the
9848b8605Smrg * Software is furnished to do so, provided that the above copyright
10848b8605Smrg * notice(s) and this permission notice appear in all copies of the Soft-
11848b8605Smrg * ware and that both the above copyright notice(s) and this permission
12848b8605Smrg * notice appear in supporting documentation.
13848b8605Smrg *
14848b8605Smrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15848b8605Smrg * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
16848b8605Smrg * ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY
17848b8605Smrg * RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN
18848b8605Smrg * THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSE-
19848b8605Smrg * QUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
20848b8605Smrg * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
21848b8605Smrg * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFOR-
22848b8605Smrg * MANCE OF THIS SOFTWARE.
23848b8605Smrg *
24848b8605Smrg * Except as contained in this notice, the name of a copyright holder shall
25848b8605Smrg * not be used in advertising or otherwise to promote the sale, use or
26848b8605Smrg * other dealings in this Software without prior written authorization of
27848b8605Smrg * the copyright holder.
28848b8605Smrg *
29848b8605Smrg * Authors:
30848b8605Smrg *   Kristian Høgsberg (krh@redhat.com)
31848b8605Smrg */
32848b8605Smrg
33848b8605Smrgstruct dri2_screen {
34848b8605Smrg   struct glx_screen base;
35848b8605Smrg
36848b8605Smrg   __DRIscreen *driScreen;
37848b8605Smrg   __GLXDRIscreen vtable;
38848b8605Smrg   const __DRIdri2Extension *dri2;
39848b8605Smrg   const __DRIcoreExtension *core;
40848b8605Smrg
41848b8605Smrg   const __DRI2flushExtension *f;
42848b8605Smrg   const __DRI2configQueryExtension *config;
43848b8605Smrg   const __DRItexBufferExtension *texBuffer;
44848b8605Smrg   const __DRI2throttleExtension *throttle;
45848b8605Smrg   const __DRI2rendererQueryExtension *rendererQuery;
46848b8605Smrg   const __DRIconfig **driver_configs;
47848b8605Smrg
48848b8605Smrg   void *driver;
49848b8605Smrg   int fd;
50848b8605Smrg
51848b8605Smrg   int show_fps_interval;
52848b8605Smrg};
53