Mesa (main): glx: Remove unused __glXSetupForCommand from __glXIsDirect
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Jul 12 19:22:38 UTC 2022
Module: Mesa
Branch: main
Commit: 215200d8f1968c51896586f460edd5091d122ba7
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=215200d8f1968c51896586f460edd5091d122ba7
Author: Adam Jackson <ajax at redhat.com>
Date: Thu Jun 23 14:44:20 2022 -0400
glx: Remove unused __glXSetupForCommand from __glXIsDirect
This was needed when we emitted an xlib request here, but xcb knows the
GLX major opcode for the connection already.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17422>
---
src/glx/glxcmds.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/src/glx/glxcmds.c b/src/glx/glxcmds.c
index 36003688be6..932c0bf1934 100644
--- a/src/glx/glxcmds.c
+++ b/src/glx/glxcmds.c
@@ -287,17 +287,11 @@ glx_context_init(struct glx_context *gc,
static Bool
__glXIsDirect(Display * dpy, GLXContextID contextID, Bool *error)
{
- CARD8 opcode;
xcb_connection_t *c;
xcb_generic_error_t *err;
xcb_glx_is_direct_reply_t *reply;
Bool is_direct;
- opcode = __glXSetupForCommand(dpy);
- if (!opcode) {
- return False;
- }
-
c = XGetXCBConnection(dpy);
reply = xcb_glx_is_direct_reply(c, xcb_glx_is_direct(c, contextID), &err);
is_direct = (reply != NULL && reply->is_direct) ? True : False;
More information about the mesa-commit
mailing list