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

« back to all changes in this revision

Viewing changes to src/mesa/main/transformfeedback.h

  • 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
/*
 
2
 * Mesa 3-D graphics library
 
3
 *
 
4
 * Copyright (C) 2010  VMware, Inc.  All Rights Reserved.
 
5
 *
 
6
 * Permission is hereby granted, free of charge, to any person obtaining a
 
7
 * copy of this software and associated documentation files (the "Software"),
 
8
 * to deal in the Software without restriction, including without limitation
 
9
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
 
10
 * and/or sell copies of the Software, and to permit persons to whom the
 
11
 * Software is furnished to do so, subject to the following conditions:
 
12
 *
 
13
 * The above copyright notice and this permission notice shall be included
 
14
 * in all copies or substantial portions of the Software.
 
15
 *
 
16
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
 
17
 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 
18
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
 
19
 * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
 
20
 * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 
21
 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
22
 */
 
23
 
 
24
 
 
25
#ifndef TRANSFORM_FEEDBACK_H
 
26
#define TRANSFORM_FEEDBACK_H
 
27
 
 
28
#include "main/mtypes.h"
 
29
 
 
30
 
 
31
extern void
 
32
_mesa_init_transform_feedback(GLcontext *ctx);
 
33
 
 
34
extern void
 
35
_mesa_free_transform_feedback(GLcontext *ctx);
 
36
 
 
37
#if FEATURE_EXT_transform_feedback
 
38
 
 
39
extern GLboolean
 
40
_mesa_validate_primitive_mode(GLcontext *ctx, GLenum mode);
 
41
 
 
42
extern GLboolean
 
43
_mesa_validate_transform_feedback_buffers(GLcontext *ctx);
 
44
 
 
45
 
 
46
extern void
 
47
_mesa_init_transform_feedback_functions(struct dd_function_table *driver);
 
48
 
 
49
extern void
 
50
_mesa_init_transform_feedback_dispatch(struct _glapi_table *disp);
 
51
 
 
52
 
 
53
/*** GL_EXT_transform_feedback ***/
 
54
 
 
55
extern void GLAPIENTRY
 
56
_mesa_BeginTransformFeedback(GLenum mode);
 
57
 
 
58
extern void GLAPIENTRY
 
59
_mesa_EndTransformFeedback(void);
 
60
 
 
61
extern void GLAPIENTRY
 
62
_mesa_BindBufferRange(GLenum target, GLuint index,
 
63
                      GLuint buffer, GLintptr offset, GLsizeiptr size);
 
64
 
 
65
extern void GLAPIENTRY
 
66
_mesa_BindBufferBase(GLenum target, GLuint index, GLuint buffer);
 
67
 
 
68
extern void GLAPIENTRY
 
69
_mesa_BindBufferOffsetEXT(GLenum target, GLuint index, GLuint buffer,
 
70
                          GLintptr offset);
 
71
 
 
72
extern void GLAPIENTRY
 
73
_mesa_TransformFeedbackVaryings(GLuint program, GLsizei count,
 
74
                                const GLchar **varyings, GLenum bufferMode);
 
75
 
 
76
extern void GLAPIENTRY
 
77
_mesa_GetTransformFeedbackVarying(GLuint program, GLuint index,
 
78
                                  GLsizei bufSize, GLsizei *length,
 
79
                                  GLsizei *size, GLenum *type, GLchar *name);
 
80
 
 
81
 
 
82
 
 
83
/*** GL_ARB_transform_feedback2 ***/
 
84
 
 
85
extern void GLAPIENTRY
 
86
_mesa_GenTransformFeedbacks(GLsizei n, GLuint *names);
 
87
 
 
88
extern GLboolean GLAPIENTRY
 
89
_mesa_IsTransformFeedback(GLuint name);
 
90
 
 
91
extern void GLAPIENTRY
 
92
_mesa_BindTransformFeedback(GLenum target, GLuint name);
 
93
 
 
94
extern void GLAPIENTRY
 
95
_mesa_DeleteTransformFeedbacks(GLsizei n, const GLuint *names);
 
96
 
 
97
extern void GLAPIENTRY
 
98
_mesa_PauseTransformFeedback(void);
 
99
 
 
100
extern void GLAPIENTRY
 
101
_mesa_ResumeTransformFeedback(void);
 
102
 
 
103
extern void GLAPIENTRY
 
104
_mesa_DrawTransformFeedback(GLenum mode, GLuint name);
 
105
 
 
106
#else /* FEATURE_EXT_transform_feedback */
 
107
 
 
108
static INLINE GLboolean
 
109
_mesa_validate_primitive_mode(GLcontext *ctx, GLenum mode)
 
110
{
 
111
   return GL_TRUE;
 
112
}
 
113
 
 
114
static INLINE GLboolean
 
115
_mesa_validate_transform_feedback_buffers(GLcontext *ctx)
 
116
{
 
117
   return GL_TRUE;
 
118
}
 
119
 
 
120
static INLINE void
 
121
_mesa_init_transform_feedback_functions(struct dd_function_table *driver)
 
122
{
 
123
}
 
124
 
 
125
static INLINE void
 
126
_mesa_init_transform_feedback_dispatch(struct _glapi_table *disp)
 
127
{
 
128
}
 
129
 
 
130
#endif /* FEATURE_EXT_transform_feedback */
 
131
 
 
132
#endif /* TRANSFORM_FEEDBACK_H */