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>
This commit is contained in:
Adam Jackson 2022-06-23 14:44:20 -04:00 committed by Marge Bot
parent 61834ae898
commit 215200d8f1
1 changed files with 0 additions and 6 deletions

View File

@ -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;