summaryrefslogtreecommitdiff
path: root/src/glx
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2021-11-29 14:05:49 -0500
committerMarge Bot <emma+marge@anholt.net>2021-12-08 03:42:44 +0000
commitb713fca4957982ab24a93ae13d58d98fccfe44ac (patch)
treef0f14ceda3cbdd9e30882f8b8b129afcfedba7e0 /src/glx
parent7ba0c68e3195aa127370bfce01166387e6903d39 (diff)
glapi: Remove remnants of EXT_paletted_texture and the imaging subset
The GLX code had to special case these for uninteresting reasons, but we don't support them anymore in Mesa so all this would do is keep them sorta-working over GLX protocol. Given that Mesa hasn't supported them on the renderer side since ~2011 let's stop pretending they're real. If we get around to modernizing the indirect GLX code (hah) we can revisit these then. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14085>
Diffstat (limited to 'src/glx')
-rw-r--r--src/glx/singlepix.c86
1 files changed, 0 insertions, 86 deletions
diff --git a/src/glx/singlepix.c b/src/glx/singlepix.c
index e1468c63c2b..ad0fec5a7e3 100644
--- a/src/glx/singlepix.c
+++ b/src/glx/singlepix.c
@@ -104,89 +104,3 @@ __indirect_glGetSeparableFilter(GLenum target, GLenum format, GLenum type,
__GLX_SINGLE_END();
}
-
-
-/* it is defined to gl_dispatch_stub_NNN in indirect.h */
-void gl_dispatch_stub_GetSeparableFilterEXT (GLenum target, GLenum format,
- GLenum type, GLvoid * row,
- GLvoid * column, GLvoid * span)
-{
- struct glx_context *const gc = __glXGetCurrentContext();
-
-#if defined(GLX_DIRECT_RENDERING) && !defined(GLX_USE_APPLEGL)
- if (gc->isDirect) {
- const _glapi_proc *const table = (_glapi_proc *) GET_DISPATCH();
- PFNGLGETSEPARABLEFILTEREXTPROC p =
- (PFNGLGETSEPARABLEFILTEREXTPROC) table[359];
-
- p(target, format, type, row, column, span);
- return;
- }
- else
-#endif
- {
- Display *const dpy = gc->currentDpy;
- const GLuint cmdlen = __GLX_PAD(13);
-
- if (dpy != NULL) {
- const __GLXattribute *const state = gc->client_state_private;
- xGLXGetSeparableFilterReply reply;
- GLubyte const *pc =
- __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply,
- X_GLvop_GetSeparableFilterEXT, cmdlen);
- unsigned compsize;
-
-
- (void) memcpy((void *) (pc + 0), (void *) (&target), 4);
- (void) memcpy((void *) (pc + 4), (void *) (&format), 4);
- (void) memcpy((void *) (pc + 8), (void *) (&type), 4);
- *(int8_t *) (pc + 12) = state->storePack.swapEndian;
-
- (void) _XReply(dpy, (xReply *) & reply, 0, False);
-
- compsize = reply.length << 2;
-
- if (compsize != 0) {
- const GLint width = reply.width;
- const GLint height = reply.height;
- const GLint widthsize =
- __glImageSize(width, 1, 1, format, type, 0);
- const GLint heightsize =
- __glImageSize(height, 1, 1, format, type, 0);
- GLubyte *const buf =
- malloc((widthsize > heightsize) ? widthsize : heightsize);
-
- if (buf == NULL) {
- /* Throw data away */
- _XEatData(dpy, compsize);
- __glXSetError(gc, GL_OUT_OF_MEMORY);
-
- UnlockDisplay(dpy);
- SyncHandle();
- return;
- }
- else {
- int extra;
-
- extra = 4 - (widthsize & 3);
- _XRead(dpy, (char *) buf, widthsize);
- if (extra < 4) {
- _XEatData(dpy, extra);
- }
-
- __glEmptyImage(gc, 1, width, 1, 1, format, type, buf, row);
-
- extra = 4 - (heightsize & 3);
- _XRead(dpy, (char *) buf, heightsize);
- if (extra < 4) {
- _XEatData(dpy, extra);
- }
-
- __glEmptyImage(gc, 1, height, 1, 1, format, type, buf, column);
-
- free((char *) buf);
- }
- }
- }
- }
-}