diff options
Diffstat (limited to 'xserver/glx/glxcontext.h')
-rw-r--r-- | xserver/glx/glxcontext.h | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/xserver/glx/glxcontext.h b/xserver/glx/glxcontext.h index edbd491ff..8f623b4b4 100644 --- a/xserver/glx/glxcontext.h +++ b/xserver/glx/glxcontext.h @@ -35,14 +35,6 @@ * Silicon Graphics, Inc. */ -typedef struct __GLXtextureFromPixmap __GLXtextureFromPixmap; -struct __GLXtextureFromPixmap { - int (*bindTexImage) (__GLXcontext * baseContext, - int buffer, __GLXdrawable * pixmap); - int (*releaseTexImage) (__GLXcontext * baseContext, - int buffer, __GLXdrawable * pixmap); -}; - struct __GLXcontext { void (*destroy) (__GLXcontext * context); int (*makeCurrent) (__GLXcontext * context); @@ -50,7 +42,11 @@ struct __GLXcontext { int (*copy) (__GLXcontext * dst, __GLXcontext * src, unsigned long mask); Bool (*wait) (__GLXcontext * context, __GLXclientState * cl, int *error); - __GLXtextureFromPixmap *textureFromPixmap; + /* EXT_texture_from_pixmap */ + int (*bindTexImage) (__GLXcontext * baseContext, + int buffer, __GLXdrawable * pixmap); + int (*releaseTexImage) (__GLXcontext * baseContext, + int buffer, __GLXdrawable * pixmap); /* ** list of context structs @@ -117,6 +113,16 @@ struct __GLXcontext { GLint selectBufSize; /* number of elements allocated */ /* + ** Keep track of large rendering commands, which span multiple requests. + */ + GLint largeCmdBytesSoFar; /* bytes received so far */ + GLint largeCmdBytesTotal; /* total bytes expected */ + GLint largeCmdRequestsSoFar; /* requests received so far */ + GLint largeCmdRequestsTotal; /* total requests expected */ + GLbyte *largeCmdBuf; + GLint largeCmdBufSize; + + /* ** The drawable private this context is bound to */ __GLXdrawable *drawPriv; |