GLX: Changes resulting from changes to Mesa generator scripts / data
Several recent Mesa commits (listed below) make modifications to the protocol generator data and scripts. This commit represents the changes to the generated files resulting from the previous changes. - 0f73302d24f4201813da2939742c5bcb6964b3b1 GLX: Fix protocol for glTexSubImage#D - 1709ab01ef24279c782e420568e9257b4b92b224 Return 0 as the request size when the pixels parameter is NULL - 63cca2ba10ce7dcc8481cfa4be3872dfc269dded GLX: Include glapi.h before glapitable.h This is the server-side part of the fix for bugzilla #11003.
This commit is contained in:
parent
6383bc93b2
commit
f1c9b5ab23
|
@ -28,6 +28,8 @@
|
||||||
#if !defined( _DISPATCH_H_ )
|
#if !defined( _DISPATCH_H_ )
|
||||||
# define _DISPATCH_H_
|
# define _DISPATCH_H_
|
||||||
|
|
||||||
|
|
||||||
|
#include "glapitable.h"
|
||||||
/**
|
/**
|
||||||
* \file dispatch.h
|
* \file dispatch.h
|
||||||
* Macros for handling GL dispatch tables.
|
* Macros for handling GL dispatch tables.
|
||||||
|
|
17
glx/glapi.h
17
glx/glapi.h
|
@ -1,8 +1,8 @@
|
||||||
/*
|
/*
|
||||||
* Mesa 3-D graphics library
|
* Mesa 3-D graphics library
|
||||||
* Version: 6.5
|
* Version: 7.1
|
||||||
*
|
*
|
||||||
* Copyright (C) 1999-2006 Brian Paul All Rights Reserved.
|
* Copyright (C) 1999-2008 Brian Paul All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
* copy of this software and associated documentation files (the "Software"),
|
* copy of this software and associated documentation files (the "Software"),
|
||||||
|
@ -44,12 +44,17 @@
|
||||||
#ifndef _GLAPI_H
|
#ifndef _GLAPI_H
|
||||||
#define _GLAPI_H
|
#define _GLAPI_H
|
||||||
|
|
||||||
|
#define GL_GLEXT_PROTOTYPES
|
||||||
|
|
||||||
#include "GL/gl.h"
|
#include "GL/gl.h"
|
||||||
#include "glapitable.h"
|
#include "GL/glext.h"
|
||||||
#include "glthread.h"
|
#include "glthread.h"
|
||||||
|
|
||||||
|
|
||||||
|
struct _glapi_table;
|
||||||
|
|
||||||
|
typedef void (*_glapi_proc)(void); /* generic function pointer */
|
||||||
|
|
||||||
typedef void (*_glapi_warning_func)(void *ctx, const char *str, ...);
|
typedef void (*_glapi_warning_func)(void *ctx, const char *str, ...);
|
||||||
|
|
||||||
|
|
||||||
|
@ -63,6 +68,12 @@ typedef void (*_glapi_warning_func)(void *ctx, const char *str, ...);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Number of extension functions which we can dynamically add at runtime.
|
||||||
|
*/
|
||||||
|
#define MAX_EXTENSION_FUNCS 300
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
** Define the GET_CURRENT_CONTEXT() macro.
|
** Define the GET_CURRENT_CONTEXT() macro.
|
||||||
** \param C local variable which will hold the current context.
|
** \param C local variable which will hold the current context.
|
||||||
|
|
|
@ -37,7 +37,6 @@
|
||||||
# define GLAPIENTRYP GLAPIENTRY *
|
# define GLAPIENTRYP GLAPIENTRY *
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef void (*_glapi_proc)(void); /* generic function pointer */
|
|
||||||
|
|
||||||
struct _glapi_table
|
struct _glapi_table
|
||||||
{
|
{
|
||||||
|
|
|
@ -34,6 +34,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <stdio.h>
|
||||||
#include "glthread.h"
|
#include "glthread.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -36,8 +36,8 @@
|
||||||
#include "glxbyteorder.h"
|
#include "glxbyteorder.h"
|
||||||
#include "indirect_util.h"
|
#include "indirect_util.h"
|
||||||
#include "singlesize.h"
|
#include "singlesize.h"
|
||||||
#include "glapitable.h"
|
|
||||||
#include "glapi.h"
|
#include "glapi.h"
|
||||||
|
#include "glapitable.h"
|
||||||
#include "glthread.h"
|
#include "glthread.h"
|
||||||
#include "dispatch.h"
|
#include "dispatch.h"
|
||||||
|
|
||||||
|
@ -2972,8 +2972,7 @@ void __glXDisp_PrioritizeTextures(GLbyte * pc)
|
||||||
|
|
||||||
void __glXDisp_TexSubImage1D(GLbyte * pc)
|
void __glXDisp_TexSubImage1D(GLbyte * pc)
|
||||||
{
|
{
|
||||||
const CARD32 ptr_is_null = *(CARD32 *)(pc + 52);
|
const GLvoid * const pixels = (const GLvoid *) (pc + 56);
|
||||||
const GLvoid * const pixels = (const GLvoid *) (ptr_is_null != 0) ? NULL : (pc + 56);
|
|
||||||
__GLXpixelHeader * const hdr = (__GLXpixelHeader *)(pc);
|
__GLXpixelHeader * const hdr = (__GLXpixelHeader *)(pc);
|
||||||
|
|
||||||
CALL_PixelStorei( GET_DISPATCH(), (GL_UNPACK_SWAP_BYTES, hdr->swapBytes) );
|
CALL_PixelStorei( GET_DISPATCH(), (GL_UNPACK_SWAP_BYTES, hdr->swapBytes) );
|
||||||
|
@ -2996,8 +2995,7 @@ void __glXDisp_TexSubImage1D(GLbyte * pc)
|
||||||
|
|
||||||
void __glXDisp_TexSubImage2D(GLbyte * pc)
|
void __glXDisp_TexSubImage2D(GLbyte * pc)
|
||||||
{
|
{
|
||||||
const CARD32 ptr_is_null = *(CARD32 *)(pc + 52);
|
const GLvoid * const pixels = (const GLvoid *) (pc + 56);
|
||||||
const GLvoid * const pixels = (const GLvoid *) (ptr_is_null != 0) ? NULL : (pc + 56);
|
|
||||||
__GLXpixelHeader * const hdr = (__GLXpixelHeader *)(pc);
|
__GLXpixelHeader * const hdr = (__GLXpixelHeader *)(pc);
|
||||||
|
|
||||||
CALL_PixelStorei( GET_DISPATCH(), (GL_UNPACK_SWAP_BYTES, hdr->swapBytes) );
|
CALL_PixelStorei( GET_DISPATCH(), (GL_UNPACK_SWAP_BYTES, hdr->swapBytes) );
|
||||||
|
@ -3773,8 +3771,7 @@ void __glXDisp_TexImage3D(GLbyte * pc)
|
||||||
|
|
||||||
void __glXDisp_TexSubImage3D(GLbyte * pc)
|
void __glXDisp_TexSubImage3D(GLbyte * pc)
|
||||||
{
|
{
|
||||||
const CARD32 ptr_is_null = *(CARD32 *)(pc + 84);
|
const GLvoid * const pixels = (const GLvoid *) (pc + 88);
|
||||||
const GLvoid * const pixels = (const GLvoid *) (ptr_is_null != 0) ? NULL : (pc + 88);
|
|
||||||
__GLXpixel3DHeader * const hdr = (__GLXpixel3DHeader *)(pc);
|
__GLXpixel3DHeader * const hdr = (__GLXpixel3DHeader *)(pc);
|
||||||
|
|
||||||
CALL_PixelStorei( GET_DISPATCH(), (GL_UNPACK_SWAP_BYTES, hdr->swapBytes) );
|
CALL_PixelStorei( GET_DISPATCH(), (GL_UNPACK_SWAP_BYTES, hdr->swapBytes) );
|
||||||
|
|
|
@ -36,8 +36,8 @@
|
||||||
#include "glxbyteorder.h"
|
#include "glxbyteorder.h"
|
||||||
#include "indirect_util.h"
|
#include "indirect_util.h"
|
||||||
#include "singlesize.h"
|
#include "singlesize.h"
|
||||||
#include "glapitable.h"
|
|
||||||
#include "glapi.h"
|
#include "glapi.h"
|
||||||
|
#include "glapitable.h"
|
||||||
#include "glthread.h"
|
#include "glthread.h"
|
||||||
#include "dispatch.h"
|
#include "dispatch.h"
|
||||||
|
|
||||||
|
@ -3092,8 +3092,7 @@ void __glXDispSwap_PrioritizeTextures(GLbyte * pc)
|
||||||
|
|
||||||
void __glXDispSwap_TexSubImage1D(GLbyte * pc)
|
void __glXDispSwap_TexSubImage1D(GLbyte * pc)
|
||||||
{
|
{
|
||||||
const CARD32 ptr_is_null = *(CARD32 *)(pc + 52);
|
const GLvoid * const pixels = (const GLvoid *) (pc + 56);
|
||||||
const GLvoid * const pixels = (const GLvoid *) (ptr_is_null != 0) ? NULL : (pc + 56);
|
|
||||||
__GLXpixelHeader * const hdr = (__GLXpixelHeader *)(pc);
|
__GLXpixelHeader * const hdr = (__GLXpixelHeader *)(pc);
|
||||||
|
|
||||||
CALL_PixelStorei( GET_DISPATCH(), (GL_UNPACK_SWAP_BYTES, hdr->swapBytes) );
|
CALL_PixelStorei( GET_DISPATCH(), (GL_UNPACK_SWAP_BYTES, hdr->swapBytes) );
|
||||||
|
@ -3116,8 +3115,7 @@ void __glXDispSwap_TexSubImage1D(GLbyte * pc)
|
||||||
|
|
||||||
void __glXDispSwap_TexSubImage2D(GLbyte * pc)
|
void __glXDispSwap_TexSubImage2D(GLbyte * pc)
|
||||||
{
|
{
|
||||||
const CARD32 ptr_is_null = *(CARD32 *)(pc + 52);
|
const GLvoid * const pixels = (const GLvoid *) (pc + 56);
|
||||||
const GLvoid * const pixels = (const GLvoid *) (ptr_is_null != 0) ? NULL : (pc + 56);
|
|
||||||
__GLXpixelHeader * const hdr = (__GLXpixelHeader *)(pc);
|
__GLXpixelHeader * const hdr = (__GLXpixelHeader *)(pc);
|
||||||
|
|
||||||
CALL_PixelStorei( GET_DISPATCH(), (GL_UNPACK_SWAP_BYTES, hdr->swapBytes) );
|
CALL_PixelStorei( GET_DISPATCH(), (GL_UNPACK_SWAP_BYTES, hdr->swapBytes) );
|
||||||
|
@ -3909,8 +3907,7 @@ void __glXDispSwap_TexImage3D(GLbyte * pc)
|
||||||
|
|
||||||
void __glXDispSwap_TexSubImage3D(GLbyte * pc)
|
void __glXDispSwap_TexSubImage3D(GLbyte * pc)
|
||||||
{
|
{
|
||||||
const CARD32 ptr_is_null = *(CARD32 *)(pc + 84);
|
const GLvoid * const pixels = (const GLvoid *) (pc + 88);
|
||||||
const GLvoid * const pixels = (const GLvoid *) (ptr_is_null != 0) ? NULL : (pc + 88);
|
|
||||||
__GLXpixel3DHeader * const hdr = (__GLXpixel3DHeader *)(pc);
|
__GLXpixel3DHeader * const hdr = (__GLXpixel3DHeader *)(pc);
|
||||||
|
|
||||||
CALL_PixelStorei( GET_DISPATCH(), (GL_UNPACK_SWAP_BYTES, hdr->swapBytes) );
|
CALL_PixelStorei( GET_DISPATCH(), (GL_UNPACK_SWAP_BYTES, hdr->swapBytes) );
|
||||||
|
|
|
@ -572,6 +572,9 @@ __glXTexImage3DReqSize(const GLbyte *pc, Bool swap)
|
||||||
type = bswap_32(type);
|
type = bswap_32(type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (*(CARD32 *) (pc + 76))
|
||||||
|
return 0;
|
||||||
|
|
||||||
return __glXImageSize(format, type, target, width, height, depth,
|
return __glXImageSize(format, type, target, width, height, depth,
|
||||||
image_height, row_length, skip_images,
|
image_height, row_length, skip_images,
|
||||||
skip_rows, alignment);
|
skip_rows, alignment);
|
||||||
|
|
Loading…
Reference in New Issue