mesa: update to version 64 of GL/glext.h
A number of other files had to be updated as well because const qualifiers were added to the glMultiDrawArrays() function. Also, GL_FIXED is now defined in glext.h.
This commit is contained in:
parent
83f5f50f2f
commit
7993832c12
|
@ -54,6 +54,7 @@ tbd
|
|||
<ul>
|
||||
<li>The Mesa demo/test programs have been moved into a separate git
|
||||
repository.
|
||||
<li>GL/glext.h file upgraded to version 64
|
||||
</ul>
|
||||
|
||||
</body>
|
||||
|
|
1105
include/GL/glext.h
1105
include/GL/glext.h
File diff suppressed because it is too large
Load Diff
|
@ -91,7 +91,7 @@ __glXReadReply(Display * dpy, size_t size, void *dest,
|
|||
}
|
||||
|
||||
NOINLINE void
|
||||
__glXReadPixelReply(Display * dpy, struct glx_context * gc, unsigned max_dim,
|
||||
__glXReadPixelReply(Display * dpy, struct glx_context *gc, unsigned max_dim,
|
||||
GLint width, GLint height, GLint depth, GLenum format,
|
||||
GLenum type, void *dest, GLboolean dimensions_in_reply)
|
||||
{
|
||||
|
@ -138,7 +138,7 @@ __glXReadPixelReply(Display * dpy, struct glx_context * gc, unsigned max_dim,
|
|||
#define X_GLXSingle 0
|
||||
|
||||
NOINLINE FASTCALL GLubyte *
|
||||
__glXSetupSingleRequest(struct glx_context * gc, GLint sop, GLint cmdlen)
|
||||
__glXSetupSingleRequest(struct glx_context *gc, GLint sop, GLint cmdlen)
|
||||
{
|
||||
xGLXSingleReq *req;
|
||||
Display *const dpy = gc->currentDpy;
|
||||
|
@ -153,7 +153,7 @@ __glXSetupSingleRequest(struct glx_context * gc, GLint sop, GLint cmdlen)
|
|||
}
|
||||
|
||||
NOINLINE FASTCALL GLubyte *
|
||||
__glXSetupVendorRequest(struct glx_context * gc, GLint code, GLint vop,
|
||||
__glXSetupVendorRequest(struct glx_context *gc, GLint code, GLint vop,
|
||||
GLint cmdlen)
|
||||
{
|
||||
xGLXVendorPrivateReq *req;
|
||||
|
|
|
@ -600,7 +600,7 @@ extern HIDDEN void __indirect_glSecondaryColor3uivEXT(const GLuint * v);
|
|||
extern HIDDEN void __indirect_glSecondaryColor3usEXT(GLushort red, GLushort green, GLushort blue);
|
||||
extern HIDDEN void __indirect_glSecondaryColor3usvEXT(const GLushort * v);
|
||||
extern HIDDEN void __indirect_glSecondaryColorPointerEXT(GLint size, GLenum type, GLsizei stride, const GLvoid * pointer);
|
||||
extern HIDDEN void __indirect_glMultiDrawArraysEXT(GLenum mode, GLint * first, GLsizei * count, GLsizei primcount);
|
||||
extern HIDDEN void __indirect_glMultiDrawArraysEXT(GLenum mode, const GLint * first, const GLsizei * count, GLsizei primcount);
|
||||
extern HIDDEN void __indirect_glMultiDrawElementsEXT(GLenum mode, const GLsizei * count, GLenum type, const GLvoid ** indices, GLsizei primcount);
|
||||
extern HIDDEN void __indirect_glFogCoordPointerEXT(GLenum type, GLsizei stride, const GLvoid * pointer);
|
||||
extern HIDDEN void __indirect_glFogCoorddEXT(GLdouble coord);
|
||||
|
|
|
@ -53,7 +53,7 @@ static int NoOp(void)
|
|||
* Create and initialize a new GL dispatch table. The table is initialized
|
||||
* with GLX indirect rendering protocol functions.
|
||||
*/
|
||||
struct _glapi_table *__glXNewIndirectAPI( void )
|
||||
struct _glapi_table * __glXNewIndirectAPI( void )
|
||||
{
|
||||
struct _glapi_table *glAPI;
|
||||
GLuint entries;
|
||||
|
|
|
@ -106,7 +106,7 @@ xorg: check-xorg-source $(XORG_OUTPUTS)
|
|||
|
||||
check-xorg-source:
|
||||
@if ! test -d $(XORG_GLX_DIR); then \
|
||||
echo "ERROR: Must specify path to xserver/GL/GLX checkout; set XORG_GLX_DIR."; \
|
||||
echo "ERROR: Must specify path to xserver/GL/ checkout; set XORG_BASE env var."; \
|
||||
exit 1; \
|
||||
fi
|
||||
|
||||
|
|
|
@ -4666,8 +4666,8 @@
|
|||
|
||||
<function name="MultiDrawArrays" alias="MultiDrawArraysEXT">
|
||||
<param name="mode" type="GLenum"/>
|
||||
<param name="first" type="GLint *"/> <!-- Spec bug. Should be const. -->
|
||||
<param name="count" type="GLsizei *"/> <!-- Spec bug. Should be const. -->
|
||||
<param name="first" type="const GLint *"/>
|
||||
<param name="count" type="const GLsizei *"/>
|
||||
<param name="primcount" type="GLsizei"/>
|
||||
</function>
|
||||
|
||||
|
@ -9794,8 +9794,8 @@
|
|||
<category name="GL_EXT_multi_draw_arrays" number="148">
|
||||
<function name="MultiDrawArraysEXT" offset="assign">
|
||||
<param name="mode" type="GLenum"/>
|
||||
<param name="first" type="GLint *"/> <!-- Spec bug. Should be const. -->
|
||||
<param name="count" type="GLsizei *"/> <!-- Spec bug. Should be const. -->
|
||||
<param name="first" type="const GLint *"/>
|
||||
<param name="count" type="const GLsizei *"/>
|
||||
<param name="primcount" type="GLsizei"/>
|
||||
<glx handcode="true"/>
|
||||
</function>
|
||||
|
|
|
@ -3625,7 +3625,7 @@ extern int driDispatchRemapTable[ driDispatchRemapTable_size ];
|
|||
#define CALL_SecondaryColorPointerEXT(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLint, GLenum, GLsizei, const GLvoid *)), driDispatchRemapTable[SecondaryColorPointerEXT_remap_index], parameters)
|
||||
#define GET_SecondaryColorPointerEXT(disp) GET_by_offset(disp, driDispatchRemapTable[SecondaryColorPointerEXT_remap_index])
|
||||
#define SET_SecondaryColorPointerEXT(disp, fn) SET_by_offset(disp, driDispatchRemapTable[SecondaryColorPointerEXT_remap_index], fn)
|
||||
#define CALL_MultiDrawArraysEXT(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, GLint *, GLsizei *, GLsizei)), driDispatchRemapTable[MultiDrawArraysEXT_remap_index], parameters)
|
||||
#define CALL_MultiDrawArraysEXT(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, const GLint *, const GLsizei *, GLsizei)), driDispatchRemapTable[MultiDrawArraysEXT_remap_index], parameters)
|
||||
#define GET_MultiDrawArraysEXT(disp) GET_by_offset(disp, driDispatchRemapTable[MultiDrawArraysEXT_remap_index])
|
||||
#define SET_MultiDrawArraysEXT(disp, fn) SET_by_offset(disp, driDispatchRemapTable[MultiDrawArraysEXT_remap_index], fn)
|
||||
#define CALL_MultiDrawElementsEXT(disp, parameters) CALL_by_offset(disp, (void (GLAPIENTRYP)(GLenum, const GLsizei *, GLenum, const GLvoid **, GLsizei)), driDispatchRemapTable[MultiDrawElementsEXT_remap_index], parameters)
|
||||
|
|
|
@ -667,7 +667,7 @@ struct _glapi_table
|
|||
void (GLAPIENTRYP SecondaryColor3usEXT)(GLushort red, GLushort green, GLushort blue); /* 624 */
|
||||
void (GLAPIENTRYP SecondaryColor3usvEXT)(const GLushort * v); /* 625 */
|
||||
void (GLAPIENTRYP SecondaryColorPointerEXT)(GLint size, GLenum type, GLsizei stride, const GLvoid * pointer); /* 626 */
|
||||
void (GLAPIENTRYP MultiDrawArraysEXT)(GLenum mode, GLint * first, GLsizei * count, GLsizei primcount); /* 627 */
|
||||
void (GLAPIENTRYP MultiDrawArraysEXT)(GLenum mode, const GLint * first, const GLsizei * count, GLsizei primcount); /* 627 */
|
||||
void (GLAPIENTRYP MultiDrawElementsEXT)(GLenum mode, const GLsizei * count, GLenum type, const GLvoid ** indices, GLsizei primcount); /* 628 */
|
||||
void (GLAPIENTRYP FogCoordPointerEXT)(GLenum type, GLsizei stride, const GLvoid * pointer); /* 629 */
|
||||
void (GLAPIENTRYP FogCoorddEXT)(GLdouble coord); /* 630 */
|
||||
|
|
|
@ -4336,12 +4336,12 @@ KEYWORD1 void KEYWORD2 NAME(SecondaryColorPointerEXT)(GLint size, GLenum type, G
|
|||
DISPATCH(SecondaryColorPointerEXT, (size, type, stride, pointer), (F, "glSecondaryColorPointerEXT(%d, 0x%x, %d, %p);\n", size, type, stride, (const void *) pointer));
|
||||
}
|
||||
|
||||
KEYWORD1 void KEYWORD2 NAME(MultiDrawArrays)(GLenum mode, GLint * first, GLsizei * count, GLsizei primcount)
|
||||
KEYWORD1 void KEYWORD2 NAME(MultiDrawArrays)(GLenum mode, const GLint * first, const GLsizei * count, GLsizei primcount)
|
||||
{
|
||||
DISPATCH(MultiDrawArraysEXT, (mode, first, count, primcount), (F, "glMultiDrawArrays(0x%x, %p, %p, %d);\n", mode, (const void *) first, (const void *) count, primcount));
|
||||
}
|
||||
|
||||
KEYWORD1 void KEYWORD2 NAME(MultiDrawArraysEXT)(GLenum mode, GLint * first, GLsizei * count, GLsizei primcount)
|
||||
KEYWORD1 void KEYWORD2 NAME(MultiDrawArraysEXT)(GLenum mode, const GLint * first, const GLsizei * count, GLsizei primcount)
|
||||
{
|
||||
DISPATCH(MultiDrawArraysEXT, (mode, first, count, primcount), (F, "glMultiDrawArraysEXT(0x%x, %p, %p, %d);\n", mode, (const void *) first, (const void *) count, primcount));
|
||||
}
|
||||
|
|
|
@ -8892,8 +8892,8 @@ exec_FogCoordPointerEXT(GLenum type, GLsizei stride, const GLvoid *ptr)
|
|||
|
||||
/* GL_EXT_multi_draw_arrays */
|
||||
static void GLAPIENTRY
|
||||
exec_MultiDrawArraysEXT(GLenum mode, GLint * first,
|
||||
GLsizei * count, GLsizei primcount)
|
||||
exec_MultiDrawArraysEXT(GLenum mode, const GLint *first,
|
||||
const GLsizei *count, GLsizei primcount)
|
||||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
FLUSH_VERTICES(ctx, 0);
|
||||
|
|
|
@ -55,11 +55,11 @@
|
|||
#include "GL/internal/glcore.h"
|
||||
|
||||
|
||||
#ifndef GL_FIXED
|
||||
#define GL_FIXED 0x140C
|
||||
/**
|
||||
* GL_FIXED is defined in glext.h version 64 but these typedefs aren't (yet).
|
||||
*/
|
||||
typedef int GLfixed;
|
||||
typedef int GLclampx;
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef GL_OES_EGL_image
|
||||
|
|
|
@ -1256,8 +1256,8 @@ _mesa_UnlockArraysEXT( void )
|
|||
/* GL_EXT_multi_draw_arrays */
|
||||
/* Somebody forgot to spec the first and count parameters as const! <sigh> */
|
||||
void GLAPIENTRY
|
||||
_mesa_MultiDrawArraysEXT( GLenum mode, GLint *first,
|
||||
GLsizei *count, GLsizei primcount )
|
||||
_mesa_MultiDrawArraysEXT( GLenum mode, const GLint *first,
|
||||
const GLsizei *count, GLsizei primcount )
|
||||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
GLint i;
|
||||
|
|
|
@ -159,8 +159,8 @@ _mesa_InterleavedArrays(GLenum format, GLsizei stride, const GLvoid *pointer);
|
|||
|
||||
|
||||
extern void GLAPIENTRY
|
||||
_mesa_MultiDrawArraysEXT( GLenum mode, GLint *first,
|
||||
GLsizei *count, GLsizei primcount );
|
||||
_mesa_MultiDrawArraysEXT( GLenum mode, const GLint *first,
|
||||
const GLsizei *count, GLsizei primcount );
|
||||
|
||||
extern void GLAPIENTRY
|
||||
_mesa_MultiDrawElementsEXT( GLenum mode, const GLsizei *count, GLenum type,
|
||||
|
|
Loading…
Reference in New Issue