~ubuntu-branches/ubuntu/edgy/xorg-server/edgy-updates

« back to all changes in this revision

Viewing changes to hw/xgl/egl/xeglinit.c

  • Committer: Bazaar Package Importer
  • Author(s): Rodrigo Parra Novo
  • Date: 2006-07-25 20:06:28 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20060725200628-gjmmd9gxfxdc4ejs
Tags: 1:1.1.1-0ubuntu1
* New Upstream version
* Changed Build-Depends from mesa-swrast-source to mesa-swx11-source,
  following Debian package nomenclature
* Re-did 12_security_policy_in_etc.diff for 1.1.1
* Dropped 15_security_allocate_local.diff (applied upstream)
* Dropped 16_SECURITY_setuid.diff (applied upstream)
* Dropped 000_ubuntu_fix_read_kernel_mapping.patch (applied upstream)
* Dropped 002_ubuntu_fix_for_certain_intel_chipsets.patch (applied upstream)
* Updated versioned Build-Depends on mesa-swx11-source to version
  6.5.0.cvs.20060725-0ubuntu1
* Added arrayobj.c, arrayobj.h, bitset.h & rbadaptors.h to
  GL/symlink-mesa.sh (linked from mesa-swx11-source)
* Added arrayobj.c to default build target on GL/mesa/main

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright © 2004 David Reveman
 
3
 *
 
4
 * Permission to use, copy, modify, distribute, and sell this software
 
5
 * and its documentation for any purpose is hereby granted without
 
6
 * fee, provided that the above copyright notice appear in all copies
 
7
 * and that both that copyright notice and this permission notice
 
8
 * appear in supporting documentation, and that the name of
 
9
 * David Reveman not be used in advertising or publicity pertaining to
 
10
 * distribution of the software without specific, written prior permission.
 
11
 * David Reveman makes no representations about the suitability of this
 
12
 * software for any purpose. It is provided "as is" without express or
 
13
 * implied warranty.
 
14
 *
 
15
 * DAVID REVEMAN DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
 
16
 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN
 
17
 * NO EVENT SHALL DAVID REVEMAN BE LIABLE FOR ANY SPECIAL, INDIRECT OR
 
18
 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
 
19
 * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
 
20
 * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
 
21
 * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
22
 *
 
23
 * Author: David Reveman <davidr@novell.com>
 
24
 */
 
25
 
 
26
#include "xegl.h"
 
27
 
 
28
static xglScreenInfoRec xglScreenInfo = {
 
29
    NULL, 0, 0, 0, 0,
 
30
    DEFAULT_GEOMETRY_DATA_TYPE,
 
31
    DEFAULT_GEOMETRY_USAGE,
 
32
    FALSE,
 
33
    XGL_DEFAULT_PBO_MASK,
 
34
    FALSE,
 
35
    FALSE
 
36
};
 
37
 
 
38
#ifdef GLXEXT
 
39
static Bool loadGlx = TRUE;
 
40
#endif
 
41
 
 
42
void
 
43
InitOutput (ScreenInfo *pScreenInfo,
 
44
            int        argc,
 
45
            char       **argv)
 
46
{
 
47
 
 
48
#ifdef GLXEXT
 
49
    if (loadGlx)
 
50
    {
 
51
        if (!xglLoadGLXModules ())
 
52
            FatalError ("No GLX modules loaded");
 
53
    }
 
54
#endif
 
55
 
 
56
    xeglInitOutput (pScreenInfo, argc, argv);
 
57
}
 
58
 
 
59
Bool
 
60
LegalModifier (unsigned int key,
 
61
               DevicePtr    pDev)
 
62
{
 
63
    return xeglLegalModifier (key, pDev);
 
64
}
 
65
 
 
66
void
 
67
ProcessInputEvents (void)
 
68
{
 
69
    xeglProcessInputEvents ();
 
70
}
 
71
 
 
72
void
 
73
InitInput (int  argc,
 
74
           char **argv)
 
75
{
 
76
    xeglInitInput (argc, argv);
 
77
}
 
78
 
 
79
void
 
80
ddxUseMsg (void)
 
81
{
 
82
    ErrorF ("\nXgl usage:\n");
 
83
 
 
84
#ifdef GLXEXT
 
85
    ErrorF ("-noglx                 don't load glx extension\n");
 
86
#endif
 
87
 
 
88
    xglUseMsg ();
 
89
    ErrorF ("\nXegl usage:\n");
 
90
    xeglUseMsg ();
 
91
}
 
92
 
 
93
int
 
94
ddxProcessArgument (int  argc,
 
95
                    char **argv,
 
96
                    int  i)
 
97
{
 
98
    int skip;
 
99
 
 
100
#ifdef GLXEXT
 
101
    if (!strcmp (argv[i], "-noglx"))
 
102
    {
 
103
        loadGlx = FALSE;
 
104
        return 1;
 
105
    }
 
106
#endif
 
107
 
 
108
    skip = xglProcessArgument (argc, argv, i);
 
109
    if (skip)
 
110
        return skip;
 
111
 
 
112
    return xeglProcessArgument (argc, argv, i);
 
113
}
 
114
 
 
115
void
 
116
AbortDDX (void)
 
117
{
 
118
    xeglAbort ();
 
119
}
 
120
 
 
121
void
 
122
ddxGiveUp (void)
 
123
{
 
124
    xeglGiveUp ();
 
125
}
 
126
 
 
127
void
 
128
OsVendorInit (void)
 
129
{
 
130
    xeglOsVendorInit ();
 
131
}