1 /* $XFree86: xc/programs/Xserver/GL/dri/sarea.h,v 1.11 2002/10/30 12:52:03 alanh Exp $ */
6 * \author Kevin E. Martin <kevin@precisioninsight.com>
7 * \author Jens Owen <jens@tungstengraphics.com>
8 * \author Rickard E. (Rik) Faith <faith@valinux.com>
12 * Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas.
13 * Copyright 2000 VA Linux Systems, Inc.
14 * All Rights Reserved.
16 * Permission is hereby granted, free of charge, to any person obtaining a
17 * copy of this software and associated documentation files (the
18 * "Software"), to deal in the Software without restriction, including
19 * without limitation the rights to use, copy, modify, merge, publish,
20 * distribute, sub license, and/or sell copies of the Software, and to
21 * permit persons to whom the Software is furnished to do so, subject to
22 * the following conditions:
24 * The above copyright notice and this permission notice (including the
25 * next paragraph) shall be included in all copies or substantial portions
28 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
29 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
30 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
31 * IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
32 * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
33 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
34 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
37 /* $XFree86: xc/programs/Xserver/GL/dri/sarea.h,v 1.11 2002/10/30 12:52:03 alanh Exp $ */
44 /* SAREA area needs to be at least a page */
45 #if defined(__alpha__)
46 #define SAREA_MAX 0x2000
47 #elif defined(__ia64__)
48 #define SAREA_MAX 0x10000 /* 64kB */
50 /* Intel 830M driver needs at least 8k SAREA */
51 #define SAREA_MAX 0x2000
54 #define SAREA_MAX_DRAWABLES 256
56 #define SAREA_DRAWABLE_CLAIMED_ENTRY 0x80000000
59 * SAREA per drawable information.
63 typedef struct _XF86DRISAREADrawable
{
66 } XF86DRISAREADrawableRec
, *XF86DRISAREADrawablePtr
;
69 * SAREA frame information.
73 typedef struct _XF86DRISAREAFrame
{
78 unsigned int fullscreen
;
79 } XF86DRISAREAFrameRec
, *XF86DRISAREAFramePtr
;
84 typedef struct _XF86DRISAREA
{
85 /** first thing is always the DRM locking structure */
87 /** \todo Use readers/writer lock for drawable_lock */
88 drmLock drawable_lock
;
89 XF86DRISAREADrawableRec drawableTable
[SAREA_MAX_DRAWABLES
];
90 XF86DRISAREAFrameRec frame
;
91 drm_context_t dummy_context
;
92 } XF86DRISAREARec
, *XF86DRISAREAPtr
;