~ubuntu-branches/ubuntu/natty/mesa/natty-proposed

« back to all changes in this revision

Viewing changes to src/mesa/drivers/dri/common/dri_test.c

  • Committer: Bazaar Package Importer
  • Author(s): Robert Hooker, Robert Hooker, Christopher James Halse Rogers
  • Date: 2010-09-14 08:55:40 UTC
  • mfrom: (1.2.28 upstream)
  • Revision ID: james.westby@ubuntu.com-20100914085540-m4fpl0hdjlfd4jgz
Tags: 7.9~git20100909-0ubuntu1
[ Robert Hooker ]
* New upstream git snapshot up to commit 94118fe2d4b1e5 (LP: #631413)
* New features include ATI HD5xxx series support in r600, and a vastly
  improved glsl compiler.
* Remove pre-generated .pc's, use the ones generated at build time
  instead.
* Remove all references to mesa-utils now that its no longer shipped
  with the mesa source.
* Disable the experimental ARB_fragment_shader option by default on
  i915, it exposes incomplete functionality that breaks KDE compositing
  among other things. It can be enabled via driconf still. (LP: #628930).

[ Christopher James Halse Rogers ]
* debian/patches/04_osmesa_version.diff:
  - Refresh for new upstream
* Bugs fixed in this release:
  - Fixes severe rendering corruption in Unity on radeon (LP: #628727,
    LP: #596292, LP: #599741, LP: #630315, LP: #613694, LP: #599741).
  - Also fixes rendering in gnome-shell (LP: #578619).
  - Flickering in OpenGL apps on radeon (LP: #626943, LP: #610541).
  - Provides preliminary support for new intel chips (LP: #601052).
* debian/rules:
  - Update configure flags to match upstream reshuffling.
  - Explicitly remove gallium DRI drivers that we don't want to ship.
* Update debian/gbp.conf for this Maverick-specific packaging
* libegl1-mesa-dri-x11,kms: There are no longer separate kms or x11 drivers
  for EGL, libegl1-mesa-drivers now contains a single driver that provides
  both backends.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include "main/glheader.h"
 
2
#include "main/compiler.h"
 
3
#include "glapi/glapi.h"
 
4
 
 
5
/* This is just supposed to make sure we get a reference to
 
6
   the driver entry symbol that the compiler doesn't optimize away */
 
7
 
 
8
extern char __driDriverExtensions[];
 
9
 
 
10
/* provide glapi symbols */
 
11
 
 
12
#if defined(GLX_USE_TLS)
 
13
 
 
14
PUBLIC __thread struct _glapi_table * _glapi_tls_Dispatch
 
15
    __attribute__((tls_model("initial-exec")));
 
16
 
 
17
PUBLIC __thread void * _glapi_tls_Context
 
18
    __attribute__((tls_model("initial-exec")));
 
19
 
 
20
PUBLIC const struct _glapi_table *_glapi_Dispatch;
 
21
PUBLIC const void *_glapi_Context;
 
22
 
 
23
#else
 
24
 
 
25
PUBLIC struct _glapi_table *_glapi_Dispatch;
 
26
PUBLIC void *_glapi_Context;
 
27
 
 
28
#endif
 
29
 
 
30
PUBLIC void
 
31
_glapi_check_multithread(void)
 
32
{}
 
33
 
 
34
PUBLIC void
 
35
_glapi_set_context(void *context)
 
36
{}
 
37
 
 
38
PUBLIC void *
 
39
_glapi_get_context(void)
 
40
{
 
41
        return 0;
 
42
}
 
43
 
 
44
PUBLIC void
 
45
_glapi_set_dispatch(struct _glapi_table *dispatch)
 
46
{}
 
47
 
 
48
PUBLIC struct _glapi_table *
 
49
_glapi_get_dispatch(void)
 
50
{
 
51
        return 0;
 
52
}
 
53
 
 
54
PUBLIC int
 
55
_glapi_add_dispatch( const char * const * function_names,
 
56
                     const char * parameter_signature )
 
57
{
 
58
        return 0;
 
59
}
 
60
 
 
61
PUBLIC GLint
 
62
_glapi_get_proc_offset(const char *funcName)
 
63
{
 
64
        return 0;
 
65
}
 
66
 
 
67
PUBLIC _glapi_proc
 
68
_glapi_get_proc_address(const char *funcName)
 
69
{
 
70
        return 0;
 
71
}
 
72
 
 
73
PUBLIC GLuint
 
74
_glapi_get_dispatch_table_size(void)
 
75
{
 
76
        return 0;
 
77
}
 
78
 
 
79
PUBLIC unsigned long
 
80
_glthread_GetID(void)
 
81
{
 
82
   return 0;
 
83
}
 
84
 
 
85
int main(int argc, char** argv)
 
86
{
 
87
   void* p = __driDriverExtensions;
 
88
   return (int)(unsigned long)p;
 
89
}