Fix bug #8608.
Regenerate files based on recent commits to Mesa (that fix Mesa bug that return pixel data.
This commit is contained in:
parent
042d4a407d
commit
a6df780e4d
|
@ -2756,6 +2756,31 @@ int __glXDisp_AreTexturesResident(__GLXclientState *cl, GLbyte *pc)
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int __glXDisp_AreTexturesResidentEXT(__GLXclientState *cl, GLbyte *pc)
|
||||||
|
{
|
||||||
|
xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc;
|
||||||
|
int error;
|
||||||
|
__GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error);
|
||||||
|
|
||||||
|
pc += __GLX_VENDPRIV_HDR_SIZE;
|
||||||
|
if ( cx != NULL ) {
|
||||||
|
const GLsizei n = *(GLsizei *)(pc + 0);
|
||||||
|
|
||||||
|
GLboolean retval;
|
||||||
|
GLboolean answerBuffer[200];
|
||||||
|
GLboolean * residences = __glXGetAnswerBuffer(cl, n, answerBuffer, sizeof(answerBuffer), 1);
|
||||||
|
retval = CALL_AreTexturesResident( GET_DISPATCH(), (
|
||||||
|
n,
|
||||||
|
(const GLuint *)(pc + 4),
|
||||||
|
residences
|
||||||
|
) );
|
||||||
|
__glXSendReply(cl->client, residences, n, 1, GL_TRUE, retval);
|
||||||
|
error = Success;
|
||||||
|
}
|
||||||
|
|
||||||
|
return error;
|
||||||
|
}
|
||||||
|
|
||||||
void __glXDisp_CopyTexImage1D(GLbyte * pc)
|
void __glXDisp_CopyTexImage1D(GLbyte * pc)
|
||||||
{
|
{
|
||||||
CALL_CopyTexImage1D( GET_DISPATCH(), (
|
CALL_CopyTexImage1D( GET_DISPATCH(), (
|
||||||
|
@ -2810,6 +2835,26 @@ void __glXDisp_CopyTexSubImage2D(GLbyte * pc)
|
||||||
}
|
}
|
||||||
|
|
||||||
int __glXDisp_DeleteTextures(__GLXclientState *cl, GLbyte *pc)
|
int __glXDisp_DeleteTextures(__GLXclientState *cl, GLbyte *pc)
|
||||||
|
{
|
||||||
|
xGLXSingleReq * const req = (xGLXSingleReq *) pc;
|
||||||
|
int error;
|
||||||
|
__GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error);
|
||||||
|
|
||||||
|
pc += __GLX_SINGLE_HDR_SIZE;
|
||||||
|
if ( cx != NULL ) {
|
||||||
|
const GLsizei n = *(GLsizei *)(pc + 0);
|
||||||
|
|
||||||
|
CALL_DeleteTextures( GET_DISPATCH(), (
|
||||||
|
n,
|
||||||
|
(const GLuint *)(pc + 4)
|
||||||
|
) );
|
||||||
|
error = Success;
|
||||||
|
}
|
||||||
|
|
||||||
|
return error;
|
||||||
|
}
|
||||||
|
|
||||||
|
int __glXDisp_DeleteTexturesEXT(__GLXclientState *cl, GLbyte *pc)
|
||||||
{
|
{
|
||||||
xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc;
|
xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc;
|
||||||
int error;
|
int error;
|
||||||
|
@ -2852,6 +2897,29 @@ int __glXDisp_GenTextures(__GLXclientState *cl, GLbyte *pc)
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int __glXDisp_GenTexturesEXT(__GLXclientState *cl, GLbyte *pc)
|
||||||
|
{
|
||||||
|
xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc;
|
||||||
|
int error;
|
||||||
|
__GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error);
|
||||||
|
|
||||||
|
pc += __GLX_VENDPRIV_HDR_SIZE;
|
||||||
|
if ( cx != NULL ) {
|
||||||
|
const GLsizei n = *(GLsizei *)(pc + 0);
|
||||||
|
|
||||||
|
GLuint answerBuffer[200];
|
||||||
|
GLuint * textures = __glXGetAnswerBuffer(cl, n * 4, answerBuffer, sizeof(answerBuffer), 4);
|
||||||
|
CALL_GenTextures( GET_DISPATCH(), (
|
||||||
|
n,
|
||||||
|
textures
|
||||||
|
) );
|
||||||
|
__glXSendReply(cl->client, textures, n, 4, GL_TRUE, 0);
|
||||||
|
error = Success;
|
||||||
|
}
|
||||||
|
|
||||||
|
return error;
|
||||||
|
}
|
||||||
|
|
||||||
int __glXDisp_IsTexture(__GLXclientState *cl, GLbyte *pc)
|
int __glXDisp_IsTexture(__GLXclientState *cl, GLbyte *pc)
|
||||||
{
|
{
|
||||||
xGLXSingleReq * const req = (xGLXSingleReq *) pc;
|
xGLXSingleReq * const req = (xGLXSingleReq *) pc;
|
||||||
|
@ -2871,6 +2939,25 @@ int __glXDisp_IsTexture(__GLXclientState *cl, GLbyte *pc)
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int __glXDisp_IsTextureEXT(__GLXclientState *cl, GLbyte *pc)
|
||||||
|
{
|
||||||
|
xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc;
|
||||||
|
int error;
|
||||||
|
__GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error);
|
||||||
|
|
||||||
|
pc += __GLX_VENDPRIV_HDR_SIZE;
|
||||||
|
if ( cx != NULL ) {
|
||||||
|
GLboolean retval;
|
||||||
|
retval = CALL_IsTexture( GET_DISPATCH(), (
|
||||||
|
*(GLuint *)(pc + 0)
|
||||||
|
) );
|
||||||
|
__glXSendReply(cl->client, dummy_answer, 0, 0, GL_FALSE, retval);
|
||||||
|
error = Success;
|
||||||
|
}
|
||||||
|
|
||||||
|
return error;
|
||||||
|
}
|
||||||
|
|
||||||
void __glXDisp_PrioritizeTextures(GLbyte * pc)
|
void __glXDisp_PrioritizeTextures(GLbyte * pc)
|
||||||
{
|
{
|
||||||
const GLsizei n = *(GLsizei *)(pc + 0);
|
const GLsizei n = *(GLsizei *)(pc + 0);
|
||||||
|
@ -3039,6 +3126,35 @@ int __glXDisp_GetColorTableParameterfv(__GLXclientState *cl, GLbyte *pc)
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int __glXDisp_GetColorTableParameterfvSGI(__GLXclientState *cl, GLbyte *pc)
|
||||||
|
{
|
||||||
|
xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc;
|
||||||
|
int error;
|
||||||
|
__GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error);
|
||||||
|
|
||||||
|
pc += __GLX_VENDPRIV_HDR_SIZE;
|
||||||
|
if ( cx != NULL ) {
|
||||||
|
const GLenum pname = *(GLenum *)(pc + 4);
|
||||||
|
|
||||||
|
const GLuint compsize = __glGetColorTableParameterfv_size(pname);
|
||||||
|
GLfloat answerBuffer[200];
|
||||||
|
GLfloat * params = __glXGetAnswerBuffer(cl, compsize * 4, answerBuffer, sizeof(answerBuffer), 4);
|
||||||
|
|
||||||
|
if (params == NULL) return BadAlloc;
|
||||||
|
__glXClearErrorOccured();
|
||||||
|
|
||||||
|
CALL_GetColorTableParameterfv( GET_DISPATCH(), (
|
||||||
|
*(GLenum *)(pc + 0),
|
||||||
|
pname,
|
||||||
|
params
|
||||||
|
) );
|
||||||
|
__glXSendReply(cl->client, params, compsize, 4, GL_FALSE, 0);
|
||||||
|
error = Success;
|
||||||
|
}
|
||||||
|
|
||||||
|
return error;
|
||||||
|
}
|
||||||
|
|
||||||
int __glXDisp_GetColorTableParameteriv(__GLXclientState *cl, GLbyte *pc)
|
int __glXDisp_GetColorTableParameteriv(__GLXclientState *cl, GLbyte *pc)
|
||||||
{
|
{
|
||||||
xGLXSingleReq * const req = (xGLXSingleReq *) pc;
|
xGLXSingleReq * const req = (xGLXSingleReq *) pc;
|
||||||
|
@ -3068,6 +3184,35 @@ int __glXDisp_GetColorTableParameteriv(__GLXclientState *cl, GLbyte *pc)
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int __glXDisp_GetColorTableParameterivSGI(__GLXclientState *cl, GLbyte *pc)
|
||||||
|
{
|
||||||
|
xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc;
|
||||||
|
int error;
|
||||||
|
__GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error);
|
||||||
|
|
||||||
|
pc += __GLX_VENDPRIV_HDR_SIZE;
|
||||||
|
if ( cx != NULL ) {
|
||||||
|
const GLenum pname = *(GLenum *)(pc + 4);
|
||||||
|
|
||||||
|
const GLuint compsize = __glGetColorTableParameteriv_size(pname);
|
||||||
|
GLint answerBuffer[200];
|
||||||
|
GLint * params = __glXGetAnswerBuffer(cl, compsize * 4, answerBuffer, sizeof(answerBuffer), 4);
|
||||||
|
|
||||||
|
if (params == NULL) return BadAlloc;
|
||||||
|
__glXClearErrorOccured();
|
||||||
|
|
||||||
|
CALL_GetColorTableParameteriv( GET_DISPATCH(), (
|
||||||
|
*(GLenum *)(pc + 0),
|
||||||
|
pname,
|
||||||
|
params
|
||||||
|
) );
|
||||||
|
__glXSendReply(cl->client, params, compsize, 4, GL_FALSE, 0);
|
||||||
|
error = Success;
|
||||||
|
}
|
||||||
|
|
||||||
|
return error;
|
||||||
|
}
|
||||||
|
|
||||||
void __glXDisp_ColorSubTable(GLbyte * pc)
|
void __glXDisp_ColorSubTable(GLbyte * pc)
|
||||||
{
|
{
|
||||||
const GLvoid * const data = (const GLvoid *) (pc + 40);
|
const GLvoid * const data = (const GLvoid *) (pc + 40);
|
||||||
|
@ -3244,6 +3389,35 @@ int __glXDisp_GetConvolutionParameterfv(__GLXclientState *cl, GLbyte *pc)
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int __glXDisp_GetConvolutionParameterfvEXT(__GLXclientState *cl, GLbyte *pc)
|
||||||
|
{
|
||||||
|
xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc;
|
||||||
|
int error;
|
||||||
|
__GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error);
|
||||||
|
|
||||||
|
pc += __GLX_VENDPRIV_HDR_SIZE;
|
||||||
|
if ( cx != NULL ) {
|
||||||
|
const GLenum pname = *(GLenum *)(pc + 4);
|
||||||
|
|
||||||
|
const GLuint compsize = __glGetConvolutionParameterfv_size(pname);
|
||||||
|
GLfloat answerBuffer[200];
|
||||||
|
GLfloat * params = __glXGetAnswerBuffer(cl, compsize * 4, answerBuffer, sizeof(answerBuffer), 4);
|
||||||
|
|
||||||
|
if (params == NULL) return BadAlloc;
|
||||||
|
__glXClearErrorOccured();
|
||||||
|
|
||||||
|
CALL_GetConvolutionParameterfv( GET_DISPATCH(), (
|
||||||
|
*(GLenum *)(pc + 0),
|
||||||
|
pname,
|
||||||
|
params
|
||||||
|
) );
|
||||||
|
__glXSendReply(cl->client, params, compsize, 4, GL_FALSE, 0);
|
||||||
|
error = Success;
|
||||||
|
}
|
||||||
|
|
||||||
|
return error;
|
||||||
|
}
|
||||||
|
|
||||||
int __glXDisp_GetConvolutionParameteriv(__GLXclientState *cl, GLbyte *pc)
|
int __glXDisp_GetConvolutionParameteriv(__GLXclientState *cl, GLbyte *pc)
|
||||||
{
|
{
|
||||||
xGLXSingleReq * const req = (xGLXSingleReq *) pc;
|
xGLXSingleReq * const req = (xGLXSingleReq *) pc;
|
||||||
|
@ -3273,6 +3447,35 @@ int __glXDisp_GetConvolutionParameteriv(__GLXclientState *cl, GLbyte *pc)
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int __glXDisp_GetConvolutionParameterivEXT(__GLXclientState *cl, GLbyte *pc)
|
||||||
|
{
|
||||||
|
xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc;
|
||||||
|
int error;
|
||||||
|
__GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error);
|
||||||
|
|
||||||
|
pc += __GLX_VENDPRIV_HDR_SIZE;
|
||||||
|
if ( cx != NULL ) {
|
||||||
|
const GLenum pname = *(GLenum *)(pc + 4);
|
||||||
|
|
||||||
|
const GLuint compsize = __glGetConvolutionParameteriv_size(pname);
|
||||||
|
GLint answerBuffer[200];
|
||||||
|
GLint * params = __glXGetAnswerBuffer(cl, compsize * 4, answerBuffer, sizeof(answerBuffer), 4);
|
||||||
|
|
||||||
|
if (params == NULL) return BadAlloc;
|
||||||
|
__glXClearErrorOccured();
|
||||||
|
|
||||||
|
CALL_GetConvolutionParameteriv( GET_DISPATCH(), (
|
||||||
|
*(GLenum *)(pc + 0),
|
||||||
|
pname,
|
||||||
|
params
|
||||||
|
) );
|
||||||
|
__glXSendReply(cl->client, params, compsize, 4, GL_FALSE, 0);
|
||||||
|
error = Success;
|
||||||
|
}
|
||||||
|
|
||||||
|
return error;
|
||||||
|
}
|
||||||
|
|
||||||
int __glXDisp_GetHistogramParameterfv(__GLXclientState *cl, GLbyte *pc)
|
int __glXDisp_GetHistogramParameterfv(__GLXclientState *cl, GLbyte *pc)
|
||||||
{
|
{
|
||||||
xGLXSingleReq * const req = (xGLXSingleReq *) pc;
|
xGLXSingleReq * const req = (xGLXSingleReq *) pc;
|
||||||
|
@ -3302,6 +3505,35 @@ int __glXDisp_GetHistogramParameterfv(__GLXclientState *cl, GLbyte *pc)
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int __glXDisp_GetHistogramParameterfvEXT(__GLXclientState *cl, GLbyte *pc)
|
||||||
|
{
|
||||||
|
xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc;
|
||||||
|
int error;
|
||||||
|
__GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error);
|
||||||
|
|
||||||
|
pc += __GLX_VENDPRIV_HDR_SIZE;
|
||||||
|
if ( cx != NULL ) {
|
||||||
|
const GLenum pname = *(GLenum *)(pc + 4);
|
||||||
|
|
||||||
|
const GLuint compsize = __glGetHistogramParameterfv_size(pname);
|
||||||
|
GLfloat answerBuffer[200];
|
||||||
|
GLfloat * params = __glXGetAnswerBuffer(cl, compsize * 4, answerBuffer, sizeof(answerBuffer), 4);
|
||||||
|
|
||||||
|
if (params == NULL) return BadAlloc;
|
||||||
|
__glXClearErrorOccured();
|
||||||
|
|
||||||
|
CALL_GetHistogramParameterfv( GET_DISPATCH(), (
|
||||||
|
*(GLenum *)(pc + 0),
|
||||||
|
pname,
|
||||||
|
params
|
||||||
|
) );
|
||||||
|
__glXSendReply(cl->client, params, compsize, 4, GL_FALSE, 0);
|
||||||
|
error = Success;
|
||||||
|
}
|
||||||
|
|
||||||
|
return error;
|
||||||
|
}
|
||||||
|
|
||||||
int __glXDisp_GetHistogramParameteriv(__GLXclientState *cl, GLbyte *pc)
|
int __glXDisp_GetHistogramParameteriv(__GLXclientState *cl, GLbyte *pc)
|
||||||
{
|
{
|
||||||
xGLXSingleReq * const req = (xGLXSingleReq *) pc;
|
xGLXSingleReq * const req = (xGLXSingleReq *) pc;
|
||||||
|
@ -3331,6 +3563,35 @@ int __glXDisp_GetHistogramParameteriv(__GLXclientState *cl, GLbyte *pc)
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int __glXDisp_GetHistogramParameterivEXT(__GLXclientState *cl, GLbyte *pc)
|
||||||
|
{
|
||||||
|
xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc;
|
||||||
|
int error;
|
||||||
|
__GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error);
|
||||||
|
|
||||||
|
pc += __GLX_VENDPRIV_HDR_SIZE;
|
||||||
|
if ( cx != NULL ) {
|
||||||
|
const GLenum pname = *(GLenum *)(pc + 4);
|
||||||
|
|
||||||
|
const GLuint compsize = __glGetHistogramParameteriv_size(pname);
|
||||||
|
GLint answerBuffer[200];
|
||||||
|
GLint * params = __glXGetAnswerBuffer(cl, compsize * 4, answerBuffer, sizeof(answerBuffer), 4);
|
||||||
|
|
||||||
|
if (params == NULL) return BadAlloc;
|
||||||
|
__glXClearErrorOccured();
|
||||||
|
|
||||||
|
CALL_GetHistogramParameteriv( GET_DISPATCH(), (
|
||||||
|
*(GLenum *)(pc + 0),
|
||||||
|
pname,
|
||||||
|
params
|
||||||
|
) );
|
||||||
|
__glXSendReply(cl->client, params, compsize, 4, GL_FALSE, 0);
|
||||||
|
error = Success;
|
||||||
|
}
|
||||||
|
|
||||||
|
return error;
|
||||||
|
}
|
||||||
|
|
||||||
int __glXDisp_GetMinmaxParameterfv(__GLXclientState *cl, GLbyte *pc)
|
int __glXDisp_GetMinmaxParameterfv(__GLXclientState *cl, GLbyte *pc)
|
||||||
{
|
{
|
||||||
xGLXSingleReq * const req = (xGLXSingleReq *) pc;
|
xGLXSingleReq * const req = (xGLXSingleReq *) pc;
|
||||||
|
@ -3360,6 +3621,35 @@ int __glXDisp_GetMinmaxParameterfv(__GLXclientState *cl, GLbyte *pc)
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int __glXDisp_GetMinmaxParameterfvEXT(__GLXclientState *cl, GLbyte *pc)
|
||||||
|
{
|
||||||
|
xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc;
|
||||||
|
int error;
|
||||||
|
__GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error);
|
||||||
|
|
||||||
|
pc += __GLX_VENDPRIV_HDR_SIZE;
|
||||||
|
if ( cx != NULL ) {
|
||||||
|
const GLenum pname = *(GLenum *)(pc + 4);
|
||||||
|
|
||||||
|
const GLuint compsize = __glGetMinmaxParameterfv_size(pname);
|
||||||
|
GLfloat answerBuffer[200];
|
||||||
|
GLfloat * params = __glXGetAnswerBuffer(cl, compsize * 4, answerBuffer, sizeof(answerBuffer), 4);
|
||||||
|
|
||||||
|
if (params == NULL) return BadAlloc;
|
||||||
|
__glXClearErrorOccured();
|
||||||
|
|
||||||
|
CALL_GetMinmaxParameterfv( GET_DISPATCH(), (
|
||||||
|
*(GLenum *)(pc + 0),
|
||||||
|
pname,
|
||||||
|
params
|
||||||
|
) );
|
||||||
|
__glXSendReply(cl->client, params, compsize, 4, GL_FALSE, 0);
|
||||||
|
error = Success;
|
||||||
|
}
|
||||||
|
|
||||||
|
return error;
|
||||||
|
}
|
||||||
|
|
||||||
int __glXDisp_GetMinmaxParameteriv(__GLXclientState *cl, GLbyte *pc)
|
int __glXDisp_GetMinmaxParameteriv(__GLXclientState *cl, GLbyte *pc)
|
||||||
{
|
{
|
||||||
xGLXSingleReq * const req = (xGLXSingleReq *) pc;
|
xGLXSingleReq * const req = (xGLXSingleReq *) pc;
|
||||||
|
@ -3389,6 +3679,35 @@ int __glXDisp_GetMinmaxParameteriv(__GLXclientState *cl, GLbyte *pc)
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int __glXDisp_GetMinmaxParameterivEXT(__GLXclientState *cl, GLbyte *pc)
|
||||||
|
{
|
||||||
|
xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc;
|
||||||
|
int error;
|
||||||
|
__GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error);
|
||||||
|
|
||||||
|
pc += __GLX_VENDPRIV_HDR_SIZE;
|
||||||
|
if ( cx != NULL ) {
|
||||||
|
const GLenum pname = *(GLenum *)(pc + 4);
|
||||||
|
|
||||||
|
const GLuint compsize = __glGetMinmaxParameteriv_size(pname);
|
||||||
|
GLint answerBuffer[200];
|
||||||
|
GLint * params = __glXGetAnswerBuffer(cl, compsize * 4, answerBuffer, sizeof(answerBuffer), 4);
|
||||||
|
|
||||||
|
if (params == NULL) return BadAlloc;
|
||||||
|
__glXClearErrorOccured();
|
||||||
|
|
||||||
|
CALL_GetMinmaxParameteriv( GET_DISPATCH(), (
|
||||||
|
*(GLenum *)(pc + 0),
|
||||||
|
pname,
|
||||||
|
params
|
||||||
|
) );
|
||||||
|
__glXSendReply(cl->client, params, compsize, 4, GL_FALSE, 0);
|
||||||
|
error = Success;
|
||||||
|
}
|
||||||
|
|
||||||
|
return error;
|
||||||
|
}
|
||||||
|
|
||||||
void __glXDisp_Histogram(GLbyte * pc)
|
void __glXDisp_Histogram(GLbyte * pc)
|
||||||
{
|
{
|
||||||
CALL_Histogram( GET_DISPATCH(), (
|
CALL_Histogram( GET_DISPATCH(), (
|
||||||
|
@ -4414,131 +4733,6 @@ void __glXDisp_DrawBuffersARB(GLbyte * pc)
|
||||||
) );
|
) );
|
||||||
}
|
}
|
||||||
|
|
||||||
int __glXDisp_GetColorTableParameterfvSGI(__GLXclientState *cl, GLbyte *pc)
|
|
||||||
{
|
|
||||||
xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc;
|
|
||||||
int error;
|
|
||||||
__GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error);
|
|
||||||
|
|
||||||
pc += __GLX_VENDPRIV_HDR_SIZE;
|
|
||||||
if ( cx != NULL ) {
|
|
||||||
const GLenum pname = *(GLenum *)(pc + 4);
|
|
||||||
|
|
||||||
const GLuint compsize = __glGetColorTableParameterfvSGI_size(pname);
|
|
||||||
GLfloat answerBuffer[200];
|
|
||||||
GLfloat * params = __glXGetAnswerBuffer(cl, compsize * 4, answerBuffer, sizeof(answerBuffer), 4);
|
|
||||||
|
|
||||||
if (params == NULL) return BadAlloc;
|
|
||||||
__glXClearErrorOccured();
|
|
||||||
|
|
||||||
CALL_GetColorTableParameterfvSGI( GET_DISPATCH(), (
|
|
||||||
*(GLenum *)(pc + 0),
|
|
||||||
pname,
|
|
||||||
params
|
|
||||||
) );
|
|
||||||
__glXSendReply(cl->client, params, compsize, 4, GL_FALSE, 0);
|
|
||||||
error = Success;
|
|
||||||
}
|
|
||||||
|
|
||||||
return error;
|
|
||||||
}
|
|
||||||
|
|
||||||
int __glXDisp_GetColorTableParameterivSGI(__GLXclientState *cl, GLbyte *pc)
|
|
||||||
{
|
|
||||||
xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc;
|
|
||||||
int error;
|
|
||||||
__GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error);
|
|
||||||
|
|
||||||
pc += __GLX_VENDPRIV_HDR_SIZE;
|
|
||||||
if ( cx != NULL ) {
|
|
||||||
const GLenum pname = *(GLenum *)(pc + 4);
|
|
||||||
|
|
||||||
const GLuint compsize = __glGetColorTableParameterivSGI_size(pname);
|
|
||||||
GLint answerBuffer[200];
|
|
||||||
GLint * params = __glXGetAnswerBuffer(cl, compsize * 4, answerBuffer, sizeof(answerBuffer), 4);
|
|
||||||
|
|
||||||
if (params == NULL) return BadAlloc;
|
|
||||||
__glXClearErrorOccured();
|
|
||||||
|
|
||||||
CALL_GetColorTableParameterivSGI( GET_DISPATCH(), (
|
|
||||||
*(GLenum *)(pc + 0),
|
|
||||||
pname,
|
|
||||||
params
|
|
||||||
) );
|
|
||||||
__glXSendReply(cl->client, params, compsize, 4, GL_FALSE, 0);
|
|
||||||
error = Success;
|
|
||||||
}
|
|
||||||
|
|
||||||
return error;
|
|
||||||
}
|
|
||||||
|
|
||||||
int __glXDisp_AreTexturesResidentEXT(__GLXclientState *cl, GLbyte *pc)
|
|
||||||
{
|
|
||||||
xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc;
|
|
||||||
int error;
|
|
||||||
__GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error);
|
|
||||||
|
|
||||||
pc += __GLX_VENDPRIV_HDR_SIZE;
|
|
||||||
if ( cx != NULL ) {
|
|
||||||
const GLsizei n = *(GLsizei *)(pc + 0);
|
|
||||||
|
|
||||||
GLboolean retval;
|
|
||||||
GLboolean answerBuffer[200];
|
|
||||||
GLboolean * residences = __glXGetAnswerBuffer(cl, n, answerBuffer, sizeof(answerBuffer), 1);
|
|
||||||
retval = CALL_AreTexturesResidentEXT( GET_DISPATCH(), (
|
|
||||||
n,
|
|
||||||
(const GLuint *)(pc + 4),
|
|
||||||
residences
|
|
||||||
) );
|
|
||||||
__glXSendReply(cl->client, residences, n, 1, GL_TRUE, retval);
|
|
||||||
error = Success;
|
|
||||||
}
|
|
||||||
|
|
||||||
return error;
|
|
||||||
}
|
|
||||||
|
|
||||||
int __glXDisp_GenTexturesEXT(__GLXclientState *cl, GLbyte *pc)
|
|
||||||
{
|
|
||||||
xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc;
|
|
||||||
int error;
|
|
||||||
__GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error);
|
|
||||||
|
|
||||||
pc += __GLX_VENDPRIV_HDR_SIZE;
|
|
||||||
if ( cx != NULL ) {
|
|
||||||
const GLsizei n = *(GLsizei *)(pc + 0);
|
|
||||||
|
|
||||||
GLuint answerBuffer[200];
|
|
||||||
GLuint * textures = __glXGetAnswerBuffer(cl, n * 4, answerBuffer, sizeof(answerBuffer), 4);
|
|
||||||
CALL_GenTexturesEXT( GET_DISPATCH(), (
|
|
||||||
n,
|
|
||||||
textures
|
|
||||||
) );
|
|
||||||
__glXSendReply(cl->client, textures, n, 4, GL_TRUE, 0);
|
|
||||||
error = Success;
|
|
||||||
}
|
|
||||||
|
|
||||||
return error;
|
|
||||||
}
|
|
||||||
|
|
||||||
int __glXDisp_IsTextureEXT(__GLXclientState *cl, GLbyte *pc)
|
|
||||||
{
|
|
||||||
xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc;
|
|
||||||
int error;
|
|
||||||
__GLXcontext * const cx = __glXForceCurrent(cl, req->contextTag, &error);
|
|
||||||
|
|
||||||
pc += __GLX_VENDPRIV_HDR_SIZE;
|
|
||||||
if ( cx != NULL ) {
|
|
||||||
GLboolean retval;
|
|
||||||
retval = CALL_IsTextureEXT( GET_DISPATCH(), (
|
|
||||||
*(GLuint *)(pc + 0)
|
|
||||||
) );
|
|
||||||
__glXSendReply(cl->client, dummy_answer, 0, 0, GL_FALSE, retval);
|
|
||||||
error = Success;
|
|
||||||
}
|
|
||||||
|
|
||||||
return error;
|
|
||||||
}
|
|
||||||
|
|
||||||
void __glXDisp_SampleMaskSGIS(GLbyte * pc)
|
void __glXDisp_SampleMaskSGIS(GLbyte * pc)
|
||||||
{
|
{
|
||||||
CALL_SampleMaskSGIS( GET_DISPATCH(), (
|
CALL_SampleMaskSGIS( GET_DISPATCH(), (
|
||||||
|
|
|
@ -61,8 +61,6 @@ extern HIDDEN void __glXDisp_ActiveTextureARB(GLbyte * pc);
|
||||||
extern HIDDEN void __glXDispSwap_ActiveTextureARB(GLbyte * pc);
|
extern HIDDEN void __glXDispSwap_ActiveTextureARB(GLbyte * pc);
|
||||||
extern HIDDEN void __glXDisp_VertexAttrib4ubvNV(GLbyte * pc);
|
extern HIDDEN void __glXDisp_VertexAttrib4ubvNV(GLbyte * pc);
|
||||||
extern HIDDEN void __glXDispSwap_VertexAttrib4ubvNV(GLbyte * pc);
|
extern HIDDEN void __glXDispSwap_VertexAttrib4ubvNV(GLbyte * pc);
|
||||||
extern HIDDEN int __glXDisp_GetColorTableParameterfvSGI(struct __GLXclientStateRec *, GLbyte *);
|
|
||||||
extern HIDDEN int __glXDispSwap_GetColorTableParameterfvSGI(struct __GLXclientStateRec *, GLbyte *);
|
|
||||||
extern HIDDEN int __glXDisp_GetProgramNamedParameterdvNV(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDisp_GetProgramNamedParameterdvNV(struct __GLXclientStateRec *, GLbyte *);
|
||||||
extern HIDDEN int __glXDispSwap_GetProgramNamedParameterdvNV(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDispSwap_GetProgramNamedParameterdvNV(struct __GLXclientStateRec *, GLbyte *);
|
||||||
extern HIDDEN void __glXDisp_Histogram(GLbyte * pc);
|
extern HIDDEN void __glXDisp_Histogram(GLbyte * pc);
|
||||||
|
@ -163,6 +161,8 @@ extern HIDDEN void __glXDisp_Color3sv(GLbyte * pc);
|
||||||
extern HIDDEN void __glXDispSwap_Color3sv(GLbyte * pc);
|
extern HIDDEN void __glXDispSwap_Color3sv(GLbyte * pc);
|
||||||
extern HIDDEN int __glXDisp_GetConvolutionParameteriv(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDisp_GetConvolutionParameteriv(struct __GLXclientStateRec *, GLbyte *);
|
||||||
extern HIDDEN int __glXDispSwap_GetConvolutionParameteriv(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDispSwap_GetConvolutionParameteriv(struct __GLXclientStateRec *, GLbyte *);
|
||||||
|
extern HIDDEN int __glXDisp_GetConvolutionParameterivEXT(struct __GLXclientStateRec *, GLbyte *);
|
||||||
|
extern HIDDEN int __glXDispSwap_GetConvolutionParameterivEXT(struct __GLXclientStateRec *, GLbyte *);
|
||||||
extern HIDDEN void __glXDisp_Vertex2dv(GLbyte * pc);
|
extern HIDDEN void __glXDisp_Vertex2dv(GLbyte * pc);
|
||||||
extern HIDDEN void __glXDispSwap_Vertex2dv(GLbyte * pc);
|
extern HIDDEN void __glXDispSwap_Vertex2dv(GLbyte * pc);
|
||||||
extern HIDDEN int __glXDisp_GetVisualConfigs(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDisp_GetVisualConfigs(struct __GLXclientStateRec *, GLbyte *);
|
||||||
|
@ -251,6 +251,8 @@ extern HIDDEN void __glXDisp_Color3usv(GLbyte * pc);
|
||||||
extern HIDDEN void __glXDispSwap_Color3usv(GLbyte * pc);
|
extern HIDDEN void __glXDispSwap_Color3usv(GLbyte * pc);
|
||||||
extern HIDDEN int __glXDisp_AreTexturesResident(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDisp_AreTexturesResident(struct __GLXclientStateRec *, GLbyte *);
|
||||||
extern HIDDEN int __glXDispSwap_AreTexturesResident(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDispSwap_AreTexturesResident(struct __GLXclientStateRec *, GLbyte *);
|
||||||
|
extern HIDDEN int __glXDisp_AreTexturesResidentEXT(struct __GLXclientStateRec *, GLbyte *);
|
||||||
|
extern HIDDEN int __glXDispSwap_AreTexturesResidentEXT(struct __GLXclientStateRec *, GLbyte *);
|
||||||
extern HIDDEN int __glXDisp_IsRenderbufferEXT(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDisp_IsRenderbufferEXT(struct __GLXclientStateRec *, GLbyte *);
|
||||||
extern HIDDEN int __glXDispSwap_IsRenderbufferEXT(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDispSwap_IsRenderbufferEXT(struct __GLXclientStateRec *, GLbyte *);
|
||||||
extern HIDDEN void __glXDisp_PointParameterfvEXT(GLbyte * pc);
|
extern HIDDEN void __glXDisp_PointParameterfvEXT(GLbyte * pc);
|
||||||
|
@ -319,6 +321,8 @@ extern HIDDEN int __glXDisp_CreateNewContext(struct __GLXclientStateRec *, GLbyt
|
||||||
extern HIDDEN int __glXDispSwap_CreateNewContext(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDispSwap_CreateNewContext(struct __GLXclientStateRec *, GLbyte *);
|
||||||
extern HIDDEN int __glXDisp_GetMinmax(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDisp_GetMinmax(struct __GLXclientStateRec *, GLbyte *);
|
||||||
extern HIDDEN int __glXDispSwap_GetMinmax(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDispSwap_GetMinmax(struct __GLXclientStateRec *, GLbyte *);
|
||||||
|
extern HIDDEN int __glXDisp_GetMinmaxEXT(struct __GLXclientStateRec *, GLbyte *);
|
||||||
|
extern HIDDEN int __glXDispSwap_GetMinmaxEXT(struct __GLXclientStateRec *, GLbyte *);
|
||||||
extern HIDDEN int __glXDisp_GetVertexAttribdvNV(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDisp_GetVertexAttribdvNV(struct __GLXclientStateRec *, GLbyte *);
|
||||||
extern HIDDEN int __glXDispSwap_GetVertexAttribdvNV(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDispSwap_GetVertexAttribdvNV(struct __GLXclientStateRec *, GLbyte *);
|
||||||
extern HIDDEN void __glXDisp_Normal3fv(GLbyte * pc);
|
extern HIDDEN void __glXDisp_Normal3fv(GLbyte * pc);
|
||||||
|
@ -409,6 +413,8 @@ extern HIDDEN void __glXDisp_VertexAttrib1dvNV(GLbyte * pc);
|
||||||
extern HIDDEN void __glXDispSwap_VertexAttrib1dvNV(GLbyte * pc);
|
extern HIDDEN void __glXDispSwap_VertexAttrib1dvNV(GLbyte * pc);
|
||||||
extern HIDDEN int __glXDisp_GenTextures(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDisp_GenTextures(struct __GLXclientStateRec *, GLbyte *);
|
||||||
extern HIDDEN int __glXDispSwap_GenTextures(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDispSwap_GenTextures(struct __GLXclientStateRec *, GLbyte *);
|
||||||
|
extern HIDDEN int __glXDisp_GenTexturesEXT(struct __GLXclientStateRec *, GLbyte *);
|
||||||
|
extern HIDDEN int __glXDispSwap_GenTexturesEXT(struct __GLXclientStateRec *, GLbyte *);
|
||||||
extern HIDDEN void __glXDisp_FramebufferTexture1DEXT(GLbyte * pc);
|
extern HIDDEN void __glXDisp_FramebufferTexture1DEXT(GLbyte * pc);
|
||||||
extern HIDDEN void __glXDispSwap_FramebufferTexture1DEXT(GLbyte * pc);
|
extern HIDDEN void __glXDispSwap_FramebufferTexture1DEXT(GLbyte * pc);
|
||||||
extern HIDDEN int __glXDisp_GetDrawableAttributes(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDisp_GetDrawableAttributes(struct __GLXclientStateRec *, GLbyte *);
|
||||||
|
@ -469,6 +475,8 @@ extern HIDDEN void __glXDisp_CopyTexSubImage3D(GLbyte * pc);
|
||||||
extern HIDDEN void __glXDispSwap_CopyTexSubImage3D(GLbyte * pc);
|
extern HIDDEN void __glXDispSwap_CopyTexSubImage3D(GLbyte * pc);
|
||||||
extern HIDDEN int __glXDisp_GetColorTable(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDisp_GetColorTable(struct __GLXclientStateRec *, GLbyte *);
|
||||||
extern HIDDEN int __glXDispSwap_GetColorTable(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDispSwap_GetColorTable(struct __GLXclientStateRec *, GLbyte *);
|
||||||
|
extern HIDDEN int __glXDisp_GetColorTableSGI(struct __GLXclientStateRec *, GLbyte *);
|
||||||
|
extern HIDDEN int __glXDispSwap_GetColorTableSGI(struct __GLXclientStateRec *, GLbyte *);
|
||||||
extern HIDDEN void __glXDisp_Indexiv(GLbyte * pc);
|
extern HIDDEN void __glXDisp_Indexiv(GLbyte * pc);
|
||||||
extern HIDDEN void __glXDispSwap_Indexiv(GLbyte * pc);
|
extern HIDDEN void __glXDispSwap_Indexiv(GLbyte * pc);
|
||||||
extern HIDDEN int __glXDisp_CreateContext(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDisp_CreateContext(struct __GLXclientStateRec *, GLbyte *);
|
||||||
|
@ -477,6 +485,8 @@ extern HIDDEN void __glXDisp_CopyColorTable(GLbyte * pc);
|
||||||
extern HIDDEN void __glXDispSwap_CopyColorTable(GLbyte * pc);
|
extern HIDDEN void __glXDispSwap_CopyColorTable(GLbyte * pc);
|
||||||
extern HIDDEN int __glXDisp_GetHistogramParameterfv(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDisp_GetHistogramParameterfv(struct __GLXclientStateRec *, GLbyte *);
|
||||||
extern HIDDEN int __glXDispSwap_GetHistogramParameterfv(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDispSwap_GetHistogramParameterfv(struct __GLXclientStateRec *, GLbyte *);
|
||||||
|
extern HIDDEN int __glXDisp_GetHistogramParameterfvEXT(struct __GLXclientStateRec *, GLbyte *);
|
||||||
|
extern HIDDEN int __glXDispSwap_GetHistogramParameterfvEXT(struct __GLXclientStateRec *, GLbyte *);
|
||||||
extern HIDDEN void __glXDisp_Frustum(GLbyte * pc);
|
extern HIDDEN void __glXDisp_Frustum(GLbyte * pc);
|
||||||
extern HIDDEN void __glXDispSwap_Frustum(GLbyte * pc);
|
extern HIDDEN void __glXDispSwap_Frustum(GLbyte * pc);
|
||||||
extern HIDDEN int __glXDisp_GetString(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDisp_GetString(struct __GLXclientStateRec *, GLbyte *);
|
||||||
|
@ -493,6 +503,8 @@ extern HIDDEN void __glXDisp_VertexAttrib1dvARB(GLbyte * pc);
|
||||||
extern HIDDEN void __glXDispSwap_VertexAttrib1dvARB(GLbyte * pc);
|
extern HIDDEN void __glXDispSwap_VertexAttrib1dvARB(GLbyte * pc);
|
||||||
extern HIDDEN int __glXDisp_DeleteTextures(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDisp_DeleteTextures(struct __GLXclientStateRec *, GLbyte *);
|
||||||
extern HIDDEN int __glXDispSwap_DeleteTextures(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDispSwap_DeleteTextures(struct __GLXclientStateRec *, GLbyte *);
|
||||||
|
extern HIDDEN int __glXDisp_DeleteTexturesEXT(struct __GLXclientStateRec *, GLbyte *);
|
||||||
|
extern HIDDEN int __glXDispSwap_DeleteTexturesEXT(struct __GLXclientStateRec *, GLbyte *);
|
||||||
extern HIDDEN int __glXDisp_GetTexLevelParameteriv(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDisp_GetTexLevelParameteriv(struct __GLXclientStateRec *, GLbyte *);
|
||||||
extern HIDDEN int __glXDispSwap_GetTexLevelParameteriv(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDispSwap_GetTexLevelParameteriv(struct __GLXclientStateRec *, GLbyte *);
|
||||||
extern HIDDEN void __glXDisp_ClearAccum(GLbyte * pc);
|
extern HIDDEN void __glXDisp_ClearAccum(GLbyte * pc);
|
||||||
|
@ -587,6 +599,8 @@ extern HIDDEN void __glXDisp_Color3dv(GLbyte * pc);
|
||||||
extern HIDDEN void __glXDispSwap_Color3dv(GLbyte * pc);
|
extern HIDDEN void __glXDispSwap_Color3dv(GLbyte * pc);
|
||||||
extern HIDDEN int __glXDisp_IsTexture(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDisp_IsTexture(struct __GLXclientStateRec *, GLbyte *);
|
||||||
extern HIDDEN int __glXDispSwap_IsTexture(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDispSwap_IsTexture(struct __GLXclientStateRec *, GLbyte *);
|
||||||
|
extern HIDDEN int __glXDisp_IsTextureEXT(struct __GLXclientStateRec *, GLbyte *);
|
||||||
|
extern HIDDEN int __glXDispSwap_IsTextureEXT(struct __GLXclientStateRec *, GLbyte *);
|
||||||
extern HIDDEN int __glXDisp_DeleteQueriesARB(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDisp_DeleteQueriesARB(struct __GLXclientStateRec *, GLbyte *);
|
||||||
extern HIDDEN int __glXDispSwap_DeleteQueriesARB(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDispSwap_DeleteQueriesARB(struct __GLXclientStateRec *, GLbyte *);
|
||||||
extern HIDDEN int __glXDisp_GetMapdv(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDisp_GetMapdv(struct __GLXclientStateRec *, GLbyte *);
|
||||||
|
@ -617,6 +631,8 @@ extern HIDDEN int __glXDisp_GetVertexAttribdvARB(struct __GLXclientStateRec *, G
|
||||||
extern HIDDEN int __glXDispSwap_GetVertexAttribdvARB(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDispSwap_GetVertexAttribdvARB(struct __GLXclientStateRec *, GLbyte *);
|
||||||
extern HIDDEN int __glXDisp_GetSeparableFilter(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDisp_GetSeparableFilter(struct __GLXclientStateRec *, GLbyte *);
|
||||||
extern HIDDEN int __glXDispSwap_GetSeparableFilter(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDispSwap_GetSeparableFilter(struct __GLXclientStateRec *, GLbyte *);
|
||||||
|
extern HIDDEN int __glXDisp_GetSeparableFilterEXT(struct __GLXclientStateRec *, GLbyte *);
|
||||||
|
extern HIDDEN int __glXDispSwap_GetSeparableFilterEXT(struct __GLXclientStateRec *, GLbyte *);
|
||||||
extern HIDDEN void __glXDisp_RequestResidentProgramsNV(GLbyte * pc);
|
extern HIDDEN void __glXDisp_RequestResidentProgramsNV(GLbyte * pc);
|
||||||
extern HIDDEN void __glXDispSwap_RequestResidentProgramsNV(GLbyte * pc);
|
extern HIDDEN void __glXDispSwap_RequestResidentProgramsNV(GLbyte * pc);
|
||||||
extern HIDDEN int __glXDisp_FeedbackBuffer(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDisp_FeedbackBuffer(struct __GLXclientStateRec *, GLbyte *);
|
||||||
|
@ -635,8 +651,6 @@ extern HIDDEN void __glXDisp_PolygonOffset(GLbyte * pc);
|
||||||
extern HIDDEN void __glXDispSwap_PolygonOffset(GLbyte * pc);
|
extern HIDDEN void __glXDispSwap_PolygonOffset(GLbyte * pc);
|
||||||
extern HIDDEN void __glXDisp_ExecuteProgramNV(GLbyte * pc);
|
extern HIDDEN void __glXDisp_ExecuteProgramNV(GLbyte * pc);
|
||||||
extern HIDDEN void __glXDispSwap_ExecuteProgramNV(GLbyte * pc);
|
extern HIDDEN void __glXDispSwap_ExecuteProgramNV(GLbyte * pc);
|
||||||
extern HIDDEN int __glXDisp_GetColorTableParameterivSGI(struct __GLXclientStateRec *, GLbyte *);
|
|
||||||
extern HIDDEN int __glXDispSwap_GetColorTableParameterivSGI(struct __GLXclientStateRec *, GLbyte *);
|
|
||||||
extern HIDDEN void __glXDisp_Normal3dv(GLbyte * pc);
|
extern HIDDEN void __glXDisp_Normal3dv(GLbyte * pc);
|
||||||
extern HIDDEN void __glXDispSwap_Normal3dv(GLbyte * pc);
|
extern HIDDEN void __glXDispSwap_Normal3dv(GLbyte * pc);
|
||||||
extern HIDDEN void __glXDisp_Lightf(GLbyte * pc);
|
extern HIDDEN void __glXDisp_Lightf(GLbyte * pc);
|
||||||
|
@ -685,6 +699,8 @@ extern HIDDEN int __glXDisp_SwapIntervalSGI(struct __GLXclientStateRec *, GLbyte
|
||||||
extern HIDDEN int __glXDispSwap_SwapIntervalSGI(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDispSwap_SwapIntervalSGI(struct __GLXclientStateRec *, GLbyte *);
|
||||||
extern HIDDEN int __glXDisp_GetColorTableParameterfv(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDisp_GetColorTableParameterfv(struct __GLXclientStateRec *, GLbyte *);
|
||||||
extern HIDDEN int __glXDispSwap_GetColorTableParameterfv(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDispSwap_GetColorTableParameterfv(struct __GLXclientStateRec *, GLbyte *);
|
||||||
|
extern HIDDEN int __glXDisp_GetColorTableParameterfvSGI(struct __GLXclientStateRec *, GLbyte *);
|
||||||
|
extern HIDDEN int __glXDispSwap_GetColorTableParameterfvSGI(struct __GLXclientStateRec *, GLbyte *);
|
||||||
extern HIDDEN void __glXDisp_Bitmap(GLbyte * pc);
|
extern HIDDEN void __glXDisp_Bitmap(GLbyte * pc);
|
||||||
extern HIDDEN void __glXDispSwap_Bitmap(GLbyte * pc);
|
extern HIDDEN void __glXDispSwap_Bitmap(GLbyte * pc);
|
||||||
extern HIDDEN int __glXDisp_GetTexLevelParameterfv(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDisp_GetTexLevelParameterfv(struct __GLXclientStateRec *, GLbyte *);
|
||||||
|
@ -725,6 +741,8 @@ extern HIDDEN int __glXDisp_ChangeDrawableAttributes(struct __GLXclientStateRec
|
||||||
extern HIDDEN int __glXDispSwap_ChangeDrawableAttributes(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDispSwap_ChangeDrawableAttributes(struct __GLXclientStateRec *, GLbyte *);
|
||||||
extern HIDDEN int __glXDisp_GetMinmaxParameteriv(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDisp_GetMinmaxParameteriv(struct __GLXclientStateRec *, GLbyte *);
|
||||||
extern HIDDEN int __glXDispSwap_GetMinmaxParameteriv(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDispSwap_GetMinmaxParameteriv(struct __GLXclientStateRec *, GLbyte *);
|
||||||
|
extern HIDDEN int __glXDisp_GetMinmaxParameterivEXT(struct __GLXclientStateRec *, GLbyte *);
|
||||||
|
extern HIDDEN int __glXDispSwap_GetMinmaxParameterivEXT(struct __GLXclientStateRec *, GLbyte *);
|
||||||
extern HIDDEN void __glXDisp_PixelTransferf(GLbyte * pc);
|
extern HIDDEN void __glXDisp_PixelTransferf(GLbyte * pc);
|
||||||
extern HIDDEN void __glXDispSwap_PixelTransferf(GLbyte * pc);
|
extern HIDDEN void __glXDispSwap_PixelTransferf(GLbyte * pc);
|
||||||
extern HIDDEN void __glXDisp_CopyTexImage1D(GLbyte * pc);
|
extern HIDDEN void __glXDisp_CopyTexImage1D(GLbyte * pc);
|
||||||
|
@ -755,6 +773,8 @@ extern HIDDEN void __glXDisp_ConvolutionParameterf(GLbyte * pc);
|
||||||
extern HIDDEN void __glXDispSwap_ConvolutionParameterf(GLbyte * pc);
|
extern HIDDEN void __glXDispSwap_ConvolutionParameterf(GLbyte * pc);
|
||||||
extern HIDDEN int __glXDisp_GetColorTableParameteriv(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDisp_GetColorTableParameteriv(struct __GLXclientStateRec *, GLbyte *);
|
||||||
extern HIDDEN int __glXDispSwap_GetColorTableParameteriv(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDispSwap_GetColorTableParameteriv(struct __GLXclientStateRec *, GLbyte *);
|
||||||
|
extern HIDDEN int __glXDisp_GetColorTableParameterivSGI(struct __GLXclientStateRec *, GLbyte *);
|
||||||
|
extern HIDDEN int __glXDispSwap_GetColorTableParameterivSGI(struct __GLXclientStateRec *, GLbyte *);
|
||||||
extern HIDDEN int __glXDisp_ReleaseTexImageEXT(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDisp_ReleaseTexImageEXT(struct __GLXclientStateRec *, GLbyte *);
|
||||||
extern HIDDEN int __glXDispSwap_ReleaseTexImageEXT(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDispSwap_ReleaseTexImageEXT(struct __GLXclientStateRec *, GLbyte *);
|
||||||
extern HIDDEN void __glXDisp_CallList(GLbyte * pc);
|
extern HIDDEN void __glXDisp_CallList(GLbyte * pc);
|
||||||
|
@ -773,8 +793,6 @@ extern HIDDEN void __glXDisp_BindRenderbufferEXT(GLbyte * pc);
|
||||||
extern HIDDEN void __glXDispSwap_BindRenderbufferEXT(GLbyte * pc);
|
extern HIDDEN void __glXDispSwap_BindRenderbufferEXT(GLbyte * pc);
|
||||||
extern HIDDEN void __glXDisp_Vertex3sv(GLbyte * pc);
|
extern HIDDEN void __glXDisp_Vertex3sv(GLbyte * pc);
|
||||||
extern HIDDEN void __glXDispSwap_Vertex3sv(GLbyte * pc);
|
extern HIDDEN void __glXDispSwap_Vertex3sv(GLbyte * pc);
|
||||||
extern HIDDEN int __glXDisp_GetColorTableSGI(struct __GLXclientStateRec *, GLbyte *);
|
|
||||||
extern HIDDEN int __glXDispSwap_GetColorTableSGI(struct __GLXclientStateRec *, GLbyte *);
|
|
||||||
extern HIDDEN int __glXDisp_BindTexImageEXT(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDisp_BindTexImageEXT(struct __GLXclientStateRec *, GLbyte *);
|
||||||
extern HIDDEN int __glXDispSwap_BindTexImageEXT(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDispSwap_BindTexImageEXT(struct __GLXclientStateRec *, GLbyte *);
|
||||||
extern HIDDEN void __glXDisp_ProgramLocalParameter4fvARB(GLbyte * pc);
|
extern HIDDEN void __glXDisp_ProgramLocalParameter4fvARB(GLbyte * pc);
|
||||||
|
@ -797,10 +815,10 @@ extern HIDDEN void __glXDisp_TexGendv(GLbyte * pc);
|
||||||
extern HIDDEN void __glXDispSwap_TexGendv(GLbyte * pc);
|
extern HIDDEN void __glXDispSwap_TexGendv(GLbyte * pc);
|
||||||
extern HIDDEN void __glXDisp_ResetMinmax(GLbyte * pc);
|
extern HIDDEN void __glXDisp_ResetMinmax(GLbyte * pc);
|
||||||
extern HIDDEN void __glXDispSwap_ResetMinmax(GLbyte * pc);
|
extern HIDDEN void __glXDispSwap_ResetMinmax(GLbyte * pc);
|
||||||
extern HIDDEN int __glXDisp_GenTexturesEXT(struct __GLXclientStateRec *, GLbyte *);
|
|
||||||
extern HIDDEN int __glXDispSwap_GenTexturesEXT(struct __GLXclientStateRec *, GLbyte *);
|
|
||||||
extern HIDDEN int __glXDisp_GetConvolutionParameterfv(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDisp_GetConvolutionParameterfv(struct __GLXclientStateRec *, GLbyte *);
|
||||||
extern HIDDEN int __glXDispSwap_GetConvolutionParameterfv(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDispSwap_GetConvolutionParameterfv(struct __GLXclientStateRec *, GLbyte *);
|
||||||
|
extern HIDDEN int __glXDisp_GetConvolutionParameterfvEXT(struct __GLXclientStateRec *, GLbyte *);
|
||||||
|
extern HIDDEN int __glXDispSwap_GetConvolutionParameterfvEXT(struct __GLXclientStateRec *, GLbyte *);
|
||||||
extern HIDDEN void __glXDisp_VertexAttribs4dvNV(GLbyte * pc);
|
extern HIDDEN void __glXDisp_VertexAttribs4dvNV(GLbyte * pc);
|
||||||
extern HIDDEN void __glXDispSwap_VertexAttribs4dvNV(GLbyte * pc);
|
extern HIDDEN void __glXDispSwap_VertexAttribs4dvNV(GLbyte * pc);
|
||||||
extern HIDDEN int __glXDisp_GetMaterialfv(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDisp_GetMaterialfv(struct __GLXclientStateRec *, GLbyte *);
|
||||||
|
@ -827,8 +845,12 @@ extern HIDDEN int __glXDisp_GetProgramLocalParameterdvARB(struct __GLXclientStat
|
||||||
extern HIDDEN int __glXDispSwap_GetProgramLocalParameterdvARB(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDispSwap_GetProgramLocalParameterdvARB(struct __GLXclientStateRec *, GLbyte *);
|
||||||
extern HIDDEN int __glXDisp_GetHistogramParameteriv(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDisp_GetHistogramParameteriv(struct __GLXclientStateRec *, GLbyte *);
|
||||||
extern HIDDEN int __glXDispSwap_GetHistogramParameteriv(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDispSwap_GetHistogramParameteriv(struct __GLXclientStateRec *, GLbyte *);
|
||||||
|
extern HIDDEN int __glXDisp_GetHistogramParameterivEXT(struct __GLXclientStateRec *, GLbyte *);
|
||||||
|
extern HIDDEN int __glXDispSwap_GetHistogramParameterivEXT(struct __GLXclientStateRec *, GLbyte *);
|
||||||
extern HIDDEN int __glXDisp_GetConvolutionFilter(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDisp_GetConvolutionFilter(struct __GLXclientStateRec *, GLbyte *);
|
||||||
extern HIDDEN int __glXDispSwap_GetConvolutionFilter(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDispSwap_GetConvolutionFilter(struct __GLXclientStateRec *, GLbyte *);
|
||||||
|
extern HIDDEN int __glXDisp_GetConvolutionFilterEXT(struct __GLXclientStateRec *, GLbyte *);
|
||||||
|
extern HIDDEN int __glXDispSwap_GetConvolutionFilterEXT(struct __GLXclientStateRec *, GLbyte *);
|
||||||
extern HIDDEN int __glXDisp_GetProgramivARB(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDisp_GetProgramivARB(struct __GLXclientStateRec *, GLbyte *);
|
||||||
extern HIDDEN int __glXDispSwap_GetProgramivARB(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDispSwap_GetProgramivARB(struct __GLXclientStateRec *, GLbyte *);
|
||||||
extern HIDDEN void __glXDisp_BlendFuncSeparateEXT(GLbyte * pc);
|
extern HIDDEN void __glXDisp_BlendFuncSeparateEXT(GLbyte * pc);
|
||||||
|
@ -841,8 +863,6 @@ extern HIDDEN void __glXDisp_EvalPoint1(GLbyte * pc);
|
||||||
extern HIDDEN void __glXDispSwap_EvalPoint1(GLbyte * pc);
|
extern HIDDEN void __glXDispSwap_EvalPoint1(GLbyte * pc);
|
||||||
extern HIDDEN void __glXDisp_PopMatrix(GLbyte * pc);
|
extern HIDDEN void __glXDisp_PopMatrix(GLbyte * pc);
|
||||||
extern HIDDEN void __glXDispSwap_PopMatrix(GLbyte * pc);
|
extern HIDDEN void __glXDispSwap_PopMatrix(GLbyte * pc);
|
||||||
extern HIDDEN int __glXDisp_AreTexturesResidentEXT(struct __GLXclientStateRec *, GLbyte *);
|
|
||||||
extern HIDDEN int __glXDispSwap_AreTexturesResidentEXT(struct __GLXclientStateRec *, GLbyte *);
|
|
||||||
extern HIDDEN int __glXDisp_MakeCurrentReadSGI(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDisp_MakeCurrentReadSGI(struct __GLXclientStateRec *, GLbyte *);
|
||||||
extern HIDDEN int __glXDispSwap_MakeCurrentReadSGI(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDispSwap_MakeCurrentReadSGI(struct __GLXclientStateRec *, GLbyte *);
|
||||||
extern HIDDEN int __glXDisp_GetTexGeniv(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDisp_GetTexGeniv(struct __GLXclientStateRec *, GLbyte *);
|
||||||
|
@ -861,6 +881,8 @@ extern HIDDEN int __glXDisp_GetTexGenfv(struct __GLXclientStateRec *, GLbyte *);
|
||||||
extern HIDDEN int __glXDispSwap_GetTexGenfv(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDispSwap_GetTexGenfv(struct __GLXclientStateRec *, GLbyte *);
|
||||||
extern HIDDEN int __glXDisp_GetHistogram(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDisp_GetHistogram(struct __GLXclientStateRec *, GLbyte *);
|
||||||
extern HIDDEN int __glXDispSwap_GetHistogram(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDispSwap_GetHistogram(struct __GLXclientStateRec *, GLbyte *);
|
||||||
|
extern HIDDEN int __glXDisp_GetHistogramEXT(struct __GLXclientStateRec *, GLbyte *);
|
||||||
|
extern HIDDEN int __glXDispSwap_GetHistogramEXT(struct __GLXclientStateRec *, GLbyte *);
|
||||||
extern HIDDEN void __glXDisp_ActiveStencilFaceEXT(GLbyte * pc);
|
extern HIDDEN void __glXDisp_ActiveStencilFaceEXT(GLbyte * pc);
|
||||||
extern HIDDEN void __glXDispSwap_ActiveStencilFaceEXT(GLbyte * pc);
|
extern HIDDEN void __glXDispSwap_ActiveStencilFaceEXT(GLbyte * pc);
|
||||||
extern HIDDEN void __glXDisp_Materialf(GLbyte * pc);
|
extern HIDDEN void __glXDisp_Materialf(GLbyte * pc);
|
||||||
|
@ -921,8 +943,6 @@ extern HIDDEN void __glXDisp_VertexAttrib4uivARB(GLbyte * pc);
|
||||||
extern HIDDEN void __glXDispSwap_VertexAttrib4uivARB(GLbyte * pc);
|
extern HIDDEN void __glXDispSwap_VertexAttrib4uivARB(GLbyte * pc);
|
||||||
extern HIDDEN void __glXDisp_ClipPlane(GLbyte * pc);
|
extern HIDDEN void __glXDisp_ClipPlane(GLbyte * pc);
|
||||||
extern HIDDEN void __glXDispSwap_ClipPlane(GLbyte * pc);
|
extern HIDDEN void __glXDispSwap_ClipPlane(GLbyte * pc);
|
||||||
extern HIDDEN int __glXDisp_IsTextureEXT(struct __GLXclientStateRec *, GLbyte *);
|
|
||||||
extern HIDDEN int __glXDispSwap_IsTextureEXT(struct __GLXclientStateRec *, GLbyte *);
|
|
||||||
extern HIDDEN int __glXDisp_GetPixelMapuiv(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDisp_GetPixelMapuiv(struct __GLXclientStateRec *, GLbyte *);
|
||||||
extern HIDDEN int __glXDispSwap_GetPixelMapuiv(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDispSwap_GetPixelMapuiv(struct __GLXclientStateRec *, GLbyte *);
|
||||||
extern HIDDEN void __glXDisp_Indexfv(GLbyte * pc);
|
extern HIDDEN void __glXDisp_Indexfv(GLbyte * pc);
|
||||||
|
@ -1005,6 +1025,8 @@ extern HIDDEN void __glXDisp_VertexAttribs4svNV(GLbyte * pc);
|
||||||
extern HIDDEN void __glXDispSwap_VertexAttribs4svNV(GLbyte * pc);
|
extern HIDDEN void __glXDispSwap_VertexAttribs4svNV(GLbyte * pc);
|
||||||
extern HIDDEN int __glXDisp_GetMinmaxParameterfv(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDisp_GetMinmaxParameterfv(struct __GLXclientStateRec *, GLbyte *);
|
||||||
extern HIDDEN int __glXDispSwap_GetMinmaxParameterfv(struct __GLXclientStateRec *, GLbyte *);
|
extern HIDDEN int __glXDispSwap_GetMinmaxParameterfv(struct __GLXclientStateRec *, GLbyte *);
|
||||||
|
extern HIDDEN int __glXDisp_GetMinmaxParameterfvEXT(struct __GLXclientStateRec *, GLbyte *);
|
||||||
|
extern HIDDEN int __glXDispSwap_GetMinmaxParameterfvEXT(struct __GLXclientStateRec *, GLbyte *);
|
||||||
extern HIDDEN void __glXDisp_VertexAttrib1fvARB(GLbyte * pc);
|
extern HIDDEN void __glXDisp_VertexAttrib1fvARB(GLbyte * pc);
|
||||||
extern HIDDEN void __glXDispSwap_VertexAttrib1fvARB(GLbyte * pc);
|
extern HIDDEN void __glXDispSwap_VertexAttrib1fvARB(GLbyte * pc);
|
||||||
extern HIDDEN void __glXDisp_VertexAttribs1svNV(GLbyte * pc);
|
extern HIDDEN void __glXDisp_VertexAttribs1svNV(GLbyte * pc);
|
||||||
|
|
|
@ -2887,6 +2887,31 @@ int __glXDispSwap_AreTexturesResident(__GLXclientState *cl, GLbyte *pc)
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int __glXDispSwap_AreTexturesResidentEXT(__GLXclientState *cl, GLbyte *pc)
|
||||||
|
{
|
||||||
|
xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc;
|
||||||
|
int error;
|
||||||
|
__GLXcontext * const cx = __glXForceCurrent(cl, bswap_CARD32( &req->contextTag ), &error);
|
||||||
|
|
||||||
|
pc += __GLX_VENDPRIV_HDR_SIZE;
|
||||||
|
if ( cx != NULL ) {
|
||||||
|
const GLsizei n = (GLsizei )bswap_CARD32 ( pc + 0 );
|
||||||
|
|
||||||
|
GLboolean retval;
|
||||||
|
GLboolean answerBuffer[200];
|
||||||
|
GLboolean * residences = __glXGetAnswerBuffer(cl, n, answerBuffer, sizeof(answerBuffer), 1);
|
||||||
|
retval = CALL_AreTexturesResident( GET_DISPATCH(), (
|
||||||
|
n,
|
||||||
|
(const GLuint *)bswap_32_array( (uint32_t *) (pc + 4), 0 ),
|
||||||
|
residences
|
||||||
|
) );
|
||||||
|
__glXSendReplySwap(cl->client, residences, n, 1, GL_TRUE, retval);
|
||||||
|
error = Success;
|
||||||
|
}
|
||||||
|
|
||||||
|
return error;
|
||||||
|
}
|
||||||
|
|
||||||
void __glXDispSwap_CopyTexImage1D(GLbyte * pc)
|
void __glXDispSwap_CopyTexImage1D(GLbyte * pc)
|
||||||
{
|
{
|
||||||
CALL_CopyTexImage1D( GET_DISPATCH(), (
|
CALL_CopyTexImage1D( GET_DISPATCH(), (
|
||||||
|
@ -2941,6 +2966,26 @@ void __glXDispSwap_CopyTexSubImage2D(GLbyte * pc)
|
||||||
}
|
}
|
||||||
|
|
||||||
int __glXDispSwap_DeleteTextures(__GLXclientState *cl, GLbyte *pc)
|
int __glXDispSwap_DeleteTextures(__GLXclientState *cl, GLbyte *pc)
|
||||||
|
{
|
||||||
|
xGLXSingleReq * const req = (xGLXSingleReq *) pc;
|
||||||
|
int error;
|
||||||
|
__GLXcontext * const cx = __glXForceCurrent(cl, bswap_CARD32( &req->contextTag ), &error);
|
||||||
|
|
||||||
|
pc += __GLX_SINGLE_HDR_SIZE;
|
||||||
|
if ( cx != NULL ) {
|
||||||
|
const GLsizei n = (GLsizei )bswap_CARD32 ( pc + 0 );
|
||||||
|
|
||||||
|
CALL_DeleteTextures( GET_DISPATCH(), (
|
||||||
|
n,
|
||||||
|
(const GLuint *)bswap_32_array( (uint32_t *) (pc + 4), 0 )
|
||||||
|
) );
|
||||||
|
error = Success;
|
||||||
|
}
|
||||||
|
|
||||||
|
return error;
|
||||||
|
}
|
||||||
|
|
||||||
|
int __glXDispSwap_DeleteTexturesEXT(__GLXclientState *cl, GLbyte *pc)
|
||||||
{
|
{
|
||||||
xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc;
|
xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc;
|
||||||
int error;
|
int error;
|
||||||
|
@ -2984,6 +3029,30 @@ int __glXDispSwap_GenTextures(__GLXclientState *cl, GLbyte *pc)
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int __glXDispSwap_GenTexturesEXT(__GLXclientState *cl, GLbyte *pc)
|
||||||
|
{
|
||||||
|
xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc;
|
||||||
|
int error;
|
||||||
|
__GLXcontext * const cx = __glXForceCurrent(cl, bswap_CARD32( &req->contextTag ), &error);
|
||||||
|
|
||||||
|
pc += __GLX_VENDPRIV_HDR_SIZE;
|
||||||
|
if ( cx != NULL ) {
|
||||||
|
const GLsizei n = (GLsizei )bswap_CARD32 ( pc + 0 );
|
||||||
|
|
||||||
|
GLuint answerBuffer[200];
|
||||||
|
GLuint * textures = __glXGetAnswerBuffer(cl, n * 4, answerBuffer, sizeof(answerBuffer), 4);
|
||||||
|
CALL_GenTextures( GET_DISPATCH(), (
|
||||||
|
n,
|
||||||
|
textures
|
||||||
|
) );
|
||||||
|
(void) bswap_32_array( (uint32_t *) textures, n );
|
||||||
|
__glXSendReplySwap(cl->client, textures, n, 4, GL_TRUE, 0);
|
||||||
|
error = Success;
|
||||||
|
}
|
||||||
|
|
||||||
|
return error;
|
||||||
|
}
|
||||||
|
|
||||||
int __glXDispSwap_IsTexture(__GLXclientState *cl, GLbyte *pc)
|
int __glXDispSwap_IsTexture(__GLXclientState *cl, GLbyte *pc)
|
||||||
{
|
{
|
||||||
xGLXSingleReq * const req = (xGLXSingleReq *) pc;
|
xGLXSingleReq * const req = (xGLXSingleReq *) pc;
|
||||||
|
@ -3003,6 +3072,25 @@ int __glXDispSwap_IsTexture(__GLXclientState *cl, GLbyte *pc)
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int __glXDispSwap_IsTextureEXT(__GLXclientState *cl, GLbyte *pc)
|
||||||
|
{
|
||||||
|
xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc;
|
||||||
|
int error;
|
||||||
|
__GLXcontext * const cx = __glXForceCurrent(cl, bswap_CARD32( &req->contextTag ), &error);
|
||||||
|
|
||||||
|
pc += __GLX_VENDPRIV_HDR_SIZE;
|
||||||
|
if ( cx != NULL ) {
|
||||||
|
GLboolean retval;
|
||||||
|
retval = CALL_IsTexture( GET_DISPATCH(), (
|
||||||
|
(GLuint )bswap_CARD32 ( pc + 0 )
|
||||||
|
) );
|
||||||
|
__glXSendReplySwap(cl->client, dummy_answer, 0, 0, GL_FALSE, retval);
|
||||||
|
error = Success;
|
||||||
|
}
|
||||||
|
|
||||||
|
return error;
|
||||||
|
}
|
||||||
|
|
||||||
void __glXDispSwap_PrioritizeTextures(GLbyte * pc)
|
void __glXDispSwap_PrioritizeTextures(GLbyte * pc)
|
||||||
{
|
{
|
||||||
const GLsizei n = (GLsizei )bswap_CARD32 ( pc + 0 );
|
const GLsizei n = (GLsizei )bswap_CARD32 ( pc + 0 );
|
||||||
|
@ -3172,6 +3260,36 @@ int __glXDispSwap_GetColorTableParameterfv(__GLXclientState *cl, GLbyte *pc)
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int __glXDispSwap_GetColorTableParameterfvSGI(__GLXclientState *cl, GLbyte *pc)
|
||||||
|
{
|
||||||
|
xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc;
|
||||||
|
int error;
|
||||||
|
__GLXcontext * const cx = __glXForceCurrent(cl, bswap_CARD32( &req->contextTag ), &error);
|
||||||
|
|
||||||
|
pc += __GLX_VENDPRIV_HDR_SIZE;
|
||||||
|
if ( cx != NULL ) {
|
||||||
|
const GLenum pname = (GLenum )bswap_ENUM ( pc + 4 );
|
||||||
|
|
||||||
|
const GLuint compsize = __glGetColorTableParameterfv_size(pname);
|
||||||
|
GLfloat answerBuffer[200];
|
||||||
|
GLfloat * params = __glXGetAnswerBuffer(cl, compsize * 4, answerBuffer, sizeof(answerBuffer), 4);
|
||||||
|
|
||||||
|
if (params == NULL) return BadAlloc;
|
||||||
|
__glXClearErrorOccured();
|
||||||
|
|
||||||
|
CALL_GetColorTableParameterfv( GET_DISPATCH(), (
|
||||||
|
(GLenum )bswap_ENUM ( pc + 0 ),
|
||||||
|
pname,
|
||||||
|
params
|
||||||
|
) );
|
||||||
|
(void) bswap_32_array( (uint32_t *) params, compsize );
|
||||||
|
__glXSendReplySwap(cl->client, params, compsize, 4, GL_FALSE, 0);
|
||||||
|
error = Success;
|
||||||
|
}
|
||||||
|
|
||||||
|
return error;
|
||||||
|
}
|
||||||
|
|
||||||
int __glXDispSwap_GetColorTableParameteriv(__GLXclientState *cl, GLbyte *pc)
|
int __glXDispSwap_GetColorTableParameteriv(__GLXclientState *cl, GLbyte *pc)
|
||||||
{
|
{
|
||||||
xGLXSingleReq * const req = (xGLXSingleReq *) pc;
|
xGLXSingleReq * const req = (xGLXSingleReq *) pc;
|
||||||
|
@ -3202,6 +3320,36 @@ int __glXDispSwap_GetColorTableParameteriv(__GLXclientState *cl, GLbyte *pc)
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int __glXDispSwap_GetColorTableParameterivSGI(__GLXclientState *cl, GLbyte *pc)
|
||||||
|
{
|
||||||
|
xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc;
|
||||||
|
int error;
|
||||||
|
__GLXcontext * const cx = __glXForceCurrent(cl, bswap_CARD32( &req->contextTag ), &error);
|
||||||
|
|
||||||
|
pc += __GLX_VENDPRIV_HDR_SIZE;
|
||||||
|
if ( cx != NULL ) {
|
||||||
|
const GLenum pname = (GLenum )bswap_ENUM ( pc + 4 );
|
||||||
|
|
||||||
|
const GLuint compsize = __glGetColorTableParameteriv_size(pname);
|
||||||
|
GLint answerBuffer[200];
|
||||||
|
GLint * params = __glXGetAnswerBuffer(cl, compsize * 4, answerBuffer, sizeof(answerBuffer), 4);
|
||||||
|
|
||||||
|
if (params == NULL) return BadAlloc;
|
||||||
|
__glXClearErrorOccured();
|
||||||
|
|
||||||
|
CALL_GetColorTableParameteriv( GET_DISPATCH(), (
|
||||||
|
(GLenum )bswap_ENUM ( pc + 0 ),
|
||||||
|
pname,
|
||||||
|
params
|
||||||
|
) );
|
||||||
|
(void) bswap_32_array( (uint32_t *) params, compsize );
|
||||||
|
__glXSendReplySwap(cl->client, params, compsize, 4, GL_FALSE, 0);
|
||||||
|
error = Success;
|
||||||
|
}
|
||||||
|
|
||||||
|
return error;
|
||||||
|
}
|
||||||
|
|
||||||
void __glXDispSwap_ColorSubTable(GLbyte * pc)
|
void __glXDispSwap_ColorSubTable(GLbyte * pc)
|
||||||
{
|
{
|
||||||
const GLvoid * const data = (const GLvoid *) (pc + 40);
|
const GLvoid * const data = (const GLvoid *) (pc + 40);
|
||||||
|
@ -3379,6 +3527,36 @@ int __glXDispSwap_GetConvolutionParameterfv(__GLXclientState *cl, GLbyte *pc)
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int __glXDispSwap_GetConvolutionParameterfvEXT(__GLXclientState *cl, GLbyte *pc)
|
||||||
|
{
|
||||||
|
xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc;
|
||||||
|
int error;
|
||||||
|
__GLXcontext * const cx = __glXForceCurrent(cl, bswap_CARD32( &req->contextTag ), &error);
|
||||||
|
|
||||||
|
pc += __GLX_VENDPRIV_HDR_SIZE;
|
||||||
|
if ( cx != NULL ) {
|
||||||
|
const GLenum pname = (GLenum )bswap_ENUM ( pc + 4 );
|
||||||
|
|
||||||
|
const GLuint compsize = __glGetConvolutionParameterfv_size(pname);
|
||||||
|
GLfloat answerBuffer[200];
|
||||||
|
GLfloat * params = __glXGetAnswerBuffer(cl, compsize * 4, answerBuffer, sizeof(answerBuffer), 4);
|
||||||
|
|
||||||
|
if (params == NULL) return BadAlloc;
|
||||||
|
__glXClearErrorOccured();
|
||||||
|
|
||||||
|
CALL_GetConvolutionParameterfv( GET_DISPATCH(), (
|
||||||
|
(GLenum )bswap_ENUM ( pc + 0 ),
|
||||||
|
pname,
|
||||||
|
params
|
||||||
|
) );
|
||||||
|
(void) bswap_32_array( (uint32_t *) params, compsize );
|
||||||
|
__glXSendReplySwap(cl->client, params, compsize, 4, GL_FALSE, 0);
|
||||||
|
error = Success;
|
||||||
|
}
|
||||||
|
|
||||||
|
return error;
|
||||||
|
}
|
||||||
|
|
||||||
int __glXDispSwap_GetConvolutionParameteriv(__GLXclientState *cl, GLbyte *pc)
|
int __glXDispSwap_GetConvolutionParameteriv(__GLXclientState *cl, GLbyte *pc)
|
||||||
{
|
{
|
||||||
xGLXSingleReq * const req = (xGLXSingleReq *) pc;
|
xGLXSingleReq * const req = (xGLXSingleReq *) pc;
|
||||||
|
@ -3409,6 +3587,36 @@ int __glXDispSwap_GetConvolutionParameteriv(__GLXclientState *cl, GLbyte *pc)
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int __glXDispSwap_GetConvolutionParameterivEXT(__GLXclientState *cl, GLbyte *pc)
|
||||||
|
{
|
||||||
|
xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc;
|
||||||
|
int error;
|
||||||
|
__GLXcontext * const cx = __glXForceCurrent(cl, bswap_CARD32( &req->contextTag ), &error);
|
||||||
|
|
||||||
|
pc += __GLX_VENDPRIV_HDR_SIZE;
|
||||||
|
if ( cx != NULL ) {
|
||||||
|
const GLenum pname = (GLenum )bswap_ENUM ( pc + 4 );
|
||||||
|
|
||||||
|
const GLuint compsize = __glGetConvolutionParameteriv_size(pname);
|
||||||
|
GLint answerBuffer[200];
|
||||||
|
GLint * params = __glXGetAnswerBuffer(cl, compsize * 4, answerBuffer, sizeof(answerBuffer), 4);
|
||||||
|
|
||||||
|
if (params == NULL) return BadAlloc;
|
||||||
|
__glXClearErrorOccured();
|
||||||
|
|
||||||
|
CALL_GetConvolutionParameteriv( GET_DISPATCH(), (
|
||||||
|
(GLenum )bswap_ENUM ( pc + 0 ),
|
||||||
|
pname,
|
||||||
|
params
|
||||||
|
) );
|
||||||
|
(void) bswap_32_array( (uint32_t *) params, compsize );
|
||||||
|
__glXSendReplySwap(cl->client, params, compsize, 4, GL_FALSE, 0);
|
||||||
|
error = Success;
|
||||||
|
}
|
||||||
|
|
||||||
|
return error;
|
||||||
|
}
|
||||||
|
|
||||||
int __glXDispSwap_GetHistogramParameterfv(__GLXclientState *cl, GLbyte *pc)
|
int __glXDispSwap_GetHistogramParameterfv(__GLXclientState *cl, GLbyte *pc)
|
||||||
{
|
{
|
||||||
xGLXSingleReq * const req = (xGLXSingleReq *) pc;
|
xGLXSingleReq * const req = (xGLXSingleReq *) pc;
|
||||||
|
@ -3439,6 +3647,36 @@ int __glXDispSwap_GetHistogramParameterfv(__GLXclientState *cl, GLbyte *pc)
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int __glXDispSwap_GetHistogramParameterfvEXT(__GLXclientState *cl, GLbyte *pc)
|
||||||
|
{
|
||||||
|
xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc;
|
||||||
|
int error;
|
||||||
|
__GLXcontext * const cx = __glXForceCurrent(cl, bswap_CARD32( &req->contextTag ), &error);
|
||||||
|
|
||||||
|
pc += __GLX_VENDPRIV_HDR_SIZE;
|
||||||
|
if ( cx != NULL ) {
|
||||||
|
const GLenum pname = (GLenum )bswap_ENUM ( pc + 4 );
|
||||||
|
|
||||||
|
const GLuint compsize = __glGetHistogramParameterfv_size(pname);
|
||||||
|
GLfloat answerBuffer[200];
|
||||||
|
GLfloat * params = __glXGetAnswerBuffer(cl, compsize * 4, answerBuffer, sizeof(answerBuffer), 4);
|
||||||
|
|
||||||
|
if (params == NULL) return BadAlloc;
|
||||||
|
__glXClearErrorOccured();
|
||||||
|
|
||||||
|
CALL_GetHistogramParameterfv( GET_DISPATCH(), (
|
||||||
|
(GLenum )bswap_ENUM ( pc + 0 ),
|
||||||
|
pname,
|
||||||
|
params
|
||||||
|
) );
|
||||||
|
(void) bswap_32_array( (uint32_t *) params, compsize );
|
||||||
|
__glXSendReplySwap(cl->client, params, compsize, 4, GL_FALSE, 0);
|
||||||
|
error = Success;
|
||||||
|
}
|
||||||
|
|
||||||
|
return error;
|
||||||
|
}
|
||||||
|
|
||||||
int __glXDispSwap_GetHistogramParameteriv(__GLXclientState *cl, GLbyte *pc)
|
int __glXDispSwap_GetHistogramParameteriv(__GLXclientState *cl, GLbyte *pc)
|
||||||
{
|
{
|
||||||
xGLXSingleReq * const req = (xGLXSingleReq *) pc;
|
xGLXSingleReq * const req = (xGLXSingleReq *) pc;
|
||||||
|
@ -3469,6 +3707,36 @@ int __glXDispSwap_GetHistogramParameteriv(__GLXclientState *cl, GLbyte *pc)
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int __glXDispSwap_GetHistogramParameterivEXT(__GLXclientState *cl, GLbyte *pc)
|
||||||
|
{
|
||||||
|
xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc;
|
||||||
|
int error;
|
||||||
|
__GLXcontext * const cx = __glXForceCurrent(cl, bswap_CARD32( &req->contextTag ), &error);
|
||||||
|
|
||||||
|
pc += __GLX_VENDPRIV_HDR_SIZE;
|
||||||
|
if ( cx != NULL ) {
|
||||||
|
const GLenum pname = (GLenum )bswap_ENUM ( pc + 4 );
|
||||||
|
|
||||||
|
const GLuint compsize = __glGetHistogramParameteriv_size(pname);
|
||||||
|
GLint answerBuffer[200];
|
||||||
|
GLint * params = __glXGetAnswerBuffer(cl, compsize * 4, answerBuffer, sizeof(answerBuffer), 4);
|
||||||
|
|
||||||
|
if (params == NULL) return BadAlloc;
|
||||||
|
__glXClearErrorOccured();
|
||||||
|
|
||||||
|
CALL_GetHistogramParameteriv( GET_DISPATCH(), (
|
||||||
|
(GLenum )bswap_ENUM ( pc + 0 ),
|
||||||
|
pname,
|
||||||
|
params
|
||||||
|
) );
|
||||||
|
(void) bswap_32_array( (uint32_t *) params, compsize );
|
||||||
|
__glXSendReplySwap(cl->client, params, compsize, 4, GL_FALSE, 0);
|
||||||
|
error = Success;
|
||||||
|
}
|
||||||
|
|
||||||
|
return error;
|
||||||
|
}
|
||||||
|
|
||||||
int __glXDispSwap_GetMinmaxParameterfv(__GLXclientState *cl, GLbyte *pc)
|
int __glXDispSwap_GetMinmaxParameterfv(__GLXclientState *cl, GLbyte *pc)
|
||||||
{
|
{
|
||||||
xGLXSingleReq * const req = (xGLXSingleReq *) pc;
|
xGLXSingleReq * const req = (xGLXSingleReq *) pc;
|
||||||
|
@ -3499,6 +3767,36 @@ int __glXDispSwap_GetMinmaxParameterfv(__GLXclientState *cl, GLbyte *pc)
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int __glXDispSwap_GetMinmaxParameterfvEXT(__GLXclientState *cl, GLbyte *pc)
|
||||||
|
{
|
||||||
|
xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc;
|
||||||
|
int error;
|
||||||
|
__GLXcontext * const cx = __glXForceCurrent(cl, bswap_CARD32( &req->contextTag ), &error);
|
||||||
|
|
||||||
|
pc += __GLX_VENDPRIV_HDR_SIZE;
|
||||||
|
if ( cx != NULL ) {
|
||||||
|
const GLenum pname = (GLenum )bswap_ENUM ( pc + 4 );
|
||||||
|
|
||||||
|
const GLuint compsize = __glGetMinmaxParameterfv_size(pname);
|
||||||
|
GLfloat answerBuffer[200];
|
||||||
|
GLfloat * params = __glXGetAnswerBuffer(cl, compsize * 4, answerBuffer, sizeof(answerBuffer), 4);
|
||||||
|
|
||||||
|
if (params == NULL) return BadAlloc;
|
||||||
|
__glXClearErrorOccured();
|
||||||
|
|
||||||
|
CALL_GetMinmaxParameterfv( GET_DISPATCH(), (
|
||||||
|
(GLenum )bswap_ENUM ( pc + 0 ),
|
||||||
|
pname,
|
||||||
|
params
|
||||||
|
) );
|
||||||
|
(void) bswap_32_array( (uint32_t *) params, compsize );
|
||||||
|
__glXSendReplySwap(cl->client, params, compsize, 4, GL_FALSE, 0);
|
||||||
|
error = Success;
|
||||||
|
}
|
||||||
|
|
||||||
|
return error;
|
||||||
|
}
|
||||||
|
|
||||||
int __glXDispSwap_GetMinmaxParameteriv(__GLXclientState *cl, GLbyte *pc)
|
int __glXDispSwap_GetMinmaxParameteriv(__GLXclientState *cl, GLbyte *pc)
|
||||||
{
|
{
|
||||||
xGLXSingleReq * const req = (xGLXSingleReq *) pc;
|
xGLXSingleReq * const req = (xGLXSingleReq *) pc;
|
||||||
|
@ -3529,6 +3827,36 @@ int __glXDispSwap_GetMinmaxParameteriv(__GLXclientState *cl, GLbyte *pc)
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int __glXDispSwap_GetMinmaxParameterivEXT(__GLXclientState *cl, GLbyte *pc)
|
||||||
|
{
|
||||||
|
xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc;
|
||||||
|
int error;
|
||||||
|
__GLXcontext * const cx = __glXForceCurrent(cl, bswap_CARD32( &req->contextTag ), &error);
|
||||||
|
|
||||||
|
pc += __GLX_VENDPRIV_HDR_SIZE;
|
||||||
|
if ( cx != NULL ) {
|
||||||
|
const GLenum pname = (GLenum )bswap_ENUM ( pc + 4 );
|
||||||
|
|
||||||
|
const GLuint compsize = __glGetMinmaxParameteriv_size(pname);
|
||||||
|
GLint answerBuffer[200];
|
||||||
|
GLint * params = __glXGetAnswerBuffer(cl, compsize * 4, answerBuffer, sizeof(answerBuffer), 4);
|
||||||
|
|
||||||
|
if (params == NULL) return BadAlloc;
|
||||||
|
__glXClearErrorOccured();
|
||||||
|
|
||||||
|
CALL_GetMinmaxParameteriv( GET_DISPATCH(), (
|
||||||
|
(GLenum )bswap_ENUM ( pc + 0 ),
|
||||||
|
pname,
|
||||||
|
params
|
||||||
|
) );
|
||||||
|
(void) bswap_32_array( (uint32_t *) params, compsize );
|
||||||
|
__glXSendReplySwap(cl->client, params, compsize, 4, GL_FALSE, 0);
|
||||||
|
error = Success;
|
||||||
|
}
|
||||||
|
|
||||||
|
return error;
|
||||||
|
}
|
||||||
|
|
||||||
void __glXDispSwap_Histogram(GLbyte * pc)
|
void __glXDispSwap_Histogram(GLbyte * pc)
|
||||||
{
|
{
|
||||||
CALL_Histogram( GET_DISPATCH(), (
|
CALL_Histogram( GET_DISPATCH(), (
|
||||||
|
@ -4566,134 +4894,6 @@ void __glXDispSwap_DrawBuffersARB(GLbyte * pc)
|
||||||
) );
|
) );
|
||||||
}
|
}
|
||||||
|
|
||||||
int __glXDispSwap_GetColorTableParameterfvSGI(__GLXclientState *cl, GLbyte *pc)
|
|
||||||
{
|
|
||||||
xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc;
|
|
||||||
int error;
|
|
||||||
__GLXcontext * const cx = __glXForceCurrent(cl, bswap_CARD32( &req->contextTag ), &error);
|
|
||||||
|
|
||||||
pc += __GLX_VENDPRIV_HDR_SIZE;
|
|
||||||
if ( cx != NULL ) {
|
|
||||||
const GLenum pname = (GLenum )bswap_ENUM ( pc + 4 );
|
|
||||||
|
|
||||||
const GLuint compsize = __glGetColorTableParameterfvSGI_size(pname);
|
|
||||||
GLfloat answerBuffer[200];
|
|
||||||
GLfloat * params = __glXGetAnswerBuffer(cl, compsize * 4, answerBuffer, sizeof(answerBuffer), 4);
|
|
||||||
|
|
||||||
if (params == NULL) return BadAlloc;
|
|
||||||
__glXClearErrorOccured();
|
|
||||||
|
|
||||||
CALL_GetColorTableParameterfvSGI( GET_DISPATCH(), (
|
|
||||||
(GLenum )bswap_ENUM ( pc + 0 ),
|
|
||||||
pname,
|
|
||||||
params
|
|
||||||
) );
|
|
||||||
(void) bswap_32_array( (uint32_t *) params, compsize );
|
|
||||||
__glXSendReplySwap(cl->client, params, compsize, 4, GL_FALSE, 0);
|
|
||||||
error = Success;
|
|
||||||
}
|
|
||||||
|
|
||||||
return error;
|
|
||||||
}
|
|
||||||
|
|
||||||
int __glXDispSwap_GetColorTableParameterivSGI(__GLXclientState *cl, GLbyte *pc)
|
|
||||||
{
|
|
||||||
xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc;
|
|
||||||
int error;
|
|
||||||
__GLXcontext * const cx = __glXForceCurrent(cl, bswap_CARD32( &req->contextTag ), &error);
|
|
||||||
|
|
||||||
pc += __GLX_VENDPRIV_HDR_SIZE;
|
|
||||||
if ( cx != NULL ) {
|
|
||||||
const GLenum pname = (GLenum )bswap_ENUM ( pc + 4 );
|
|
||||||
|
|
||||||
const GLuint compsize = __glGetColorTableParameterivSGI_size(pname);
|
|
||||||
GLint answerBuffer[200];
|
|
||||||
GLint * params = __glXGetAnswerBuffer(cl, compsize * 4, answerBuffer, sizeof(answerBuffer), 4);
|
|
||||||
|
|
||||||
if (params == NULL) return BadAlloc;
|
|
||||||
__glXClearErrorOccured();
|
|
||||||
|
|
||||||
CALL_GetColorTableParameterivSGI( GET_DISPATCH(), (
|
|
||||||
(GLenum )bswap_ENUM ( pc + 0 ),
|
|
||||||
pname,
|
|
||||||
params
|
|
||||||
) );
|
|
||||||
(void) bswap_32_array( (uint32_t *) params, compsize );
|
|
||||||
__glXSendReplySwap(cl->client, params, compsize, 4, GL_FALSE, 0);
|
|
||||||
error = Success;
|
|
||||||
}
|
|
||||||
|
|
||||||
return error;
|
|
||||||
}
|
|
||||||
|
|
||||||
int __glXDispSwap_AreTexturesResidentEXT(__GLXclientState *cl, GLbyte *pc)
|
|
||||||
{
|
|
||||||
xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc;
|
|
||||||
int error;
|
|
||||||
__GLXcontext * const cx = __glXForceCurrent(cl, bswap_CARD32( &req->contextTag ), &error);
|
|
||||||
|
|
||||||
pc += __GLX_VENDPRIV_HDR_SIZE;
|
|
||||||
if ( cx != NULL ) {
|
|
||||||
const GLsizei n = (GLsizei )bswap_CARD32 ( pc + 0 );
|
|
||||||
|
|
||||||
GLboolean retval;
|
|
||||||
GLboolean answerBuffer[200];
|
|
||||||
GLboolean * residences = __glXGetAnswerBuffer(cl, n, answerBuffer, sizeof(answerBuffer), 1);
|
|
||||||
retval = CALL_AreTexturesResidentEXT( GET_DISPATCH(), (
|
|
||||||
n,
|
|
||||||
(const GLuint *)bswap_32_array( (uint32_t *) (pc + 4), 0 ),
|
|
||||||
residences
|
|
||||||
) );
|
|
||||||
__glXSendReplySwap(cl->client, residences, n, 1, GL_TRUE, retval);
|
|
||||||
error = Success;
|
|
||||||
}
|
|
||||||
|
|
||||||
return error;
|
|
||||||
}
|
|
||||||
|
|
||||||
int __glXDispSwap_GenTexturesEXT(__GLXclientState *cl, GLbyte *pc)
|
|
||||||
{
|
|
||||||
xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc;
|
|
||||||
int error;
|
|
||||||
__GLXcontext * const cx = __glXForceCurrent(cl, bswap_CARD32( &req->contextTag ), &error);
|
|
||||||
|
|
||||||
pc += __GLX_VENDPRIV_HDR_SIZE;
|
|
||||||
if ( cx != NULL ) {
|
|
||||||
const GLsizei n = (GLsizei )bswap_CARD32 ( pc + 0 );
|
|
||||||
|
|
||||||
GLuint answerBuffer[200];
|
|
||||||
GLuint * textures = __glXGetAnswerBuffer(cl, n * 4, answerBuffer, sizeof(answerBuffer), 4);
|
|
||||||
CALL_GenTexturesEXT( GET_DISPATCH(), (
|
|
||||||
n,
|
|
||||||
textures
|
|
||||||
) );
|
|
||||||
(void) bswap_32_array( (uint32_t *) textures, n );
|
|
||||||
__glXSendReplySwap(cl->client, textures, n, 4, GL_TRUE, 0);
|
|
||||||
error = Success;
|
|
||||||
}
|
|
||||||
|
|
||||||
return error;
|
|
||||||
}
|
|
||||||
|
|
||||||
int __glXDispSwap_IsTextureEXT(__GLXclientState *cl, GLbyte *pc)
|
|
||||||
{
|
|
||||||
xGLXVendorPrivateReq * const req = (xGLXVendorPrivateReq *) pc;
|
|
||||||
int error;
|
|
||||||
__GLXcontext * const cx = __glXForceCurrent(cl, bswap_CARD32( &req->contextTag ), &error);
|
|
||||||
|
|
||||||
pc += __GLX_VENDPRIV_HDR_SIZE;
|
|
||||||
if ( cx != NULL ) {
|
|
||||||
GLboolean retval;
|
|
||||||
retval = CALL_IsTextureEXT( GET_DISPATCH(), (
|
|
||||||
(GLuint )bswap_CARD32 ( pc + 0 )
|
|
||||||
) );
|
|
||||||
__glXSendReplySwap(cl->client, dummy_answer, 0, 0, GL_FALSE, retval);
|
|
||||||
error = Success;
|
|
||||||
}
|
|
||||||
|
|
||||||
return error;
|
|
||||||
}
|
|
||||||
|
|
||||||
void __glXDispSwap_SampleMaskSGIS(GLbyte * pc)
|
void __glXDispSwap_SampleMaskSGIS(GLbyte * pc)
|
||||||
{
|
{
|
||||||
CALL_SampleMaskSGIS( GET_DISPATCH(), (
|
CALL_SampleMaskSGIS( GET_DISPATCH(), (
|
||||||
|
|
|
@ -67,9 +67,9 @@
|
||||||
|
|
||||||
|
|
||||||
INTERNAL PURE FASTCALL GLint
|
INTERNAL PURE FASTCALL GLint
|
||||||
__glCallLists_size( GLenum e )
|
__glCallLists_size(GLenum e)
|
||||||
{
|
{
|
||||||
switch( e ) {
|
switch (e) {
|
||||||
case GL_BYTE:
|
case GL_BYTE:
|
||||||
case GL_UNSIGNED_BYTE:
|
case GL_UNSIGNED_BYTE:
|
||||||
return 1;
|
return 1;
|
||||||
|
@ -84,14 +84,15 @@ __glCallLists_size( GLenum e )
|
||||||
case GL_FLOAT:
|
case GL_FLOAT:
|
||||||
case GL_4_BYTES:
|
case GL_4_BYTES:
|
||||||
return 4;
|
return 4;
|
||||||
default: return 0;
|
default:
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
INTERNAL PURE FASTCALL GLint
|
INTERNAL PURE FASTCALL GLint
|
||||||
__glFogfv_size( GLenum e )
|
__glFogfv_size(GLenum e)
|
||||||
{
|
{
|
||||||
switch( e ) {
|
switch (e) {
|
||||||
case GL_FOG_INDEX:
|
case GL_FOG_INDEX:
|
||||||
case GL_FOG_DENSITY:
|
case GL_FOG_DENSITY:
|
||||||
case GL_FOG_START:
|
case GL_FOG_START:
|
||||||
|
@ -102,14 +103,15 @@ __glFogfv_size( GLenum e )
|
||||||
return 1;
|
return 1;
|
||||||
case GL_FOG_COLOR:
|
case GL_FOG_COLOR:
|
||||||
return 4;
|
return 4;
|
||||||
default: return 0;
|
default:
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
INTERNAL PURE FASTCALL GLint
|
INTERNAL PURE FASTCALL GLint
|
||||||
__glLightfv_size( GLenum e )
|
__glLightfv_size(GLenum e)
|
||||||
{
|
{
|
||||||
switch( e ) {
|
switch (e) {
|
||||||
case GL_SPOT_EXPONENT:
|
case GL_SPOT_EXPONENT:
|
||||||
case GL_SPOT_CUTOFF:
|
case GL_SPOT_CUTOFF:
|
||||||
case GL_CONSTANT_ATTENUATION:
|
case GL_CONSTANT_ATTENUATION:
|
||||||
|
@ -123,14 +125,15 @@ __glLightfv_size( GLenum e )
|
||||||
case GL_SPECULAR:
|
case GL_SPECULAR:
|
||||||
case GL_POSITION:
|
case GL_POSITION:
|
||||||
return 4;
|
return 4;
|
||||||
default: return 0;
|
default:
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
INTERNAL PURE FASTCALL GLint
|
INTERNAL PURE FASTCALL GLint
|
||||||
__glLightModelfv_size( GLenum e )
|
__glLightModelfv_size(GLenum e)
|
||||||
{
|
{
|
||||||
switch( e ) {
|
switch (e) {
|
||||||
case GL_LIGHT_MODEL_LOCAL_VIEWER:
|
case GL_LIGHT_MODEL_LOCAL_VIEWER:
|
||||||
case GL_LIGHT_MODEL_TWO_SIDE:
|
case GL_LIGHT_MODEL_TWO_SIDE:
|
||||||
case GL_LIGHT_MODEL_COLOR_CONTROL:
|
case GL_LIGHT_MODEL_COLOR_CONTROL:
|
||||||
|
@ -138,14 +141,15 @@ __glLightModelfv_size( GLenum e )
|
||||||
return 1;
|
return 1;
|
||||||
case GL_LIGHT_MODEL_AMBIENT:
|
case GL_LIGHT_MODEL_AMBIENT:
|
||||||
return 4;
|
return 4;
|
||||||
default: return 0;
|
default:
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
INTERNAL PURE FASTCALL GLint
|
INTERNAL PURE FASTCALL GLint
|
||||||
__glMaterialfv_size( GLenum e )
|
__glMaterialfv_size(GLenum e)
|
||||||
{
|
{
|
||||||
switch( e ) {
|
switch (e) {
|
||||||
case GL_SHININESS:
|
case GL_SHININESS:
|
||||||
return 1;
|
return 1;
|
||||||
case GL_COLOR_INDEXES:
|
case GL_COLOR_INDEXES:
|
||||||
|
@ -156,14 +160,15 @@ __glMaterialfv_size( GLenum e )
|
||||||
case GL_EMISSION:
|
case GL_EMISSION:
|
||||||
case GL_AMBIENT_AND_DIFFUSE:
|
case GL_AMBIENT_AND_DIFFUSE:
|
||||||
return 4;
|
return 4;
|
||||||
default: return 0;
|
default:
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
INTERNAL PURE FASTCALL GLint
|
INTERNAL PURE FASTCALL GLint
|
||||||
__glTexParameterfv_size( GLenum e )
|
__glTexParameterfv_size(GLenum e)
|
||||||
{
|
{
|
||||||
switch( e ) {
|
switch (e) {
|
||||||
case GL_TEXTURE_MAG_FILTER:
|
case GL_TEXTURE_MAG_FILTER:
|
||||||
case GL_TEXTURE_MIN_FILTER:
|
case GL_TEXTURE_MIN_FILTER:
|
||||||
case GL_TEXTURE_WRAP_S:
|
case GL_TEXTURE_WRAP_S:
|
||||||
|
@ -207,14 +212,15 @@ __glTexParameterfv_size( GLenum e )
|
||||||
case GL_POST_TEXTURE_FILTER_BIAS_SGIX:
|
case GL_POST_TEXTURE_FILTER_BIAS_SGIX:
|
||||||
case GL_POST_TEXTURE_FILTER_SCALE_SGIX:
|
case GL_POST_TEXTURE_FILTER_SCALE_SGIX:
|
||||||
return 4;
|
return 4;
|
||||||
default: return 0;
|
default:
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
INTERNAL PURE FASTCALL GLint
|
INTERNAL PURE FASTCALL GLint
|
||||||
__glTexEnvfv_size( GLenum e )
|
__glTexEnvfv_size(GLenum e)
|
||||||
{
|
{
|
||||||
switch( e ) {
|
switch (e) {
|
||||||
case GL_ALPHA_SCALE:
|
case GL_ALPHA_SCALE:
|
||||||
case GL_TEXTURE_ENV_MODE:
|
case GL_TEXTURE_ENV_MODE:
|
||||||
case GL_TEXTURE_LOD_BIAS:
|
case GL_TEXTURE_LOD_BIAS:
|
||||||
|
@ -242,27 +248,29 @@ __glTexEnvfv_size( GLenum e )
|
||||||
return 1;
|
return 1;
|
||||||
case GL_TEXTURE_ENV_COLOR:
|
case GL_TEXTURE_ENV_COLOR:
|
||||||
return 4;
|
return 4;
|
||||||
default: return 0;
|
default:
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
INTERNAL PURE FASTCALL GLint
|
INTERNAL PURE FASTCALL GLint
|
||||||
__glTexGendv_size( GLenum e )
|
__glTexGendv_size(GLenum e)
|
||||||
{
|
{
|
||||||
switch( e ) {
|
switch (e) {
|
||||||
case GL_TEXTURE_GEN_MODE:
|
case GL_TEXTURE_GEN_MODE:
|
||||||
return 1;
|
return 1;
|
||||||
case GL_OBJECT_PLANE:
|
case GL_OBJECT_PLANE:
|
||||||
case GL_EYE_PLANE:
|
case GL_EYE_PLANE:
|
||||||
return 4;
|
return 4;
|
||||||
default: return 0;
|
default:
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
INTERNAL PURE FASTCALL GLint
|
INTERNAL PURE FASTCALL GLint
|
||||||
__glMap1d_size( GLenum e )
|
__glMap1d_size(GLenum e)
|
||||||
{
|
{
|
||||||
switch( e ) {
|
switch (e) {
|
||||||
case GL_MAP1_INDEX:
|
case GL_MAP1_INDEX:
|
||||||
case GL_MAP1_TEXTURE_COORD_1:
|
case GL_MAP1_TEXTURE_COORD_1:
|
||||||
return 1;
|
return 1;
|
||||||
|
@ -276,14 +284,15 @@ __glMap1d_size( GLenum e )
|
||||||
case GL_MAP1_TEXTURE_COORD_4:
|
case GL_MAP1_TEXTURE_COORD_4:
|
||||||
case GL_MAP1_VERTEX_4:
|
case GL_MAP1_VERTEX_4:
|
||||||
return 4;
|
return 4;
|
||||||
default: return 0;
|
default:
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
INTERNAL PURE FASTCALL GLint
|
INTERNAL PURE FASTCALL GLint
|
||||||
__glMap2d_size( GLenum e )
|
__glMap2d_size(GLenum e)
|
||||||
{
|
{
|
||||||
switch( e ) {
|
switch (e) {
|
||||||
case GL_MAP2_INDEX:
|
case GL_MAP2_INDEX:
|
||||||
case GL_MAP2_TEXTURE_COORD_1:
|
case GL_MAP2_TEXTURE_COORD_1:
|
||||||
return 1;
|
return 1;
|
||||||
|
@ -297,14 +306,15 @@ __glMap2d_size( GLenum e )
|
||||||
case GL_MAP2_TEXTURE_COORD_4:
|
case GL_MAP2_TEXTURE_COORD_4:
|
||||||
case GL_MAP2_VERTEX_4:
|
case GL_MAP2_VERTEX_4:
|
||||||
return 4;
|
return 4;
|
||||||
default: return 0;
|
default:
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
INTERNAL PURE FASTCALL GLint
|
INTERNAL PURE FASTCALL GLint
|
||||||
__glGetBooleanv_size( GLenum e )
|
__glGetBooleanv_size(GLenum e)
|
||||||
{
|
{
|
||||||
switch( e ) {
|
switch (e) {
|
||||||
case GL_CURRENT_INDEX:
|
case GL_CURRENT_INDEX:
|
||||||
case GL_CURRENT_RASTER_INDEX:
|
case GL_CURRENT_RASTER_INDEX:
|
||||||
case GL_CURRENT_RASTER_POSITION_VALID:
|
case GL_CURRENT_RASTER_POSITION_VALID:
|
||||||
|
@ -765,15 +775,16 @@ __glGetBooleanv_size( GLenum e )
|
||||||
return 16;
|
return 16;
|
||||||
case GL_FOG_COORDINATE_SOURCE:
|
case GL_FOG_COORDINATE_SOURCE:
|
||||||
case GL_COMPRESSED_TEXTURE_FORMATS:
|
case GL_COMPRESSED_TEXTURE_FORMATS:
|
||||||
return __glGetBooleanv_variable_size( e );
|
return __glGetBooleanv_variable_size(e);
|
||||||
default: return 0;
|
default:
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
INTERNAL PURE FASTCALL GLint
|
INTERNAL PURE FASTCALL GLint
|
||||||
__glGetTexParameterfv_size( GLenum e )
|
__glGetTexParameterfv_size(GLenum e)
|
||||||
{
|
{
|
||||||
switch( e ) {
|
switch (e) {
|
||||||
case GL_TEXTURE_MAG_FILTER:
|
case GL_TEXTURE_MAG_FILTER:
|
||||||
case GL_TEXTURE_MIN_FILTER:
|
case GL_TEXTURE_MIN_FILTER:
|
||||||
case GL_TEXTURE_WRAP_S:
|
case GL_TEXTURE_WRAP_S:
|
||||||
|
@ -818,14 +829,15 @@ __glGetTexParameterfv_size( GLenum e )
|
||||||
case GL_POST_TEXTURE_FILTER_BIAS_SGIX:
|
case GL_POST_TEXTURE_FILTER_BIAS_SGIX:
|
||||||
case GL_POST_TEXTURE_FILTER_SCALE_SGIX:
|
case GL_POST_TEXTURE_FILTER_SCALE_SGIX:
|
||||||
return 4;
|
return 4;
|
||||||
default: return 0;
|
default:
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
INTERNAL PURE FASTCALL GLint
|
INTERNAL PURE FASTCALL GLint
|
||||||
__glGetTexLevelParameterfv_size( GLenum e )
|
__glGetTexLevelParameterfv_size(GLenum e)
|
||||||
{
|
{
|
||||||
switch( e ) {
|
switch (e) {
|
||||||
case GL_TEXTURE_WIDTH:
|
case GL_TEXTURE_WIDTH:
|
||||||
case GL_TEXTURE_HEIGHT:
|
case GL_TEXTURE_HEIGHT:
|
||||||
case GL_TEXTURE_COMPONENTS:
|
case GL_TEXTURE_COMPONENTS:
|
||||||
|
@ -851,25 +863,27 @@ __glGetTexLevelParameterfv_size( GLenum e )
|
||||||
case GL_TEXTURE_DEPTH_SIZE:
|
case GL_TEXTURE_DEPTH_SIZE:
|
||||||
/* case GL_TEXTURE_DEPTH_SIZE_ARB:*/
|
/* case GL_TEXTURE_DEPTH_SIZE_ARB:*/
|
||||||
return 1;
|
return 1;
|
||||||
default: return 0;
|
default:
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
INTERNAL PURE FASTCALL GLint
|
INTERNAL PURE FASTCALL GLint
|
||||||
__glColorTableParameterfv_size( GLenum e )
|
__glColorTableParameterfv_size(GLenum e)
|
||||||
{
|
{
|
||||||
switch( e ) {
|
switch (e) {
|
||||||
case GL_COLOR_TABLE_SCALE:
|
case GL_COLOR_TABLE_SCALE:
|
||||||
case GL_COLOR_TABLE_BIAS:
|
case GL_COLOR_TABLE_BIAS:
|
||||||
return 4;
|
return 4;
|
||||||
default: return 0;
|
default:
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
INTERNAL PURE FASTCALL GLint
|
INTERNAL PURE FASTCALL GLint
|
||||||
__glGetColorTableParameterfv_size( GLenum e )
|
__glGetColorTableParameterfv_size(GLenum e)
|
||||||
{
|
{
|
||||||
switch( e ) {
|
switch (e) {
|
||||||
case GL_COLOR_TABLE_FORMAT:
|
case GL_COLOR_TABLE_FORMAT:
|
||||||
/* case GL_COLOR_TABLE_FORMAT_EXT:*/
|
/* case GL_COLOR_TABLE_FORMAT_EXT:*/
|
||||||
case GL_COLOR_TABLE_WIDTH:
|
case GL_COLOR_TABLE_WIDTH:
|
||||||
|
@ -890,14 +904,15 @@ __glGetColorTableParameterfv_size( GLenum e )
|
||||||
case GL_COLOR_TABLE_SCALE:
|
case GL_COLOR_TABLE_SCALE:
|
||||||
case GL_COLOR_TABLE_BIAS:
|
case GL_COLOR_TABLE_BIAS:
|
||||||
return 4;
|
return 4;
|
||||||
default: return 0;
|
default:
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
INTERNAL PURE FASTCALL GLint
|
INTERNAL PURE FASTCALL GLint
|
||||||
__glConvolutionParameterfv_size( GLenum e )
|
__glConvolutionParameterfv_size(GLenum e)
|
||||||
{
|
{
|
||||||
switch( e ) {
|
switch (e) {
|
||||||
case GL_CONVOLUTION_BORDER_MODE:
|
case GL_CONVOLUTION_BORDER_MODE:
|
||||||
/* case GL_CONVOLUTION_BORDER_MODE_EXT:*/
|
/* case GL_CONVOLUTION_BORDER_MODE_EXT:*/
|
||||||
return 1;
|
return 1;
|
||||||
|
@ -908,14 +923,15 @@ __glConvolutionParameterfv_size( GLenum e )
|
||||||
case GL_CONVOLUTION_BORDER_COLOR:
|
case GL_CONVOLUTION_BORDER_COLOR:
|
||||||
/* case GL_CONVOLUTION_BORDER_COLOR_HP:*/
|
/* case GL_CONVOLUTION_BORDER_COLOR_HP:*/
|
||||||
return 4;
|
return 4;
|
||||||
default: return 0;
|
default:
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
INTERNAL PURE FASTCALL GLint
|
INTERNAL PURE FASTCALL GLint
|
||||||
__glGetConvolutionParameterfv_size( GLenum e )
|
__glGetConvolutionParameterfv_size(GLenum e)
|
||||||
{
|
{
|
||||||
switch( e ) {
|
switch (e) {
|
||||||
case GL_CONVOLUTION_BORDER_MODE:
|
case GL_CONVOLUTION_BORDER_MODE:
|
||||||
/* case GL_CONVOLUTION_BORDER_MODE_EXT:*/
|
/* case GL_CONVOLUTION_BORDER_MODE_EXT:*/
|
||||||
case GL_CONVOLUTION_FORMAT:
|
case GL_CONVOLUTION_FORMAT:
|
||||||
|
@ -936,14 +952,15 @@ __glGetConvolutionParameterfv_size( GLenum e )
|
||||||
case GL_CONVOLUTION_BORDER_COLOR:
|
case GL_CONVOLUTION_BORDER_COLOR:
|
||||||
/* case GL_CONVOLUTION_BORDER_COLOR_HP:*/
|
/* case GL_CONVOLUTION_BORDER_COLOR_HP:*/
|
||||||
return 4;
|
return 4;
|
||||||
default: return 0;
|
default:
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
INTERNAL PURE FASTCALL GLint
|
INTERNAL PURE FASTCALL GLint
|
||||||
__glGetHistogramParameterfv_size( GLenum e )
|
__glGetHistogramParameterfv_size(GLenum e)
|
||||||
{
|
{
|
||||||
switch( e ) {
|
switch (e) {
|
||||||
case GL_HISTOGRAM_WIDTH:
|
case GL_HISTOGRAM_WIDTH:
|
||||||
case GL_HISTOGRAM_FORMAT:
|
case GL_HISTOGRAM_FORMAT:
|
||||||
case GL_HISTOGRAM_RED_SIZE:
|
case GL_HISTOGRAM_RED_SIZE:
|
||||||
|
@ -953,25 +970,27 @@ __glGetHistogramParameterfv_size( GLenum e )
|
||||||
case GL_HISTOGRAM_LUMINANCE_SIZE:
|
case GL_HISTOGRAM_LUMINANCE_SIZE:
|
||||||
case GL_HISTOGRAM_SINK:
|
case GL_HISTOGRAM_SINK:
|
||||||
return 1;
|
return 1;
|
||||||
default: return 0;
|
default:
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
INTERNAL PURE FASTCALL GLint
|
INTERNAL PURE FASTCALL GLint
|
||||||
__glGetMinmaxParameterfv_size( GLenum e )
|
__glGetMinmaxParameterfv_size(GLenum e)
|
||||||
{
|
{
|
||||||
switch( e ) {
|
switch (e) {
|
||||||
case GL_MINMAX_FORMAT:
|
case GL_MINMAX_FORMAT:
|
||||||
case GL_MINMAX_SINK:
|
case GL_MINMAX_SINK:
|
||||||
return 1;
|
return 1;
|
||||||
default: return 0;
|
default:
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
INTERNAL PURE FASTCALL GLint
|
INTERNAL PURE FASTCALL GLint
|
||||||
__glGetProgramivARB_size( GLenum e )
|
__glGetProgramivARB_size(GLenum e)
|
||||||
{
|
{
|
||||||
switch( e ) {
|
switch (e) {
|
||||||
case GL_PROGRAM_LENGTH_ARB:
|
case GL_PROGRAM_LENGTH_ARB:
|
||||||
case GL_PROGRAM_BINDING_ARB:
|
case GL_PROGRAM_BINDING_ARB:
|
||||||
case GL_PROGRAM_ALU_INSTRUCTIONS_ARB:
|
case GL_PROGRAM_ALU_INSTRUCTIONS_ARB:
|
||||||
|
@ -1018,14 +1037,15 @@ __glGetProgramivARB_size( GLenum e )
|
||||||
case GL_MAX_PROGRAM_LOOP_DEPTH_NV:
|
case GL_MAX_PROGRAM_LOOP_DEPTH_NV:
|
||||||
case GL_MAX_PROGRAM_LOOP_COUNT_NV:
|
case GL_MAX_PROGRAM_LOOP_COUNT_NV:
|
||||||
return 1;
|
return 1;
|
||||||
default: return 0;
|
default:
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
INTERNAL PURE FASTCALL GLint
|
INTERNAL PURE FASTCALL GLint
|
||||||
__glGetVertexAttribdvARB_size( GLenum e )
|
__glGetVertexAttribdvARB_size(GLenum e)
|
||||||
{
|
{
|
||||||
switch( e ) {
|
switch (e) {
|
||||||
case GL_VERTEX_PROGRAM_ARB:
|
case GL_VERTEX_PROGRAM_ARB:
|
||||||
case GL_VERTEX_ATTRIB_ARRAY_ENABLED_ARB:
|
case GL_VERTEX_ATTRIB_ARRAY_ENABLED_ARB:
|
||||||
case GL_VERTEX_ATTRIB_ARRAY_SIZE_ARB:
|
case GL_VERTEX_ATTRIB_ARRAY_SIZE_ARB:
|
||||||
|
@ -1033,36 +1053,39 @@ __glGetVertexAttribdvARB_size( GLenum e )
|
||||||
case GL_VERTEX_ATTRIB_ARRAY_TYPE_ARB:
|
case GL_VERTEX_ATTRIB_ARRAY_TYPE_ARB:
|
||||||
case GL_CURRENT_VERTEX_ATTRIB_ARB:
|
case GL_CURRENT_VERTEX_ATTRIB_ARB:
|
||||||
return 1;
|
return 1;
|
||||||
default: return 0;
|
default:
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
INTERNAL PURE FASTCALL GLint
|
INTERNAL PURE FASTCALL GLint
|
||||||
__glGetQueryObjectivARB_size( GLenum e )
|
__glGetQueryObjectivARB_size(GLenum e)
|
||||||
{
|
{
|
||||||
switch( e ) {
|
switch (e) {
|
||||||
case GL_QUERY_RESULT_ARB:
|
case GL_QUERY_RESULT_ARB:
|
||||||
case GL_QUERY_RESULT_AVAILABLE_ARB:
|
case GL_QUERY_RESULT_AVAILABLE_ARB:
|
||||||
return 1;
|
return 1;
|
||||||
default: return 0;
|
default:
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
INTERNAL PURE FASTCALL GLint
|
INTERNAL PURE FASTCALL GLint
|
||||||
__glGetQueryivARB_size( GLenum e )
|
__glGetQueryivARB_size(GLenum e)
|
||||||
{
|
{
|
||||||
switch( e ) {
|
switch (e) {
|
||||||
case GL_QUERY_COUNTER_BITS_ARB:
|
case GL_QUERY_COUNTER_BITS_ARB:
|
||||||
case GL_CURRENT_QUERY_ARB:
|
case GL_CURRENT_QUERY_ARB:
|
||||||
return 1;
|
return 1;
|
||||||
default: return 0;
|
default:
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
INTERNAL PURE FASTCALL GLint
|
INTERNAL PURE FASTCALL GLint
|
||||||
__glPointParameterfvEXT_size( GLenum e )
|
__glPointParameterfvEXT_size(GLenum e)
|
||||||
{
|
{
|
||||||
switch( e ) {
|
switch (e) {
|
||||||
case GL_POINT_SIZE_MIN:
|
case GL_POINT_SIZE_MIN:
|
||||||
/* case GL_POINT_SIZE_MIN_ARB:*/
|
/* case GL_POINT_SIZE_MIN_ARB:*/
|
||||||
/* case GL_POINT_SIZE_MIN_SGIS:*/
|
/* case GL_POINT_SIZE_MIN_SGIS:*/
|
||||||
|
@ -1079,88 +1102,89 @@ __glPointParameterfvEXT_size( GLenum e )
|
||||||
/* case GL_POINT_DISTANCE_ATTENUATION_ARB:*/
|
/* case GL_POINT_DISTANCE_ATTENUATION_ARB:*/
|
||||||
/* case GL_POINT_DISTANCE_ATTENUATION_SGIS:*/
|
/* case GL_POINT_DISTANCE_ATTENUATION_SGIS:*/
|
||||||
return 3;
|
return 3;
|
||||||
default: return 0;
|
default:
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
INTERNAL PURE FASTCALL GLint
|
INTERNAL PURE FASTCALL GLint
|
||||||
__glGetProgramivNV_size( GLenum e )
|
__glGetProgramivNV_size(GLenum e)
|
||||||
{
|
{
|
||||||
switch( e ) {
|
switch (e) {
|
||||||
case GL_PROGRAM_LENGTH_NV:
|
case GL_PROGRAM_LENGTH_NV:
|
||||||
case GL_PROGRAM_TARGET_NV:
|
case GL_PROGRAM_TARGET_NV:
|
||||||
case GL_PROGRAM_RESIDENT_NV:
|
case GL_PROGRAM_RESIDENT_NV:
|
||||||
return 1;
|
return 1;
|
||||||
default: return 0;
|
default:
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
INTERNAL PURE FASTCALL GLint
|
INTERNAL PURE FASTCALL GLint
|
||||||
__glGetVertexAttribdvNV_size( GLenum e )
|
__glGetVertexAttribdvNV_size(GLenum e)
|
||||||
{
|
{
|
||||||
switch( e ) {
|
switch (e) {
|
||||||
case GL_ATTRIB_ARRAY_SIZE_NV:
|
case GL_ATTRIB_ARRAY_SIZE_NV:
|
||||||
case GL_ATTRIB_ARRAY_STRIDE_NV:
|
case GL_ATTRIB_ARRAY_STRIDE_NV:
|
||||||
case GL_ATTRIB_ARRAY_TYPE_NV:
|
case GL_ATTRIB_ARRAY_TYPE_NV:
|
||||||
case GL_CURRENT_ATTRIB_NV:
|
case GL_CURRENT_ATTRIB_NV:
|
||||||
return 1;
|
return 1;
|
||||||
default: return 0;
|
default:
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
INTERNAL PURE FASTCALL GLint
|
INTERNAL PURE FASTCALL GLint
|
||||||
__glGetFramebufferAttachmentParameterivEXT_size( GLenum e )
|
__glGetFramebufferAttachmentParameterivEXT_size(GLenum e)
|
||||||
{
|
{
|
||||||
switch( e ) {
|
switch (e) {
|
||||||
case GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_EXT:
|
case GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_EXT:
|
||||||
case GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_EXT:
|
case GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_EXT:
|
||||||
case GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL_EXT:
|
case GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL_EXT:
|
||||||
case GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_EXT:
|
case GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_EXT:
|
||||||
case GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_EXT:
|
case GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_EXT:
|
||||||
return 1;
|
return 1;
|
||||||
default: return 0;
|
default:
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ALIAS( Fogiv, Fogfv )
|
ALIAS(Fogiv, Fogfv)
|
||||||
ALIAS( Lightiv, Lightfv )
|
ALIAS(Lightiv, Lightfv)
|
||||||
ALIAS( LightModeliv, LightModelfv )
|
ALIAS(LightModeliv, LightModelfv)
|
||||||
ALIAS( Materialiv, Materialfv )
|
ALIAS(Materialiv, Materialfv)
|
||||||
ALIAS( TexParameteriv, TexParameterfv )
|
ALIAS(TexParameteriv, TexParameterfv)
|
||||||
ALIAS( TexEnviv, TexEnvfv )
|
ALIAS(TexEnviv, TexEnvfv)
|
||||||
ALIAS( TexGenfv, TexGendv )
|
ALIAS(TexGenfv, TexGendv)
|
||||||
ALIAS( TexGeniv, TexGendv )
|
ALIAS(TexGeniv, TexGendv)
|
||||||
ALIAS( Map1f, Map1d )
|
ALIAS(Map1f, Map1d)
|
||||||
ALIAS( Map2f, Map2d )
|
ALIAS(Map2f, Map2d)
|
||||||
ALIAS( GetDoublev, GetBooleanv )
|
ALIAS(GetDoublev, GetBooleanv)
|
||||||
ALIAS( GetFloatv, GetBooleanv )
|
ALIAS(GetFloatv, GetBooleanv)
|
||||||
ALIAS( GetIntegerv, GetBooleanv )
|
ALIAS(GetIntegerv, GetBooleanv)
|
||||||
ALIAS( GetLightfv, Lightfv )
|
ALIAS(GetLightfv, Lightfv)
|
||||||
ALIAS( GetLightiv, Lightfv )
|
ALIAS(GetLightiv, Lightfv)
|
||||||
ALIAS( GetMaterialfv, Materialfv )
|
ALIAS(GetMaterialfv, Materialfv)
|
||||||
ALIAS( GetMaterialiv, Materialfv )
|
ALIAS(GetMaterialiv, Materialfv)
|
||||||
ALIAS( GetTexEnvfv, TexEnvfv )
|
ALIAS(GetTexEnvfv, TexEnvfv)
|
||||||
ALIAS( GetTexEnviv, TexEnvfv )
|
ALIAS(GetTexEnviv, TexEnvfv)
|
||||||
ALIAS( GetTexGendv, TexGendv )
|
ALIAS(GetTexGendv, TexGendv)
|
||||||
ALIAS( GetTexGenfv, TexGendv )
|
ALIAS(GetTexGenfv, TexGendv)
|
||||||
ALIAS( GetTexGeniv, TexGendv )
|
ALIAS(GetTexGeniv, TexGendv)
|
||||||
ALIAS( GetTexParameteriv, GetTexParameterfv )
|
ALIAS(GetTexParameteriv, GetTexParameterfv)
|
||||||
ALIAS( GetTexLevelParameteriv, GetTexLevelParameterfv )
|
ALIAS(GetTexLevelParameteriv, GetTexLevelParameterfv)
|
||||||
ALIAS( ColorTableParameteriv, ColorTableParameterfv )
|
ALIAS(ColorTableParameteriv, ColorTableParameterfv)
|
||||||
ALIAS( GetColorTableParameteriv, GetColorTableParameterfv )
|
ALIAS(GetColorTableParameteriv, GetColorTableParameterfv)
|
||||||
ALIAS( ConvolutionParameteriv, ConvolutionParameterfv )
|
ALIAS(ConvolutionParameteriv, ConvolutionParameterfv)
|
||||||
ALIAS( GetConvolutionParameteriv, GetConvolutionParameterfv )
|
ALIAS(GetConvolutionParameteriv, GetConvolutionParameterfv)
|
||||||
ALIAS( GetHistogramParameteriv, GetHistogramParameterfv )
|
ALIAS(GetHistogramParameteriv, GetHistogramParameterfv)
|
||||||
ALIAS( GetMinmaxParameteriv, GetMinmaxParameterfv )
|
ALIAS(GetMinmaxParameteriv, GetMinmaxParameterfv)
|
||||||
ALIAS( GetVertexAttribfvARB, GetVertexAttribdvARB )
|
ALIAS(GetVertexAttribfvARB, GetVertexAttribdvARB)
|
||||||
ALIAS( GetVertexAttribivARB, GetVertexAttribdvARB )
|
ALIAS(GetVertexAttribivARB, GetVertexAttribdvARB)
|
||||||
ALIAS( GetQueryObjectuivARB, GetQueryObjectivARB )
|
ALIAS(GetQueryObjectuivARB, GetQueryObjectivARB)
|
||||||
ALIAS( GetColorTableParameterfvSGI, GetColorTableParameterfv )
|
ALIAS(GetVertexAttribfvNV, GetVertexAttribdvNV)
|
||||||
ALIAS( GetColorTableParameterivSGI, GetColorTableParameterfv )
|
ALIAS(GetVertexAttribivNV, GetVertexAttribdvNV)
|
||||||
ALIAS( GetVertexAttribfvNV, GetVertexAttribdvNV )
|
ALIAS(PointParameterivNV, PointParameterfvEXT)
|
||||||
ALIAS( GetVertexAttribivNV, GetVertexAttribdvNV )
|
|
||||||
ALIAS( PointParameterivNV, PointParameterfvEXT )
|
|
||||||
|
|
||||||
# undef PURE
|
# undef PURE
|
||||||
# undef FASTCALL
|
# undef FASTCALL
|
||||||
# undef INTERNAL
|
# undef INTERNAL
|
||||||
|
|
|
@ -73,8 +73,10 @@ extern INTERNAL PURE FASTCALL GLint __glGetTexLevelParameterfv_size(GLenum);
|
||||||
extern INTERNAL PURE FASTCALL GLint __glGetTexLevelParameteriv_size(GLenum);
|
extern INTERNAL PURE FASTCALL GLint __glGetTexLevelParameteriv_size(GLenum);
|
||||||
extern INTERNAL PURE FASTCALL GLint __glGetColorTableParameterfv_size(GLenum);
|
extern INTERNAL PURE FASTCALL GLint __glGetColorTableParameterfv_size(GLenum);
|
||||||
extern INTERNAL PURE FASTCALL GLint __glGetColorTableParameteriv_size(GLenum);
|
extern INTERNAL PURE FASTCALL GLint __glGetColorTableParameteriv_size(GLenum);
|
||||||
extern INTERNAL PURE FASTCALL GLint __glGetConvolutionParameterfv_size(GLenum);
|
extern INTERNAL PURE FASTCALL GLint
|
||||||
extern INTERNAL PURE FASTCALL GLint __glGetConvolutionParameteriv_size(GLenum);
|
__glGetConvolutionParameterfv_size(GLenum);
|
||||||
|
extern INTERNAL PURE FASTCALL GLint
|
||||||
|
__glGetConvolutionParameteriv_size(GLenum);
|
||||||
extern INTERNAL PURE FASTCALL GLint __glGetHistogramParameterfv_size(GLenum);
|
extern INTERNAL PURE FASTCALL GLint __glGetHistogramParameterfv_size(GLenum);
|
||||||
extern INTERNAL PURE FASTCALL GLint __glGetHistogramParameteriv_size(GLenum);
|
extern INTERNAL PURE FASTCALL GLint __glGetHistogramParameteriv_size(GLenum);
|
||||||
extern INTERNAL PURE FASTCALL GLint __glGetMinmaxParameterfv_size(GLenum);
|
extern INTERNAL PURE FASTCALL GLint __glGetMinmaxParameterfv_size(GLenum);
|
||||||
|
@ -86,13 +88,12 @@ extern INTERNAL PURE FASTCALL GLint __glGetVertexAttribivARB_size(GLenum);
|
||||||
extern INTERNAL PURE FASTCALL GLint __glGetQueryObjectivARB_size(GLenum);
|
extern INTERNAL PURE FASTCALL GLint __glGetQueryObjectivARB_size(GLenum);
|
||||||
extern INTERNAL PURE FASTCALL GLint __glGetQueryObjectuivARB_size(GLenum);
|
extern INTERNAL PURE FASTCALL GLint __glGetQueryObjectuivARB_size(GLenum);
|
||||||
extern INTERNAL PURE FASTCALL GLint __glGetQueryivARB_size(GLenum);
|
extern INTERNAL PURE FASTCALL GLint __glGetQueryivARB_size(GLenum);
|
||||||
extern INTERNAL PURE FASTCALL GLint __glGetColorTableParameterfvSGI_size(GLenum);
|
|
||||||
extern INTERNAL PURE FASTCALL GLint __glGetColorTableParameterivSGI_size(GLenum);
|
|
||||||
extern INTERNAL PURE FASTCALL GLint __glGetProgramivNV_size(GLenum);
|
extern INTERNAL PURE FASTCALL GLint __glGetProgramivNV_size(GLenum);
|
||||||
extern INTERNAL PURE FASTCALL GLint __glGetVertexAttribdvNV_size(GLenum);
|
extern INTERNAL PURE FASTCALL GLint __glGetVertexAttribdvNV_size(GLenum);
|
||||||
extern INTERNAL PURE FASTCALL GLint __glGetVertexAttribfvNV_size(GLenum);
|
extern INTERNAL PURE FASTCALL GLint __glGetVertexAttribfvNV_size(GLenum);
|
||||||
extern INTERNAL PURE FASTCALL GLint __glGetVertexAttribivNV_size(GLenum);
|
extern INTERNAL PURE FASTCALL GLint __glGetVertexAttribivNV_size(GLenum);
|
||||||
extern INTERNAL PURE FASTCALL GLint __glGetFramebufferAttachmentParameterivEXT_size(GLenum);
|
extern INTERNAL PURE FASTCALL GLint
|
||||||
|
__glGetFramebufferAttachmentParameterivEXT_size(GLenum);
|
||||||
|
|
||||||
# undef PURE
|
# undef PURE
|
||||||
# undef FASTCALL
|
# undef FASTCALL
|
||||||
|
|
|
@ -163,7 +163,7 @@ static const void *Single_function_table[112][2] = {
|
||||||
/* [ 85] = 141 */ {__glXDisp_IsList, __glXDispSwap_IsList},
|
/* [ 85] = 141 */ {__glXDisp_IsList, __glXDispSwap_IsList},
|
||||||
/* [ 86] = 142 */ {__glXDisp_Flush, __glXDispSwap_Flush},
|
/* [ 86] = 142 */ {__glXDisp_Flush, __glXDispSwap_Flush},
|
||||||
/* [ 87] = 143 */ {__glXDisp_AreTexturesResident, __glXDispSwap_AreTexturesResident},
|
/* [ 87] = 143 */ {__glXDisp_AreTexturesResident, __glXDispSwap_AreTexturesResident},
|
||||||
/* [ 88] = 144 */ {NULL, NULL},
|
/* [ 88] = 144 */ {__glXDisp_DeleteTextures, __glXDispSwap_DeleteTextures},
|
||||||
/* [ 89] = 145 */ {__glXDisp_GenTextures, __glXDispSwap_GenTextures},
|
/* [ 89] = 145 */ {__glXDisp_GenTextures, __glXDispSwap_GenTextures},
|
||||||
/* [ 90] = 146 */ {__glXDisp_IsTexture, __glXDispSwap_IsTexture},
|
/* [ 90] = 146 */ {__glXDisp_IsTexture, __glXDispSwap_IsTexture},
|
||||||
/* [ 91] = 147 */ {__glXDisp_GetColorTable, __glXDispSwap_GetColorTable},
|
/* [ 91] = 147 */ {__glXDisp_GetColorTable, __glXDispSwap_GetColorTable},
|
||||||
|
@ -1232,12 +1232,12 @@ const struct __glXDispatchInfo Render_dispatch_info = {
|
||||||
|
|
||||||
/*****************************************************************/
|
/*****************************************************************/
|
||||||
/* tree depth = 13 */
|
/* tree depth = 13 */
|
||||||
static const int_fast16_t VendorPriv_dispatch_tree[158] = {
|
static const int_fast16_t VendorPriv_dispatch_tree[155] = {
|
||||||
/* [0] -> opcode range [0, 131072], node depth 1 */
|
/* [0] -> opcode range [0, 131072], node depth 1 */
|
||||||
2,
|
2,
|
||||||
5,
|
5,
|
||||||
EMPTY_LEAF,
|
EMPTY_LEAF,
|
||||||
122,
|
119,
|
||||||
EMPTY_LEAF,
|
EMPTY_LEAF,
|
||||||
|
|
||||||
/* [5] -> opcode range [0, 32768], node depth 2 */
|
/* [5] -> opcode range [0, 32768], node depth 2 */
|
||||||
|
@ -1254,14 +1254,14 @@ static const int_fast16_t VendorPriv_dispatch_tree[158] = {
|
||||||
2,
|
2,
|
||||||
16,
|
16,
|
||||||
EMPTY_LEAF,
|
EMPTY_LEAF,
|
||||||
81,
|
78,
|
||||||
EMPTY_LEAF,
|
EMPTY_LEAF,
|
||||||
|
|
||||||
/* [16] -> opcode range [0, 2048], node depth 5 */
|
/* [16] -> opcode range [0, 2048], node depth 5 */
|
||||||
2,
|
2,
|
||||||
21,
|
21,
|
||||||
EMPTY_LEAF,
|
EMPTY_LEAF,
|
||||||
39,
|
36,
|
||||||
EMPTY_LEAF,
|
EMPTY_LEAF,
|
||||||
|
|
||||||
/* [21] -> opcode range [0, 512], node depth 6 */
|
/* [21] -> opcode range [0, 512], node depth 6 */
|
||||||
|
@ -1286,298 +1286,301 @@ static const int_fast16_t VendorPriv_dispatch_tree[158] = {
|
||||||
|
|
||||||
/* [33] -> opcode range [0, 32], node depth 10 */
|
/* [33] -> opcode range [0, 32], node depth 10 */
|
||||||
1,
|
1,
|
||||||
36,
|
|
||||||
EMPTY_LEAF,
|
|
||||||
|
|
||||||
/* [36] -> opcode range [0, 16], node depth 11 */
|
|
||||||
1,
|
|
||||||
EMPTY_LEAF,
|
|
||||||
LEAF(0),
|
LEAF(0),
|
||||||
|
EMPTY_LEAF,
|
||||||
|
|
||||||
/* [39] -> opcode range [1024, 1536], node depth 6 */
|
/* [36] -> opcode range [1024, 1536], node depth 6 */
|
||||||
2,
|
2,
|
||||||
|
41,
|
||||||
|
EMPTY_LEAF,
|
||||||
|
53,
|
||||||
|
67,
|
||||||
|
|
||||||
|
/* [41] -> opcode range [1024, 1152], node depth 7 */
|
||||||
|
1,
|
||||||
44,
|
44,
|
||||||
EMPTY_LEAF,
|
EMPTY_LEAF,
|
||||||
56,
|
|
||||||
70,
|
|
||||||
|
|
||||||
/* [44] -> opcode range [1024, 1152], node depth 7 */
|
/* [44] -> opcode range [1024, 1088], node depth 8 */
|
||||||
1,
|
1,
|
||||||
47,
|
47,
|
||||||
EMPTY_LEAF,
|
EMPTY_LEAF,
|
||||||
|
|
||||||
/* [47] -> opcode range [1024, 1088], node depth 8 */
|
/* [47] -> opcode range [1024, 1056], node depth 9 */
|
||||||
1,
|
1,
|
||||||
50,
|
50,
|
||||||
EMPTY_LEAF,
|
EMPTY_LEAF,
|
||||||
|
|
||||||
/* [50] -> opcode range [1024, 1056], node depth 9 */
|
/* [50] -> opcode range [1024, 1040], node depth 10 */
|
||||||
1,
|
1,
|
||||||
53,
|
|
||||||
EMPTY_LEAF,
|
|
||||||
|
|
||||||
/* [53] -> opcode range [1024, 1040], node depth 10 */
|
|
||||||
1,
|
|
||||||
LEAF(8),
|
|
||||||
EMPTY_LEAF,
|
|
||||||
|
|
||||||
/* [56] -> opcode range [1280, 1408], node depth 7 */
|
|
||||||
1,
|
|
||||||
59,
|
|
||||||
EMPTY_LEAF,
|
|
||||||
|
|
||||||
/* [59] -> opcode range [1280, 1344], node depth 8 */
|
|
||||||
2,
|
|
||||||
64,
|
|
||||||
LEAF(16),
|
LEAF(16),
|
||||||
EMPTY_LEAF,
|
EMPTY_LEAF,
|
||||||
67,
|
|
||||||
|
|
||||||
/* [64] -> opcode range [1280, 1296], node depth 9 */
|
/* [53] -> opcode range [1280, 1408], node depth 7 */
|
||||||
|
1,
|
||||||
|
56,
|
||||||
|
EMPTY_LEAF,
|
||||||
|
|
||||||
|
/* [56] -> opcode range [1280, 1344], node depth 8 */
|
||||||
|
2,
|
||||||
|
61,
|
||||||
|
LEAF(24),
|
||||||
|
EMPTY_LEAF,
|
||||||
|
64,
|
||||||
|
|
||||||
|
/* [61] -> opcode range [1280, 1296], node depth 9 */
|
||||||
1,
|
1,
|
||||||
EMPTY_LEAF,
|
EMPTY_LEAF,
|
||||||
LEAF(32),
|
|
||||||
|
|
||||||
/* [67] -> opcode range [1328, 1344], node depth 9 */
|
|
||||||
1,
|
|
||||||
LEAF(40),
|
LEAF(40),
|
||||||
|
|
||||||
|
/* [64] -> opcode range [1328, 1344], node depth 9 */
|
||||||
|
1,
|
||||||
|
LEAF(48),
|
||||||
EMPTY_LEAF,
|
EMPTY_LEAF,
|
||||||
|
|
||||||
/* [70] -> opcode range [1408, 1536], node depth 7 */
|
/* [67] -> opcode range [1408, 1536], node depth 7 */
|
||||||
|
1,
|
||||||
|
70,
|
||||||
|
EMPTY_LEAF,
|
||||||
|
|
||||||
|
/* [70] -> opcode range [1408, 1472], node depth 8 */
|
||||||
1,
|
1,
|
||||||
73,
|
73,
|
||||||
EMPTY_LEAF,
|
EMPTY_LEAF,
|
||||||
|
|
||||||
/* [73] -> opcode range [1408, 1472], node depth 8 */
|
/* [73] -> opcode range [1408, 1440], node depth 9 */
|
||||||
1,
|
|
||||||
76,
|
|
||||||
EMPTY_LEAF,
|
|
||||||
|
|
||||||
/* [76] -> opcode range [1408, 1440], node depth 9 */
|
|
||||||
2,
|
2,
|
||||||
EMPTY_LEAF,
|
EMPTY_LEAF,
|
||||||
LEAF(48),
|
|
||||||
LEAF(56),
|
LEAF(56),
|
||||||
|
LEAF(64),
|
||||||
EMPTY_LEAF,
|
EMPTY_LEAF,
|
||||||
|
|
||||||
/* [81] -> opcode range [4096, 6144], node depth 5 */
|
/* [78] -> opcode range [4096, 6144], node depth 5 */
|
||||||
2,
|
2,
|
||||||
|
83,
|
||||||
|
EMPTY_LEAF,
|
||||||
|
101,
|
||||||
|
EMPTY_LEAF,
|
||||||
|
|
||||||
|
/* [83] -> opcode range [4096, 4608], node depth 6 */
|
||||||
|
1,
|
||||||
86,
|
86,
|
||||||
EMPTY_LEAF,
|
EMPTY_LEAF,
|
||||||
104,
|
|
||||||
EMPTY_LEAF,
|
|
||||||
|
|
||||||
/* [86] -> opcode range [4096, 4608], node depth 6 */
|
/* [86] -> opcode range [4096, 4352], node depth 7 */
|
||||||
1,
|
1,
|
||||||
89,
|
89,
|
||||||
EMPTY_LEAF,
|
EMPTY_LEAF,
|
||||||
|
|
||||||
/* [89] -> opcode range [4096, 4352], node depth 7 */
|
/* [89] -> opcode range [4096, 4224], node depth 8 */
|
||||||
1,
|
1,
|
||||||
92,
|
92,
|
||||||
EMPTY_LEAF,
|
EMPTY_LEAF,
|
||||||
|
|
||||||
/* [92] -> opcode range [4096, 4224], node depth 8 */
|
/* [92] -> opcode range [4096, 4160], node depth 9 */
|
||||||
1,
|
1,
|
||||||
95,
|
95,
|
||||||
EMPTY_LEAF,
|
EMPTY_LEAF,
|
||||||
|
|
||||||
/* [95] -> opcode range [4096, 4160], node depth 9 */
|
/* [95] -> opcode range [4096, 4128], node depth 10 */
|
||||||
1,
|
1,
|
||||||
98,
|
98,
|
||||||
EMPTY_LEAF,
|
EMPTY_LEAF,
|
||||||
|
|
||||||
/* [98] -> opcode range [4096, 4128], node depth 10 */
|
/* [98] -> opcode range [4096, 4112], node depth 11 */
|
||||||
1,
|
|
||||||
101,
|
|
||||||
EMPTY_LEAF,
|
|
||||||
|
|
||||||
/* [101] -> opcode range [4096, 4112], node depth 11 */
|
|
||||||
1,
|
|
||||||
LEAF(64),
|
|
||||||
EMPTY_LEAF,
|
|
||||||
|
|
||||||
/* [104] -> opcode range [5120, 5632], node depth 6 */
|
|
||||||
1,
|
|
||||||
107,
|
|
||||||
EMPTY_LEAF,
|
|
||||||
|
|
||||||
/* [107] -> opcode range [5120, 5376], node depth 7 */
|
|
||||||
1,
|
|
||||||
110,
|
|
||||||
EMPTY_LEAF,
|
|
||||||
|
|
||||||
/* [110] -> opcode range [5120, 5248], node depth 8 */
|
|
||||||
1,
|
|
||||||
113,
|
|
||||||
EMPTY_LEAF,
|
|
||||||
|
|
||||||
/* [113] -> opcode range [5120, 5184], node depth 9 */
|
|
||||||
1,
|
|
||||||
EMPTY_LEAF,
|
|
||||||
116,
|
|
||||||
|
|
||||||
/* [116] -> opcode range [5152, 5184], node depth 10 */
|
|
||||||
1,
|
|
||||||
119,
|
|
||||||
EMPTY_LEAF,
|
|
||||||
|
|
||||||
/* [119] -> opcode range [5152, 5168], node depth 11 */
|
|
||||||
1,
|
1,
|
||||||
LEAF(72),
|
LEAF(72),
|
||||||
EMPTY_LEAF,
|
EMPTY_LEAF,
|
||||||
|
|
||||||
/* [122] -> opcode range [65536, 98304], node depth 2 */
|
/* [101] -> opcode range [5120, 5632], node depth 6 */
|
||||||
1,
|
1,
|
||||||
125,
|
104,
|
||||||
EMPTY_LEAF,
|
EMPTY_LEAF,
|
||||||
|
|
||||||
/* [125] -> opcode range [65536, 81920], node depth 3 */
|
/* [104] -> opcode range [5120, 5376], node depth 7 */
|
||||||
1,
|
1,
|
||||||
128,
|
107,
|
||||||
EMPTY_LEAF,
|
EMPTY_LEAF,
|
||||||
|
|
||||||
/* [128] -> opcode range [65536, 73728], node depth 4 */
|
/* [107] -> opcode range [5120, 5248], node depth 8 */
|
||||||
1,
|
1,
|
||||||
131,
|
110,
|
||||||
EMPTY_LEAF,
|
EMPTY_LEAF,
|
||||||
|
|
||||||
/* [131] -> opcode range [65536, 69632], node depth 5 */
|
/* [110] -> opcode range [5120, 5184], node depth 9 */
|
||||||
1,
|
1,
|
||||||
134,
|
EMPTY_LEAF,
|
||||||
|
113,
|
||||||
|
|
||||||
|
/* [113] -> opcode range [5152, 5184], node depth 10 */
|
||||||
|
1,
|
||||||
|
116,
|
||||||
EMPTY_LEAF,
|
EMPTY_LEAF,
|
||||||
|
|
||||||
/* [134] -> opcode range [65536, 67584], node depth 6 */
|
/* [116] -> opcode range [5152, 5168], node depth 11 */
|
||||||
1,
|
|
||||||
137,
|
|
||||||
EMPTY_LEAF,
|
|
||||||
|
|
||||||
/* [137] -> opcode range [65536, 66560], node depth 7 */
|
|
||||||
1,
|
|
||||||
140,
|
|
||||||
EMPTY_LEAF,
|
|
||||||
|
|
||||||
/* [140] -> opcode range [65536, 66048], node depth 8 */
|
|
||||||
1,
|
|
||||||
143,
|
|
||||||
EMPTY_LEAF,
|
|
||||||
|
|
||||||
/* [143] -> opcode range [65536, 65792], node depth 9 */
|
|
||||||
1,
|
|
||||||
146,
|
|
||||||
EMPTY_LEAF,
|
|
||||||
|
|
||||||
/* [146] -> opcode range [65536, 65664], node depth 10 */
|
|
||||||
1,
|
|
||||||
149,
|
|
||||||
EMPTY_LEAF,
|
|
||||||
|
|
||||||
/* [149] -> opcode range [65536, 65600], node depth 11 */
|
|
||||||
1,
|
|
||||||
152,
|
|
||||||
EMPTY_LEAF,
|
|
||||||
|
|
||||||
/* [152] -> opcode range [65536, 65568], node depth 12 */
|
|
||||||
1,
|
|
||||||
155,
|
|
||||||
EMPTY_LEAF,
|
|
||||||
|
|
||||||
/* [155] -> opcode range [65536, 65552], node depth 13 */
|
|
||||||
1,
|
1,
|
||||||
LEAF(80),
|
LEAF(80),
|
||||||
EMPTY_LEAF,
|
EMPTY_LEAF,
|
||||||
|
|
||||||
|
/* [119] -> opcode range [65536, 98304], node depth 2 */
|
||||||
|
1,
|
||||||
|
122,
|
||||||
|
EMPTY_LEAF,
|
||||||
|
|
||||||
|
/* [122] -> opcode range [65536, 81920], node depth 3 */
|
||||||
|
1,
|
||||||
|
125,
|
||||||
|
EMPTY_LEAF,
|
||||||
|
|
||||||
|
/* [125] -> opcode range [65536, 73728], node depth 4 */
|
||||||
|
1,
|
||||||
|
128,
|
||||||
|
EMPTY_LEAF,
|
||||||
|
|
||||||
|
/* [128] -> opcode range [65536, 69632], node depth 5 */
|
||||||
|
1,
|
||||||
|
131,
|
||||||
|
EMPTY_LEAF,
|
||||||
|
|
||||||
|
/* [131] -> opcode range [65536, 67584], node depth 6 */
|
||||||
|
1,
|
||||||
|
134,
|
||||||
|
EMPTY_LEAF,
|
||||||
|
|
||||||
|
/* [134] -> opcode range [65536, 66560], node depth 7 */
|
||||||
|
1,
|
||||||
|
137,
|
||||||
|
EMPTY_LEAF,
|
||||||
|
|
||||||
|
/* [137] -> opcode range [65536, 66048], node depth 8 */
|
||||||
|
1,
|
||||||
|
140,
|
||||||
|
EMPTY_LEAF,
|
||||||
|
|
||||||
|
/* [140] -> opcode range [65536, 65792], node depth 9 */
|
||||||
|
1,
|
||||||
|
143,
|
||||||
|
EMPTY_LEAF,
|
||||||
|
|
||||||
|
/* [143] -> opcode range [65536, 65664], node depth 10 */
|
||||||
|
1,
|
||||||
|
146,
|
||||||
|
EMPTY_LEAF,
|
||||||
|
|
||||||
|
/* [146] -> opcode range [65536, 65600], node depth 11 */
|
||||||
|
1,
|
||||||
|
149,
|
||||||
|
EMPTY_LEAF,
|
||||||
|
|
||||||
|
/* [149] -> opcode range [65536, 65568], node depth 12 */
|
||||||
|
1,
|
||||||
|
152,
|
||||||
|
EMPTY_LEAF,
|
||||||
|
|
||||||
|
/* [152] -> opcode range [65536, 65552], node depth 13 */
|
||||||
|
1,
|
||||||
|
LEAF(88),
|
||||||
|
EMPTY_LEAF,
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static const void *VendorPriv_function_table[88][2] = {
|
static const void *VendorPriv_function_table[96][2] = {
|
||||||
/* [ 0] = 8 */ {NULL, NULL},
|
/* [ 0] = 0 */ {NULL, NULL},
|
||||||
/* [ 1] = 9 */ {NULL, NULL},
|
/* [ 1] = 1 */ {__glXDisp_GetConvolutionFilterEXT, __glXDispSwap_GetConvolutionFilterEXT},
|
||||||
/* [ 2] = 10 */ {NULL, NULL},
|
/* [ 2] = 2 */ {__glXDisp_GetConvolutionParameterfvEXT, __glXDispSwap_GetConvolutionParameterfvEXT},
|
||||||
/* [ 3] = 11 */ {__glXDisp_AreTexturesResidentEXT, __glXDispSwap_AreTexturesResidentEXT},
|
/* [ 3] = 3 */ {__glXDisp_GetConvolutionParameterivEXT, __glXDispSwap_GetConvolutionParameterivEXT},
|
||||||
/* [ 4] = 12 */ {__glXDisp_DeleteTextures, __glXDispSwap_DeleteTextures},
|
/* [ 4] = 4 */ {__glXDisp_GetSeparableFilterEXT, __glXDispSwap_GetSeparableFilterEXT},
|
||||||
/* [ 5] = 13 */ {__glXDisp_GenTexturesEXT, __glXDispSwap_GenTexturesEXT},
|
/* [ 5] = 5 */ {__glXDisp_GetHistogramEXT, __glXDispSwap_GetHistogramEXT},
|
||||||
/* [ 6] = 14 */ {__glXDisp_IsTextureEXT, __glXDispSwap_IsTextureEXT},
|
/* [ 6] = 6 */ {__glXDisp_GetHistogramParameterfvEXT, __glXDispSwap_GetHistogramParameterfvEXT},
|
||||||
/* [ 7] = 15 */ {NULL, NULL},
|
/* [ 7] = 7 */ {__glXDisp_GetHistogramParameterivEXT, __glXDispSwap_GetHistogramParameterivEXT},
|
||||||
/* [ 8] = 1024 */ {__glXDisp_QueryContextInfoEXT, __glXDispSwap_QueryContextInfoEXT},
|
/* [ 8] = 8 */ {__glXDisp_GetMinmaxEXT, __glXDispSwap_GetMinmaxEXT},
|
||||||
/* [ 9] = 1025 */ {NULL, NULL},
|
/* [ 9] = 9 */ {__glXDisp_GetMinmaxParameterfvEXT, __glXDispSwap_GetMinmaxParameterfvEXT},
|
||||||
/* [ 10] = 1026 */ {NULL, NULL},
|
/* [ 10] = 10 */ {__glXDisp_GetMinmaxParameterivEXT, __glXDispSwap_GetMinmaxParameterivEXT},
|
||||||
/* [ 11] = 1027 */ {NULL, NULL},
|
/* [ 11] = 11 */ {__glXDisp_AreTexturesResidentEXT, __glXDispSwap_AreTexturesResidentEXT},
|
||||||
/* [ 12] = 1028 */ {NULL, NULL},
|
/* [ 12] = 12 */ {__glXDisp_DeleteTexturesEXT, __glXDispSwap_DeleteTexturesEXT},
|
||||||
/* [ 13] = 1029 */ {NULL, NULL},
|
/* [ 13] = 13 */ {__glXDisp_GenTexturesEXT, __glXDispSwap_GenTexturesEXT},
|
||||||
/* [ 14] = 1030 */ {NULL, NULL},
|
/* [ 14] = 14 */ {__glXDisp_IsTextureEXT, __glXDispSwap_IsTextureEXT},
|
||||||
/* [ 15] = 1031 */ {NULL, NULL},
|
/* [ 15] = 15 */ {NULL, NULL},
|
||||||
/* [ 16] = 1296 */ {__glXDisp_GetProgramEnvParameterfvARB, __glXDispSwap_GetProgramEnvParameterfvARB},
|
/* [ 16] = 1024 */ {__glXDisp_QueryContextInfoEXT, __glXDispSwap_QueryContextInfoEXT},
|
||||||
/* [ 17] = 1297 */ {__glXDisp_GetProgramEnvParameterdvARB, __glXDispSwap_GetProgramEnvParameterdvARB},
|
/* [ 17] = 1025 */ {NULL, NULL},
|
||||||
/* [ 18] = 1298 */ {__glXDisp_GetProgramivNV, __glXDispSwap_GetProgramivNV},
|
/* [ 18] = 1026 */ {NULL, NULL},
|
||||||
/* [ 19] = 1299 */ {__glXDisp_GetProgramStringNV, __glXDispSwap_GetProgramStringNV},
|
/* [ 19] = 1027 */ {NULL, NULL},
|
||||||
/* [ 20] = 1300 */ {__glXDisp_GetTrackMatrixivNV, __glXDispSwap_GetTrackMatrixivNV},
|
/* [ 20] = 1028 */ {NULL, NULL},
|
||||||
/* [ 21] = 1301 */ {__glXDisp_GetVertexAttribdvARB, __glXDispSwap_GetVertexAttribdvARB},
|
/* [ 21] = 1029 */ {NULL, NULL},
|
||||||
/* [ 22] = 1302 */ {__glXDisp_GetVertexAttribfvNV, __glXDispSwap_GetVertexAttribfvNV},
|
/* [ 22] = 1030 */ {NULL, NULL},
|
||||||
/* [ 23] = 1303 */ {__glXDisp_GetVertexAttribivNV, __glXDispSwap_GetVertexAttribivNV},
|
/* [ 23] = 1031 */ {NULL, NULL},
|
||||||
/* [ 24] = 1304 */ {__glXDisp_IsProgramNV, __glXDispSwap_IsProgramNV},
|
/* [ 24] = 1296 */ {__glXDisp_GetProgramEnvParameterfvARB, __glXDispSwap_GetProgramEnvParameterfvARB},
|
||||||
/* [ 25] = 1305 */ {__glXDisp_GetProgramLocalParameterfvARB, __glXDispSwap_GetProgramLocalParameterfvARB},
|
/* [ 25] = 1297 */ {__glXDisp_GetProgramEnvParameterdvARB, __glXDispSwap_GetProgramEnvParameterdvARB},
|
||||||
/* [ 26] = 1306 */ {__glXDisp_GetProgramLocalParameterdvARB, __glXDispSwap_GetProgramLocalParameterdvARB},
|
/* [ 26] = 1298 */ {__glXDisp_GetProgramivNV, __glXDispSwap_GetProgramivNV},
|
||||||
/* [ 27] = 1307 */ {__glXDisp_GetProgramivARB, __glXDispSwap_GetProgramivARB},
|
/* [ 27] = 1299 */ {__glXDisp_GetProgramStringNV, __glXDispSwap_GetProgramStringNV},
|
||||||
/* [ 28] = 1308 */ {__glXDisp_GetProgramStringARB, __glXDispSwap_GetProgramStringARB},
|
/* [ 28] = 1300 */ {__glXDisp_GetTrackMatrixivNV, __glXDispSwap_GetTrackMatrixivNV},
|
||||||
/* [ 29] = 1309 */ {NULL, NULL},
|
/* [ 29] = 1301 */ {__glXDisp_GetVertexAttribdvARB, __glXDispSwap_GetVertexAttribdvARB},
|
||||||
/* [ 30] = 1310 */ {__glXDisp_GetProgramNamedParameterfvNV, __glXDispSwap_GetProgramNamedParameterfvNV},
|
/* [ 30] = 1302 */ {__glXDisp_GetVertexAttribfvNV, __glXDispSwap_GetVertexAttribfvNV},
|
||||||
/* [ 31] = 1311 */ {__glXDisp_GetProgramNamedParameterdvNV, __glXDispSwap_GetProgramNamedParameterdvNV},
|
/* [ 31] = 1303 */ {__glXDisp_GetVertexAttribivNV, __glXDispSwap_GetVertexAttribivNV},
|
||||||
/* [ 32] = 1288 */ {NULL, NULL},
|
/* [ 32] = 1304 */ {__glXDisp_IsProgramNV, __glXDispSwap_IsProgramNV},
|
||||||
/* [ 33] = 1289 */ {NULL, NULL},
|
/* [ 33] = 1305 */ {__glXDisp_GetProgramLocalParameterfvARB, __glXDispSwap_GetProgramLocalParameterfvARB},
|
||||||
/* [ 34] = 1290 */ {NULL, NULL},
|
/* [ 34] = 1306 */ {__glXDisp_GetProgramLocalParameterdvARB, __glXDispSwap_GetProgramLocalParameterdvARB},
|
||||||
/* [ 35] = 1291 */ {NULL, NULL},
|
/* [ 35] = 1307 */ {__glXDisp_GetProgramivARB, __glXDispSwap_GetProgramivARB},
|
||||||
/* [ 36] = 1292 */ {NULL, NULL},
|
/* [ 36] = 1308 */ {__glXDisp_GetProgramStringARB, __glXDispSwap_GetProgramStringARB},
|
||||||
/* [ 37] = 1293 */ {__glXDisp_AreProgramsResidentNV, __glXDispSwap_AreProgramsResidentNV},
|
/* [ 37] = 1309 */ {NULL, NULL},
|
||||||
/* [ 38] = 1294 */ {__glXDisp_DeleteProgramsNV, __glXDispSwap_DeleteProgramsNV},
|
/* [ 38] = 1310 */ {__glXDisp_GetProgramNamedParameterfvNV, __glXDispSwap_GetProgramNamedParameterfvNV},
|
||||||
/* [ 39] = 1295 */ {__glXDisp_GenProgramsNV, __glXDispSwap_GenProgramsNV},
|
/* [ 39] = 1311 */ {__glXDisp_GetProgramNamedParameterdvNV, __glXDispSwap_GetProgramNamedParameterdvNV},
|
||||||
/* [ 40] = 1328 */ {NULL, NULL},
|
/* [ 40] = 1288 */ {NULL, NULL},
|
||||||
/* [ 41] = 1329 */ {NULL, NULL},
|
/* [ 41] = 1289 */ {NULL, NULL},
|
||||||
/* [ 42] = 1330 */ {__glXDisp_BindTexImageEXT, __glXDispSwap_BindTexImageEXT},
|
/* [ 42] = 1290 */ {NULL, NULL},
|
||||||
/* [ 43] = 1331 */ {__glXDisp_ReleaseTexImageEXT, __glXDispSwap_ReleaseTexImageEXT},
|
/* [ 43] = 1291 */ {NULL, NULL},
|
||||||
/* [ 44] = 1332 */ {NULL, NULL},
|
/* [ 44] = 1292 */ {NULL, NULL},
|
||||||
/* [ 45] = 1333 */ {NULL, NULL},
|
/* [ 45] = 1293 */ {__glXDisp_AreProgramsResidentNV, __glXDispSwap_AreProgramsResidentNV},
|
||||||
/* [ 46] = 1334 */ {NULL, NULL},
|
/* [ 46] = 1294 */ {__glXDisp_DeleteProgramsNV, __glXDispSwap_DeleteProgramsNV},
|
||||||
/* [ 47] = 1335 */ {NULL, NULL},
|
/* [ 47] = 1295 */ {__glXDisp_GenProgramsNV, __glXDispSwap_GenProgramsNV},
|
||||||
/* [ 48] = 1416 */ {NULL, NULL},
|
/* [ 48] = 1328 */ {NULL, NULL},
|
||||||
/* [ 49] = 1417 */ {NULL, NULL},
|
/* [ 49] = 1329 */ {NULL, NULL},
|
||||||
/* [ 50] = 1418 */ {NULL, NULL},
|
/* [ 50] = 1330 */ {__glXDisp_BindTexImageEXT, __glXDispSwap_BindTexImageEXT},
|
||||||
/* [ 51] = 1419 */ {NULL, NULL},
|
/* [ 51] = 1331 */ {__glXDisp_ReleaseTexImageEXT, __glXDispSwap_ReleaseTexImageEXT},
|
||||||
/* [ 52] = 1420 */ {NULL, NULL},
|
/* [ 52] = 1332 */ {NULL, NULL},
|
||||||
/* [ 53] = 1421 */ {NULL, NULL},
|
/* [ 53] = 1333 */ {NULL, NULL},
|
||||||
/* [ 54] = 1422 */ {__glXDisp_IsRenderbufferEXT, __glXDispSwap_IsRenderbufferEXT},
|
/* [ 54] = 1334 */ {NULL, NULL},
|
||||||
/* [ 55] = 1423 */ {__glXDisp_GenRenderbuffersEXT, __glXDispSwap_GenRenderbuffersEXT},
|
/* [ 55] = 1335 */ {NULL, NULL},
|
||||||
/* [ 56] = 1424 */ {__glXDisp_GetRenderbufferParameterivEXT, __glXDispSwap_GetRenderbufferParameterivEXT},
|
/* [ 56] = 1416 */ {NULL, NULL},
|
||||||
/* [ 57] = 1425 */ {__glXDisp_IsFramebufferEXT, __glXDispSwap_IsFramebufferEXT},
|
/* [ 57] = 1417 */ {NULL, NULL},
|
||||||
/* [ 58] = 1426 */ {__glXDisp_GenFramebuffersEXT, __glXDispSwap_GenFramebuffersEXT},
|
/* [ 58] = 1418 */ {NULL, NULL},
|
||||||
/* [ 59] = 1427 */ {__glXDisp_CheckFramebufferStatusEXT, __glXDispSwap_CheckFramebufferStatusEXT},
|
/* [ 59] = 1419 */ {NULL, NULL},
|
||||||
/* [ 60] = 1428 */ {__glXDisp_GetFramebufferAttachmentParameterivEXT, __glXDispSwap_GetFramebufferAttachmentParameterivEXT},
|
/* [ 60] = 1420 */ {NULL, NULL},
|
||||||
/* [ 61] = 1429 */ {NULL, NULL},
|
/* [ 61] = 1421 */ {NULL, NULL},
|
||||||
/* [ 62] = 1430 */ {NULL, NULL},
|
/* [ 62] = 1422 */ {__glXDisp_IsRenderbufferEXT, __glXDispSwap_IsRenderbufferEXT},
|
||||||
/* [ 63] = 1431 */ {NULL, NULL},
|
/* [ 63] = 1423 */ {__glXDisp_GenRenderbuffersEXT, __glXDispSwap_GenRenderbuffersEXT},
|
||||||
/* [ 64] = 4096 */ {NULL, NULL},
|
/* [ 64] = 1424 */ {__glXDisp_GetRenderbufferParameterivEXT, __glXDispSwap_GetRenderbufferParameterivEXT},
|
||||||
/* [ 65] = 4097 */ {NULL, NULL},
|
/* [ 65] = 1425 */ {__glXDisp_IsFramebufferEXT, __glXDispSwap_IsFramebufferEXT},
|
||||||
/* [ 66] = 4098 */ {__glXDisp_GetColorTableSGI, __glXDispSwap_GetColorTableSGI},
|
/* [ 66] = 1426 */ {__glXDisp_GenFramebuffersEXT, __glXDispSwap_GenFramebuffersEXT},
|
||||||
/* [ 67] = 4099 */ {__glXDisp_GetColorTableParameterfvSGI, __glXDispSwap_GetColorTableParameterfvSGI},
|
/* [ 67] = 1427 */ {__glXDisp_CheckFramebufferStatusEXT, __glXDispSwap_CheckFramebufferStatusEXT},
|
||||||
/* [ 68] = 4100 */ {__glXDisp_GetColorTableParameterivSGI, __glXDispSwap_GetColorTableParameterivSGI},
|
/* [ 68] = 1428 */ {__glXDisp_GetFramebufferAttachmentParameterivEXT, __glXDispSwap_GetFramebufferAttachmentParameterivEXT},
|
||||||
/* [ 69] = 4101 */ {NULL, NULL},
|
/* [ 69] = 1429 */ {NULL, NULL},
|
||||||
/* [ 70] = 4102 */ {NULL, NULL},
|
/* [ 70] = 1430 */ {NULL, NULL},
|
||||||
/* [ 71] = 4103 */ {NULL, NULL},
|
/* [ 71] = 1431 */ {NULL, NULL},
|
||||||
/* [ 72] = 5152 */ {NULL, NULL},
|
/* [ 72] = 4096 */ {NULL, NULL},
|
||||||
/* [ 73] = 5153 */ {NULL, NULL},
|
/* [ 73] = 4097 */ {NULL, NULL},
|
||||||
/* [ 74] = 5154 */ {__glXDisp_CopySubBufferMESA, __glXDispSwap_CopySubBufferMESA},
|
/* [ 74] = 4098 */ {__glXDisp_GetColorTableSGI, __glXDispSwap_GetColorTableSGI},
|
||||||
/* [ 75] = 5155 */ {NULL, NULL},
|
/* [ 75] = 4099 */ {__glXDisp_GetColorTableParameterfvSGI, __glXDispSwap_GetColorTableParameterfvSGI},
|
||||||
/* [ 76] = 5156 */ {NULL, NULL},
|
/* [ 76] = 4100 */ {__glXDisp_GetColorTableParameterivSGI, __glXDispSwap_GetColorTableParameterivSGI},
|
||||||
/* [ 77] = 5157 */ {NULL, NULL},
|
/* [ 77] = 4101 */ {NULL, NULL},
|
||||||
/* [ 78] = 5158 */ {NULL, NULL},
|
/* [ 78] = 4102 */ {NULL, NULL},
|
||||||
/* [ 79] = 5159 */ {NULL, NULL},
|
/* [ 79] = 4103 */ {NULL, NULL},
|
||||||
/* [ 80] = 65536 */ {__glXDisp_SwapIntervalSGI, __glXDispSwap_SwapIntervalSGI},
|
/* [ 80] = 5152 */ {NULL, NULL},
|
||||||
/* [ 81] = 65537 */ {__glXDisp_MakeCurrentReadSGI, __glXDispSwap_MakeCurrentReadSGI},
|
/* [ 81] = 5153 */ {NULL, NULL},
|
||||||
/* [ 82] = 65538 */ {NULL, NULL},
|
/* [ 82] = 5154 */ {__glXDisp_CopySubBufferMESA, __glXDispSwap_CopySubBufferMESA},
|
||||||
/* [ 83] = 65539 */ {NULL, NULL},
|
/* [ 83] = 5155 */ {NULL, NULL},
|
||||||
/* [ 84] = 65540 */ {__glXDisp_GetFBConfigsSGIX, __glXDispSwap_GetFBConfigsSGIX},
|
/* [ 84] = 5156 */ {NULL, NULL},
|
||||||
/* [ 85] = 65541 */ {__glXDisp_CreateContextWithConfigSGIX, __glXDispSwap_CreateContextWithConfigSGIX},
|
/* [ 85] = 5157 */ {NULL, NULL},
|
||||||
/* [ 86] = 65542 */ {__glXDisp_CreateGLXPixmapWithConfigSGIX, __glXDispSwap_CreateGLXPixmapWithConfigSGIX},
|
/* [ 86] = 5158 */ {NULL, NULL},
|
||||||
/* [ 87] = 65543 */ {NULL, NULL},
|
/* [ 87] = 5159 */ {NULL, NULL},
|
||||||
|
/* [ 88] = 65536 */ {__glXDisp_SwapIntervalSGI, __glXDispSwap_SwapIntervalSGI},
|
||||||
|
/* [ 89] = 65537 */ {__glXDisp_MakeCurrentReadSGI, __glXDispSwap_MakeCurrentReadSGI},
|
||||||
|
/* [ 90] = 65538 */ {NULL, NULL},
|
||||||
|
/* [ 91] = 65539 */ {NULL, NULL},
|
||||||
|
/* [ 92] = 65540 */ {__glXDisp_GetFBConfigsSGIX, __glXDispSwap_GetFBConfigsSGIX},
|
||||||
|
/* [ 93] = 65541 */ {__glXDisp_CreateContextWithConfigSGIX, __glXDispSwap_CreateContextWithConfigSGIX},
|
||||||
|
/* [ 94] = 65542 */ {__glXDisp_CreateGLXPixmapWithConfigSGIX, __glXDispSwap_CreateGLXPixmapWithConfigSGIX},
|
||||||
|
/* [ 95] = 65543 */ {NULL, NULL},
|
||||||
};
|
};
|
||||||
|
|
||||||
const struct __glXDispatchInfo VendorPriv_dispatch_info = {
|
const struct __glXDispatchInfo VendorPriv_dispatch_info = {
|
||||||
|
|
|
@ -195,7 +195,7 @@ int __glXDisp_GetPolygonStipple(__GLXclientState *cl, GLbyte *pc)
|
||||||
return Success;
|
return Success;
|
||||||
}
|
}
|
||||||
|
|
||||||
int __glXDisp_GetSeparableFilter(__GLXclientState *cl, GLbyte *pc)
|
static int GetSeparableFilter(__GLXclientState *cl, GLbyte *pc, GLXContextTag tag)
|
||||||
{
|
{
|
||||||
GLint compsize, compsize2;
|
GLint compsize, compsize2;
|
||||||
GLenum format, type, target;
|
GLenum format, type, target;
|
||||||
|
@ -206,12 +206,11 @@ int __glXDisp_GetSeparableFilter(__GLXclientState *cl, GLbyte *pc)
|
||||||
char *answer, answerBuffer[200];
|
char *answer, answerBuffer[200];
|
||||||
GLint width=0, height=0;
|
GLint width=0, height=0;
|
||||||
|
|
||||||
cx = __glXForceCurrent(cl, __GLX_GET_SINGLE_CONTEXT_TAG(pc), &error);
|
cx = __glXForceCurrent(cl, tag, &error);
|
||||||
if (!cx) {
|
if (!cx) {
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
pc += __GLX_SINGLE_HDR_SIZE;
|
|
||||||
format = *(GLenum *)(pc + 4);
|
format = *(GLenum *)(pc + 4);
|
||||||
type = *(GLenum *)(pc + 8);
|
type = *(GLenum *)(pc + 8);
|
||||||
target = *(GLenum *)(pc + 0);
|
target = *(GLenum *)(pc + 0);
|
||||||
|
@ -220,8 +219,8 @@ int __glXDisp_GetSeparableFilter(__GLXclientState *cl, GLbyte *pc)
|
||||||
/* target must be SEPARABLE_2D, however I guess we can let the GL
|
/* target must be SEPARABLE_2D, however I guess we can let the GL
|
||||||
barf on this one.... */
|
barf on this one.... */
|
||||||
|
|
||||||
CALL_GetConvolutionParameteriv( GET_DISPATCH(), (target, GL_CONVOLUTION_WIDTH, &width) );
|
CALL_GetConvolutionParameteriv(GET_DISPATCH(), (target, GL_CONVOLUTION_WIDTH, &width));
|
||||||
CALL_GetConvolutionParameteriv( GET_DISPATCH(), (target, GL_CONVOLUTION_HEIGHT, &height) );
|
CALL_GetConvolutionParameteriv(GET_DISPATCH(), (target, GL_CONVOLUTION_HEIGHT, &height));
|
||||||
/*
|
/*
|
||||||
* The two queries above might fail if we're in a state where queries
|
* The two queries above might fail if we're in a state where queries
|
||||||
* are illegal, but then width and height would still be zero anyway.
|
* are illegal, but then width and height would still be zero anyway.
|
||||||
|
@ -234,7 +233,7 @@ int __glXDisp_GetSeparableFilter(__GLXclientState *cl, GLbyte *pc)
|
||||||
compsize = __GLX_PAD(compsize);
|
compsize = __GLX_PAD(compsize);
|
||||||
compsize2 = __GLX_PAD(compsize2);
|
compsize2 = __GLX_PAD(compsize2);
|
||||||
|
|
||||||
CALL_PixelStorei( GET_DISPATCH(), (GL_PACK_SWAP_BYTES, swapBytes) );
|
CALL_PixelStorei(GET_DISPATCH(), (GL_PACK_SWAP_BYTES, swapBytes));
|
||||||
__GLX_GET_ANSWER_BUFFER(answer,cl,compsize + compsize2,1);
|
__GLX_GET_ANSWER_BUFFER(answer,cl,compsize + compsize2,1);
|
||||||
__glXClearErrorOccured();
|
__glXClearErrorOccured();
|
||||||
CALL_GetSeparableFilter( GET_DISPATCH(), (
|
CALL_GetSeparableFilter( GET_DISPATCH(), (
|
||||||
|
@ -260,7 +259,22 @@ int __glXDisp_GetSeparableFilter(__GLXclientState *cl, GLbyte *pc)
|
||||||
return Success;
|
return Success;
|
||||||
}
|
}
|
||||||
|
|
||||||
int __glXDisp_GetConvolutionFilter(__GLXclientState *cl, GLbyte *pc)
|
int __glXDisp_GetSeparableFilter(__GLXclientState *cl, GLbyte *pc)
|
||||||
|
{
|
||||||
|
const GLXContextTag tag = __GLX_GET_SINGLE_CONTEXT_TAG(pc);
|
||||||
|
|
||||||
|
return GetSeparableFilter(cl, pc + __GLX_SINGLE_HDR_SIZE, tag);
|
||||||
|
}
|
||||||
|
|
||||||
|
int __glXDisp_GetSeparableFilterEXT(__GLXclientState *cl, GLbyte *pc)
|
||||||
|
{
|
||||||
|
const GLXContextTag tag = __GLX_GET_VENDPRIV_CONTEXT_TAG(pc);
|
||||||
|
|
||||||
|
return GetSeparableFilter(cl, pc + __GLX_VENDPRIV_HDR_SIZE, tag);
|
||||||
|
}
|
||||||
|
|
||||||
|
static int GetConvolutionFilter(__GLXclientState *cl, GLbyte *pc,
|
||||||
|
GLXContextTag tag)
|
||||||
{
|
{
|
||||||
GLint compsize;
|
GLint compsize;
|
||||||
GLenum format, type, target;
|
GLenum format, type, target;
|
||||||
|
@ -271,22 +285,23 @@ int __glXDisp_GetConvolutionFilter(__GLXclientState *cl, GLbyte *pc)
|
||||||
char *answer, answerBuffer[200];
|
char *answer, answerBuffer[200];
|
||||||
GLint width=0, height=0;
|
GLint width=0, height=0;
|
||||||
|
|
||||||
cx = __glXForceCurrent(cl, __GLX_GET_SINGLE_CONTEXT_TAG(pc), &error);
|
cx = __glXForceCurrent(cl, tag, &error);
|
||||||
if (!cx) {
|
if (!cx) {
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
pc += __GLX_SINGLE_HDR_SIZE;
|
|
||||||
format = *(GLenum *)(pc + 4);
|
format = *(GLenum *)(pc + 4);
|
||||||
type = *(GLenum *)(pc + 8);
|
type = *(GLenum *)(pc + 8);
|
||||||
target = *(GLenum *)(pc + 0);
|
target = *(GLenum *)(pc + 0);
|
||||||
swapBytes = *(GLboolean *)(pc + 12);
|
swapBytes = *(GLboolean *)(pc + 12);
|
||||||
|
|
||||||
CALL_GetConvolutionParameteriv( GET_DISPATCH(), (target, GL_CONVOLUTION_WIDTH, &width) );
|
CALL_GetConvolutionParameteriv(GET_DISPATCH(),
|
||||||
|
(target, GL_CONVOLUTION_WIDTH, &width));
|
||||||
if (target == GL_CONVOLUTION_1D) {
|
if (target == GL_CONVOLUTION_1D) {
|
||||||
height = 1;
|
height = 1;
|
||||||
} else {
|
} else {
|
||||||
CALL_GetConvolutionParameteriv( GET_DISPATCH(), (target, GL_CONVOLUTION_HEIGHT, &height) );
|
CALL_GetConvolutionParameteriv(GET_DISPATCH(),
|
||||||
|
(target, GL_CONVOLUTION_HEIGHT, &height));
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
* The two queries above might fail if we're in a state where queries
|
* The two queries above might fail if we're in a state where queries
|
||||||
|
@ -295,7 +310,7 @@ int __glXDisp_GetConvolutionFilter(__GLXclientState *cl, GLbyte *pc)
|
||||||
compsize = __glGetTexImage_size(target,1,format,type,width,height,1);
|
compsize = __glGetTexImage_size(target,1,format,type,width,height,1);
|
||||||
if (compsize < 0) compsize = 0;
|
if (compsize < 0) compsize = 0;
|
||||||
|
|
||||||
CALL_PixelStorei( GET_DISPATCH(), (GL_PACK_SWAP_BYTES, swapBytes) );
|
CALL_PixelStorei(GET_DISPATCH(), (GL_PACK_SWAP_BYTES, swapBytes));
|
||||||
__GLX_GET_ANSWER_BUFFER(answer,cl,compsize,1);
|
__GLX_GET_ANSWER_BUFFER(answer,cl,compsize,1);
|
||||||
__glXClearErrorOccured();
|
__glXClearErrorOccured();
|
||||||
CALL_GetConvolutionFilter( GET_DISPATCH(), (
|
CALL_GetConvolutionFilter( GET_DISPATCH(), (
|
||||||
|
@ -319,7 +334,21 @@ int __glXDisp_GetConvolutionFilter(__GLXclientState *cl, GLbyte *pc)
|
||||||
return Success;
|
return Success;
|
||||||
}
|
}
|
||||||
|
|
||||||
int __glXDisp_GetHistogram(__GLXclientState *cl, GLbyte *pc)
|
int __glXDisp_GetConvolutionFilter(__GLXclientState *cl, GLbyte *pc)
|
||||||
|
{
|
||||||
|
const GLXContextTag tag = __GLX_GET_SINGLE_CONTEXT_TAG(pc);
|
||||||
|
|
||||||
|
return GetConvolutionFilter(cl, pc + __GLX_SINGLE_HDR_SIZE, tag);
|
||||||
|
}
|
||||||
|
|
||||||
|
int __glXDisp_GetConvolutionFilterEXT(__GLXclientState *cl, GLbyte *pc)
|
||||||
|
{
|
||||||
|
const GLXContextTag tag = __GLX_GET_VENDPRIV_CONTEXT_TAG(pc);
|
||||||
|
|
||||||
|
return GetConvolutionFilter(cl, pc + __GLX_VENDPRIV_HDR_SIZE, tag);
|
||||||
|
}
|
||||||
|
|
||||||
|
static int GetHistogram(__GLXclientState *cl, GLbyte *pc, GLXContextTag tag)
|
||||||
{
|
{
|
||||||
GLint compsize;
|
GLint compsize;
|
||||||
GLenum format, type, target;
|
GLenum format, type, target;
|
||||||
|
@ -330,19 +359,19 @@ int __glXDisp_GetHistogram(__GLXclientState *cl, GLbyte *pc)
|
||||||
char *answer, answerBuffer[200];
|
char *answer, answerBuffer[200];
|
||||||
GLint width=0;
|
GLint width=0;
|
||||||
|
|
||||||
cx = __glXForceCurrent(cl, __GLX_GET_SINGLE_CONTEXT_TAG(pc), &error);
|
cx = __glXForceCurrent(cl, tag, &error);
|
||||||
if (!cx) {
|
if (!cx) {
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
pc += __GLX_SINGLE_HDR_SIZE;
|
|
||||||
format = *(GLenum *)(pc + 4);
|
format = *(GLenum *)(pc + 4);
|
||||||
type = *(GLenum *)(pc + 8);
|
type = *(GLenum *)(pc + 8);
|
||||||
target = *(GLenum *)(pc + 0);
|
target = *(GLenum *)(pc + 0);
|
||||||
swapBytes = *(GLboolean *)(pc + 12);
|
swapBytes = *(GLboolean *)(pc + 12);
|
||||||
reset = *(GLboolean *)(pc + 13);
|
reset = *(GLboolean *)(pc + 13);
|
||||||
|
|
||||||
CALL_GetHistogramParameteriv( GET_DISPATCH(), (target, GL_HISTOGRAM_WIDTH, &width) );
|
CALL_GetHistogramParameteriv(GET_DISPATCH(),
|
||||||
|
(target, GL_HISTOGRAM_WIDTH, &width));
|
||||||
/*
|
/*
|
||||||
* The one query above might fail if we're in a state where queries
|
* The one query above might fail if we're in a state where queries
|
||||||
* are illegal, but then width would still be zero anyway.
|
* are illegal, but then width would still be zero anyway.
|
||||||
|
@ -350,10 +379,10 @@ int __glXDisp_GetHistogram(__GLXclientState *cl, GLbyte *pc)
|
||||||
compsize = __glGetTexImage_size(target,1,format,type,width,1,1);
|
compsize = __glGetTexImage_size(target,1,format,type,width,1,1);
|
||||||
if (compsize < 0) compsize = 0;
|
if (compsize < 0) compsize = 0;
|
||||||
|
|
||||||
CALL_PixelStorei( GET_DISPATCH(), (GL_PACK_SWAP_BYTES, swapBytes) );
|
CALL_PixelStorei(GET_DISPATCH(), (GL_PACK_SWAP_BYTES, swapBytes));
|
||||||
__GLX_GET_ANSWER_BUFFER(answer,cl,compsize,1);
|
__GLX_GET_ANSWER_BUFFER(answer,cl,compsize,1);
|
||||||
__glXClearErrorOccured();
|
__glXClearErrorOccured();
|
||||||
CALL_GetHistogram( GET_DISPATCH(), (target, reset, format, type, answer) );
|
CALL_GetHistogram(GET_DISPATCH(), (target, reset, format, type, answer));
|
||||||
|
|
||||||
if (__glXErrorOccured()) {
|
if (__glXErrorOccured()) {
|
||||||
__GLX_BEGIN_REPLY(0);
|
__GLX_BEGIN_REPLY(0);
|
||||||
|
@ -368,7 +397,21 @@ int __glXDisp_GetHistogram(__GLXclientState *cl, GLbyte *pc)
|
||||||
return Success;
|
return Success;
|
||||||
}
|
}
|
||||||
|
|
||||||
int __glXDisp_GetMinmax(__GLXclientState *cl, GLbyte *pc)
|
int __glXDisp_GetHistogram(__GLXclientState *cl, GLbyte *pc)
|
||||||
|
{
|
||||||
|
const GLXContextTag tag = __GLX_GET_SINGLE_CONTEXT_TAG(pc);
|
||||||
|
|
||||||
|
return GetHistogram(cl, pc + __GLX_SINGLE_HDR_SIZE, tag);
|
||||||
|
}
|
||||||
|
|
||||||
|
int __glXDisp_GetHistogramEXT(__GLXclientState *cl, GLbyte *pc)
|
||||||
|
{
|
||||||
|
const GLXContextTag tag = __GLX_GET_VENDPRIV_CONTEXT_TAG(pc);
|
||||||
|
|
||||||
|
return GetHistogram(cl, pc + __GLX_VENDPRIV_HDR_SIZE, tag);
|
||||||
|
}
|
||||||
|
|
||||||
|
static int GetMinmax(__GLXclientState *cl, GLbyte *pc, GLXContextTag tag)
|
||||||
{
|
{
|
||||||
GLint compsize;
|
GLint compsize;
|
||||||
GLenum format, type, target;
|
GLenum format, type, target;
|
||||||
|
@ -378,12 +421,11 @@ int __glXDisp_GetMinmax(__GLXclientState *cl, GLbyte *pc)
|
||||||
int error;
|
int error;
|
||||||
char *answer, answerBuffer[200];
|
char *answer, answerBuffer[200];
|
||||||
|
|
||||||
cx = __glXForceCurrent(cl, __GLX_GET_SINGLE_CONTEXT_TAG(pc), &error);
|
cx = __glXForceCurrent(cl, tag, &error);
|
||||||
if (!cx) {
|
if (!cx) {
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
pc += __GLX_SINGLE_HDR_SIZE;
|
|
||||||
format = *(GLenum *)(pc + 4);
|
format = *(GLenum *)(pc + 4);
|
||||||
type = *(GLenum *)(pc + 8);
|
type = *(GLenum *)(pc + 8);
|
||||||
target = *(GLenum *)(pc + 0);
|
target = *(GLenum *)(pc + 0);
|
||||||
|
@ -393,10 +435,10 @@ int __glXDisp_GetMinmax(__GLXclientState *cl, GLbyte *pc)
|
||||||
compsize = __glGetTexImage_size(target,1,format,type,2,1,1);
|
compsize = __glGetTexImage_size(target,1,format,type,2,1,1);
|
||||||
if (compsize < 0) compsize = 0;
|
if (compsize < 0) compsize = 0;
|
||||||
|
|
||||||
CALL_PixelStorei( GET_DISPATCH(), (GL_PACK_SWAP_BYTES, swapBytes) );
|
CALL_PixelStorei(GET_DISPATCH(), (GL_PACK_SWAP_BYTES, swapBytes));
|
||||||
__GLX_GET_ANSWER_BUFFER(answer,cl,compsize,1);
|
__GLX_GET_ANSWER_BUFFER(answer,cl,compsize,1);
|
||||||
__glXClearErrorOccured();
|
__glXClearErrorOccured();
|
||||||
CALL_GetMinmax( GET_DISPATCH(), (target, reset, format, type, answer) );
|
CALL_GetMinmax(GET_DISPATCH(), (target, reset, format, type, answer));
|
||||||
|
|
||||||
if (__glXErrorOccured()) {
|
if (__glXErrorOccured()) {
|
||||||
__GLX_BEGIN_REPLY(0);
|
__GLX_BEGIN_REPLY(0);
|
||||||
|
@ -410,7 +452,21 @@ int __glXDisp_GetMinmax(__GLXclientState *cl, GLbyte *pc)
|
||||||
return Success;
|
return Success;
|
||||||
}
|
}
|
||||||
|
|
||||||
int __glXDisp_GetColorTable(__GLXclientState *cl, GLbyte *pc)
|
int __glXDisp_GetMinmax(__GLXclientState *cl, GLbyte *pc)
|
||||||
|
{
|
||||||
|
const GLXContextTag tag = __GLX_GET_SINGLE_CONTEXT_TAG(pc);
|
||||||
|
|
||||||
|
return GetMinmax(cl, pc + __GLX_SINGLE_HDR_SIZE, tag);
|
||||||
|
}
|
||||||
|
|
||||||
|
int __glXDisp_GetMinmaxEXT(__GLXclientState *cl, GLbyte *pc)
|
||||||
|
{
|
||||||
|
const GLXContextTag tag = __GLX_GET_VENDPRIV_CONTEXT_TAG(pc);
|
||||||
|
|
||||||
|
return GetMinmax(cl, pc + __GLX_VENDPRIV_HDR_SIZE, tag);
|
||||||
|
}
|
||||||
|
|
||||||
|
static int GetColorTable(__GLXclientState *cl, GLbyte *pc, GLXContextTag tag)
|
||||||
{
|
{
|
||||||
GLint compsize;
|
GLint compsize;
|
||||||
GLenum format, type, target;
|
GLenum format, type, target;
|
||||||
|
@ -421,18 +477,18 @@ int __glXDisp_GetColorTable(__GLXclientState *cl, GLbyte *pc)
|
||||||
char *answer, answerBuffer[200];
|
char *answer, answerBuffer[200];
|
||||||
GLint width=0;
|
GLint width=0;
|
||||||
|
|
||||||
cx = __glXForceCurrent(cl, __GLX_GET_SINGLE_CONTEXT_TAG(pc), &error);
|
cx = __glXForceCurrent(cl, tag, &error);
|
||||||
if (!cx) {
|
if (!cx) {
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
pc += __GLX_SINGLE_HDR_SIZE;
|
|
||||||
target = *(GLenum *)(pc + 0);
|
target = *(GLenum *)(pc + 0);
|
||||||
format = *(GLenum *)(pc + 4);
|
format = *(GLenum *)(pc + 4);
|
||||||
type = *(GLenum *)(pc + 8);
|
type = *(GLenum *)(pc + 8);
|
||||||
swapBytes = *(GLboolean *)(pc + 12);
|
swapBytes = *(GLboolean *)(pc + 12);
|
||||||
|
|
||||||
CALL_GetColorTableParameteriv( GET_DISPATCH(), (target, GL_COLOR_TABLE_WIDTH, &width) );
|
CALL_GetColorTableParameteriv(GET_DISPATCH(),
|
||||||
|
(target, GL_COLOR_TABLE_WIDTH, &width));
|
||||||
/*
|
/*
|
||||||
* The one query above might fail if we're in a state where queries
|
* The one query above might fail if we're in a state where queries
|
||||||
* are illegal, but then width would still be zero anyway.
|
* are illegal, but then width would still be zero anyway.
|
||||||
|
@ -440,7 +496,7 @@ int __glXDisp_GetColorTable(__GLXclientState *cl, GLbyte *pc)
|
||||||
compsize = __glGetTexImage_size(target,1,format,type,width,1,1);
|
compsize = __glGetTexImage_size(target,1,format,type,width,1,1);
|
||||||
if (compsize < 0) compsize = 0;
|
if (compsize < 0) compsize = 0;
|
||||||
|
|
||||||
CALL_PixelStorei( GET_DISPATCH(), (GL_PACK_SWAP_BYTES, swapBytes) );
|
CALL_PixelStorei(GET_DISPATCH(), (GL_PACK_SWAP_BYTES, swapBytes));
|
||||||
__GLX_GET_ANSWER_BUFFER(answer,cl,compsize,1);
|
__GLX_GET_ANSWER_BUFFER(answer,cl,compsize,1);
|
||||||
__glXClearErrorOccured();
|
__glXClearErrorOccured();
|
||||||
CALL_GetColorTable( GET_DISPATCH(), (
|
CALL_GetColorTable( GET_DISPATCH(), (
|
||||||
|
@ -463,55 +519,16 @@ int __glXDisp_GetColorTable(__GLXclientState *cl, GLbyte *pc)
|
||||||
return Success;
|
return Success;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int __glXDisp_GetColorTable(__GLXclientState *cl, GLbyte *pc)
|
||||||
|
{
|
||||||
|
const GLXContextTag tag = __GLX_GET_SINGLE_CONTEXT_TAG(pc);
|
||||||
|
|
||||||
|
return GetColorTable(cl, pc + __GLX_SINGLE_HDR_SIZE, tag);
|
||||||
|
}
|
||||||
|
|
||||||
int __glXDisp_GetColorTableSGI(__GLXclientState *cl, GLbyte *pc)
|
int __glXDisp_GetColorTableSGI(__GLXclientState *cl, GLbyte *pc)
|
||||||
{
|
{
|
||||||
GLint compsize;
|
const GLXContextTag tag = __GLX_GET_VENDPRIV_CONTEXT_TAG(pc);
|
||||||
GLenum format, type, target;
|
|
||||||
GLboolean swapBytes;
|
|
||||||
__GLXcontext *cx;
|
|
||||||
ClientPtr client = cl->client;
|
|
||||||
int error;
|
|
||||||
char *answer, answerBuffer[200];
|
|
||||||
GLint width=0;
|
|
||||||
|
|
||||||
cx = __glXForceCurrent(cl, __GLX_GET_SINGLE_CONTEXT_TAG(pc), &error);
|
return GetColorTable(cl, pc + __GLX_VENDPRIV_HDR_SIZE, tag);
|
||||||
if (!cx) {
|
|
||||||
return error;
|
|
||||||
}
|
|
||||||
|
|
||||||
pc += __GLX_VENDPRIV_HDR_SIZE;
|
|
||||||
target = *(GLenum *)(pc + 0);
|
|
||||||
format = *(GLenum *)(pc + 4);
|
|
||||||
type = *(GLenum *)(pc + 8);
|
|
||||||
swapBytes = *(GLboolean *)(pc + 12);
|
|
||||||
|
|
||||||
CALL_GetColorTableParameterivSGI( GET_DISPATCH(), (target, GL_COLOR_TABLE_WIDTH, &width) );
|
|
||||||
/*
|
|
||||||
* The one query above might fail if we're in a state where queries
|
|
||||||
* are illegal, but then width would still be zero anyway.
|
|
||||||
*/
|
|
||||||
compsize = __glGetTexImage_size(target,1,format,type,width,1,1);
|
|
||||||
if (compsize < 0) compsize = 0;
|
|
||||||
|
|
||||||
CALL_PixelStorei( GET_DISPATCH(), (GL_PACK_SWAP_BYTES, swapBytes) );
|
|
||||||
__GLX_GET_ANSWER_BUFFER(answer,cl,compsize,1);
|
|
||||||
__glXClearErrorOccured();
|
|
||||||
CALL_GetColorTableSGI( GET_DISPATCH(), (
|
|
||||||
*(GLenum *)(pc + 0),
|
|
||||||
*(GLenum *)(pc + 4),
|
|
||||||
*(GLenum *)(pc + 8),
|
|
||||||
answer
|
|
||||||
) );
|
|
||||||
|
|
||||||
if (__glXErrorOccured()) {
|
|
||||||
__GLX_BEGIN_REPLY(0);
|
|
||||||
__GLX_SEND_HEADER();
|
|
||||||
} else {
|
|
||||||
__GLX_BEGIN_REPLY(compsize);
|
|
||||||
((xGLXGetColorTableReply *)&__glXReply)->width = width;
|
|
||||||
__GLX_SEND_HEADER();
|
|
||||||
__GLX_SEND_VOID_ARRAY(compsize);
|
|
||||||
}
|
|
||||||
|
|
||||||
return Success;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -219,7 +219,7 @@ int __glXDispSwap_GetPolygonStipple(__GLXclientState *cl, GLbyte *pc)
|
||||||
return Success;
|
return Success;
|
||||||
}
|
}
|
||||||
|
|
||||||
int __glXDispSwap_GetSeparableFilter(__GLXclientState *cl, GLbyte *pc)
|
static int GetSeparableFilter(__GLXclientState *cl, GLbyte *pc, GLXContextTag tag)
|
||||||
{
|
{
|
||||||
GLint compsize, compsize2;
|
GLint compsize, compsize2;
|
||||||
GLenum format, type, target;
|
GLenum format, type, target;
|
||||||
|
@ -231,12 +231,11 @@ int __glXDispSwap_GetSeparableFilter(__GLXclientState *cl, GLbyte *pc)
|
||||||
char *answer, answerBuffer[200];
|
char *answer, answerBuffer[200];
|
||||||
GLint width=0, height=0;
|
GLint width=0, height=0;
|
||||||
|
|
||||||
cx = __glXForceCurrent(cl, __GLX_GET_SINGLE_CONTEXT_TAG(pc), &error);
|
cx = __glXForceCurrent(cl, tag, &error);
|
||||||
if (!cx) {
|
if (!cx) {
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
pc += __GLX_SINGLE_HDR_SIZE;
|
|
||||||
__GLX_SWAP_INT(pc+0);
|
__GLX_SWAP_INT(pc+0);
|
||||||
__GLX_SWAP_INT(pc+4);
|
__GLX_SWAP_INT(pc+4);
|
||||||
__GLX_SWAP_INT(pc+8);
|
__GLX_SWAP_INT(pc+8);
|
||||||
|
@ -291,7 +290,21 @@ int __glXDispSwap_GetSeparableFilter(__GLXclientState *cl, GLbyte *pc)
|
||||||
return Success;
|
return Success;
|
||||||
}
|
}
|
||||||
|
|
||||||
int __glXDispSwap_GetConvolutionFilter(__GLXclientState *cl, GLbyte *pc)
|
int __glXDispSwap_GetSeparableFilter(__GLXclientState *cl, GLbyte *pc)
|
||||||
|
{
|
||||||
|
const GLXContextTag tag = __GLX_GET_SINGLE_CONTEXT_TAG(pc);
|
||||||
|
|
||||||
|
return GetSeparableFilter(cl, pc + __GLX_SINGLE_HDR_SIZE, tag);
|
||||||
|
}
|
||||||
|
|
||||||
|
int __glXDispSwap_GetSeparableFilterEXT(__GLXclientState *cl, GLbyte *pc)
|
||||||
|
{
|
||||||
|
const GLXContextTag tag = __GLX_GET_VENDPRIV_CONTEXT_TAG(pc);
|
||||||
|
|
||||||
|
return GetSeparableFilter(cl, pc + __GLX_VENDPRIV_HDR_SIZE, tag);
|
||||||
|
}
|
||||||
|
|
||||||
|
static int GetConvolutionFilter(__GLXclientState *cl, GLbyte *pc, GLXContextTag tag)
|
||||||
{
|
{
|
||||||
GLint compsize;
|
GLint compsize;
|
||||||
GLenum format, type, target;
|
GLenum format, type, target;
|
||||||
|
@ -303,12 +316,11 @@ int __glXDispSwap_GetConvolutionFilter(__GLXclientState *cl, GLbyte *pc)
|
||||||
char *answer, answerBuffer[200];
|
char *answer, answerBuffer[200];
|
||||||
GLint width=0, height=0;
|
GLint width=0, height=0;
|
||||||
|
|
||||||
cx = __glXForceCurrent(cl, __GLX_GET_SINGLE_CONTEXT_TAG(pc), &error);
|
cx = __glXForceCurrent(cl, tag, &error);
|
||||||
if (!cx) {
|
if (!cx) {
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
pc += __GLX_SINGLE_HDR_SIZE;
|
|
||||||
__GLX_SWAP_INT(pc+0);
|
__GLX_SWAP_INT(pc+0);
|
||||||
__GLX_SWAP_INT(pc+4);
|
__GLX_SWAP_INT(pc+4);
|
||||||
__GLX_SWAP_INT(pc+8);
|
__GLX_SWAP_INT(pc+8);
|
||||||
|
@ -357,7 +369,21 @@ int __glXDispSwap_GetConvolutionFilter(__GLXclientState *cl, GLbyte *pc)
|
||||||
return Success;
|
return Success;
|
||||||
}
|
}
|
||||||
|
|
||||||
int __glXDispSwap_GetHistogram(__GLXclientState *cl, GLbyte *pc)
|
int __glXDispSwap_GetConvolutionFilter(__GLXclientState *cl, GLbyte *pc)
|
||||||
|
{
|
||||||
|
const GLXContextTag tag = __GLX_GET_SINGLE_CONTEXT_TAG(pc);
|
||||||
|
|
||||||
|
return GetConvolutionFilter(cl, pc + __GLX_SINGLE_HDR_SIZE, tag);
|
||||||
|
}
|
||||||
|
|
||||||
|
int __glXDispSwap_GetConvolutionFilterEXT(__GLXclientState *cl, GLbyte *pc)
|
||||||
|
{
|
||||||
|
const GLXContextTag tag = __GLX_GET_VENDPRIV_CONTEXT_TAG(pc);
|
||||||
|
|
||||||
|
return GetConvolutionFilter(cl, pc + __GLX_VENDPRIV_HDR_SIZE, tag);
|
||||||
|
}
|
||||||
|
|
||||||
|
static int GetHistogram(__GLXclientState *cl, GLbyte *pc, GLXContextTag tag)
|
||||||
{
|
{
|
||||||
GLint compsize;
|
GLint compsize;
|
||||||
GLenum format, type, target;
|
GLenum format, type, target;
|
||||||
|
@ -369,12 +395,11 @@ int __glXDispSwap_GetHistogram(__GLXclientState *cl, GLbyte *pc)
|
||||||
char *answer, answerBuffer[200];
|
char *answer, answerBuffer[200];
|
||||||
GLint width=0;
|
GLint width=0;
|
||||||
|
|
||||||
cx = __glXForceCurrent(cl, __GLX_GET_SINGLE_CONTEXT_TAG(pc), &error);
|
cx = __glXForceCurrent(cl, tag, &error);
|
||||||
if (!cx) {
|
if (!cx) {
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
pc += __GLX_SINGLE_HDR_SIZE;
|
|
||||||
__GLX_SWAP_INT(pc+0);
|
__GLX_SWAP_INT(pc+0);
|
||||||
__GLX_SWAP_INT(pc+4);
|
__GLX_SWAP_INT(pc+4);
|
||||||
__GLX_SWAP_INT(pc+8);
|
__GLX_SWAP_INT(pc+8);
|
||||||
|
@ -412,7 +437,21 @@ int __glXDispSwap_GetHistogram(__GLXclientState *cl, GLbyte *pc)
|
||||||
return Success;
|
return Success;
|
||||||
}
|
}
|
||||||
|
|
||||||
int __glXDispSwap_GetMinmax(__GLXclientState *cl, GLbyte *pc)
|
int __glXDispSwap_GetHistogram(__GLXclientState *cl, GLbyte *pc)
|
||||||
|
{
|
||||||
|
const GLXContextTag tag = __GLX_GET_SINGLE_CONTEXT_TAG(pc);
|
||||||
|
|
||||||
|
return GetHistogram(cl, pc + __GLX_SINGLE_HDR_SIZE, tag);
|
||||||
|
}
|
||||||
|
|
||||||
|
int __glXDispSwap_GetHistogramEXT(__GLXclientState *cl, GLbyte *pc)
|
||||||
|
{
|
||||||
|
const GLXContextTag tag = __GLX_GET_VENDPRIV_CONTEXT_TAG(pc);
|
||||||
|
|
||||||
|
return GetHistogram(cl, pc + __GLX_VENDPRIV_HDR_SIZE, tag);
|
||||||
|
}
|
||||||
|
|
||||||
|
static int GetMinmax(__GLXclientState *cl, GLbyte *pc, GLXContextTag tag)
|
||||||
{
|
{
|
||||||
GLint compsize;
|
GLint compsize;
|
||||||
GLenum format, type, target;
|
GLenum format, type, target;
|
||||||
|
@ -423,12 +462,11 @@ int __glXDispSwap_GetMinmax(__GLXclientState *cl, GLbyte *pc)
|
||||||
__GLX_DECLARE_SWAP_VARIABLES;
|
__GLX_DECLARE_SWAP_VARIABLES;
|
||||||
char *answer, answerBuffer[200];
|
char *answer, answerBuffer[200];
|
||||||
|
|
||||||
cx = __glXForceCurrent(cl, __GLX_GET_SINGLE_CONTEXT_TAG(pc), &error);
|
cx = __glXForceCurrent(cl, tag, &error);
|
||||||
if (!cx) {
|
if (!cx) {
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
pc += __GLX_SINGLE_HDR_SIZE;
|
|
||||||
__GLX_SWAP_INT(pc+0);
|
__GLX_SWAP_INT(pc+0);
|
||||||
__GLX_SWAP_INT(pc+4);
|
__GLX_SWAP_INT(pc+4);
|
||||||
__GLX_SWAP_INT(pc+8);
|
__GLX_SWAP_INT(pc+8);
|
||||||
|
@ -459,7 +497,21 @@ int __glXDispSwap_GetMinmax(__GLXclientState *cl, GLbyte *pc)
|
||||||
return Success;
|
return Success;
|
||||||
}
|
}
|
||||||
|
|
||||||
int __glXDispSwap_GetColorTable(__GLXclientState *cl, GLbyte *pc)
|
int __glXDispSwap_GetMinmax(__GLXclientState *cl, GLbyte *pc)
|
||||||
|
{
|
||||||
|
const GLXContextTag tag = __GLX_GET_SINGLE_CONTEXT_TAG(pc);
|
||||||
|
|
||||||
|
return GetMinmax(cl, pc + __GLX_SINGLE_HDR_SIZE, tag);
|
||||||
|
}
|
||||||
|
|
||||||
|
int __glXDispSwap_GetMinmaxEXT(__GLXclientState *cl, GLbyte *pc)
|
||||||
|
{
|
||||||
|
const GLXContextTag tag = __GLX_GET_VENDPRIV_CONTEXT_TAG(pc);
|
||||||
|
|
||||||
|
return GetMinmax(cl, pc + __GLX_VENDPRIV_HDR_SIZE, tag);
|
||||||
|
}
|
||||||
|
|
||||||
|
static int GetColorTable(__GLXclientState *cl, GLbyte *pc, GLXContextTag tag)
|
||||||
{
|
{
|
||||||
GLint compsize;
|
GLint compsize;
|
||||||
GLenum format, type, target;
|
GLenum format, type, target;
|
||||||
|
@ -471,12 +523,11 @@ int __glXDispSwap_GetColorTable(__GLXclientState *cl, GLbyte *pc)
|
||||||
char *answer, answerBuffer[200];
|
char *answer, answerBuffer[200];
|
||||||
GLint width=0;
|
GLint width=0;
|
||||||
|
|
||||||
cx = __glXForceCurrent(cl, __GLX_GET_SINGLE_CONTEXT_TAG(pc), &error);
|
cx = __glXForceCurrent(cl, tag, &error);
|
||||||
if (!cx) {
|
if (!cx) {
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
pc += __GLX_SINGLE_HDR_SIZE;
|
|
||||||
__GLX_SWAP_INT(pc+0);
|
__GLX_SWAP_INT(pc+0);
|
||||||
__GLX_SWAP_INT(pc+4);
|
__GLX_SWAP_INT(pc+4);
|
||||||
__GLX_SWAP_INT(pc+8);
|
__GLX_SWAP_INT(pc+8);
|
||||||
|
@ -518,61 +569,16 @@ int __glXDispSwap_GetColorTable(__GLXclientState *cl, GLbyte *pc)
|
||||||
return Success;
|
return Success;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int __glXDispSwap_GetColorTable(__GLXclientState *cl, GLbyte *pc)
|
||||||
|
{
|
||||||
|
const GLXContextTag tag = __GLX_GET_SINGLE_CONTEXT_TAG(pc);
|
||||||
|
|
||||||
|
return GetColorTable(cl, pc + __GLX_SINGLE_HDR_SIZE, tag);
|
||||||
|
}
|
||||||
|
|
||||||
int __glXDispSwap_GetColorTableSGI(__GLXclientState *cl, GLbyte *pc)
|
int __glXDispSwap_GetColorTableSGI(__GLXclientState *cl, GLbyte *pc)
|
||||||
{
|
{
|
||||||
GLint compsize;
|
const GLXContextTag tag = __GLX_GET_VENDPRIV_CONTEXT_TAG(pc);
|
||||||
GLenum format, type, target;
|
|
||||||
GLboolean swapBytes;
|
|
||||||
__GLXcontext *cx;
|
|
||||||
ClientPtr client = cl->client;
|
|
||||||
int error;
|
|
||||||
__GLX_DECLARE_SWAP_VARIABLES;
|
|
||||||
char *answer, answerBuffer[200];
|
|
||||||
GLint width=0;
|
|
||||||
|
|
||||||
cx = __glXForceCurrent(cl, __GLX_GET_SINGLE_CONTEXT_TAG(pc), &error);
|
return GetColorTable(cl, pc + __GLX_VENDPRIV_HDR_SIZE, tag);
|
||||||
if (!cx) {
|
|
||||||
return error;
|
|
||||||
}
|
|
||||||
|
|
||||||
pc += __GLX_VENDPRIV_HDR_SIZE;
|
|
||||||
__GLX_SWAP_INT(pc+0);
|
|
||||||
__GLX_SWAP_INT(pc+4);
|
|
||||||
__GLX_SWAP_INT(pc+8);
|
|
||||||
|
|
||||||
format = *(GLenum *)(pc + 4);
|
|
||||||
type = *(GLenum *)(pc + 8);
|
|
||||||
target = *(GLenum *)(pc + 0);
|
|
||||||
swapBytes = *(GLboolean *)(pc + 12);
|
|
||||||
|
|
||||||
CALL_GetColorTableParameterivSGI( GET_DISPATCH(), (target, GL_COLOR_TABLE_WIDTH, &width) );
|
|
||||||
/*
|
|
||||||
* The one query above might fail if we're in a state where queries
|
|
||||||
* are illegal, but then width would still be zero anyway.
|
|
||||||
*/
|
|
||||||
compsize = __glGetTexImage_size(target,1,format,type,width,1,1);
|
|
||||||
if (compsize < 0) compsize = 0;
|
|
||||||
|
|
||||||
CALL_PixelStorei( GET_DISPATCH(), (GL_PACK_SWAP_BYTES, !swapBytes) );
|
|
||||||
__GLX_GET_ANSWER_BUFFER(answer,cl,compsize,1);
|
|
||||||
__glXClearErrorOccured();
|
|
||||||
CALL_GetColorTableSGI( GET_DISPATCH(), (
|
|
||||||
*(GLenum *)(pc + 0),
|
|
||||||
*(GLenum *)(pc + 4),
|
|
||||||
*(GLenum *)(pc + 8),
|
|
||||||
answer
|
|
||||||
) );
|
|
||||||
|
|
||||||
if (__glXErrorOccured()) {
|
|
||||||
__GLX_BEGIN_REPLY(0);
|
|
||||||
__GLX_SWAP_REPLY_HEADER();
|
|
||||||
} else {
|
|
||||||
__GLX_BEGIN_REPLY(compsize);
|
|
||||||
__GLX_SWAP_REPLY_HEADER();
|
|
||||||
__GLX_SWAP_INT(&width);
|
|
||||||
((xGLXGetColorTableReply *)&__glXReply)->width = width;
|
|
||||||
__GLX_SEND_VOID_ARRAY(compsize);
|
|
||||||
}
|
|
||||||
|
|
||||||
return Success;
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user