Hash :
d89c027e
        
        Author :
  
        
        Date :
2022-08-22T11:40:40
        
      
Add unimplemented GLX entry points to desktop GL Test: Run glxgears and hit unimplemented in ANGLE Bug: angleproject:7533 Change-Id: Ic7ed7506b6d0c5ef5022ae6899cbd6c4d351b178 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3852631 Reviewed-by: Geoff Lang <geofflang@chromium.org> Commit-Queue: Eddie Hatfield <eddiehatfield@google.com> Reviewed-by: Cody Northrop <cnorthrop@google.com>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262
//
// Copyright 2022 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// entry_points_glx.cpp: Implements the exported GLX functions.
#include <X11/Xlib.h>
#include <X11/Xutil.h>
using GLXPixmap   = XID;
using GLXDrawable = XID;
using GLXPbuffer  = XID;
using GLXContext  = XID;
#include "entry_points_glx.h"
#include "common/debug.h"
extern "C" {
const char *GL_APIENTRY glXQueryServerString(Display *dpy, int name)
{
    UNIMPLEMENTED();
    return nullptr;
}
GLXFBConfig *GL_APIENTRY glXChooseFBConfig(Display *dpy,
                                           int screen,
                                           const int *attrib_list,
                                           int *nelements)
{
    UNIMPLEMENTED();
    return nullptr;
}
XVisualInfo *GL_APIENTRY glXChooseVisual(Display *dpy, int screen, int *attrib_list)
{
    UNIMPLEMENTED();
    return nullptr;
}
void GL_APIENTRY glXCopyContext(Display *dpy, GLXContext src, GLXContext dst, unsigned long mask)
{
    UNIMPLEMENTED();
}
GLXContext GL_APIENTRY glXCreateContext(Display *dpy,
                                        XVisualInfo *vis,
                                        GLXContext shareList,
                                        bool direct)
{
    UNIMPLEMENTED();
    return GLXContext{};
}
GLXPixmap GL_APIENTRY glXCreateGLXPixmap(Display *dpy, XVisualInfo *vis, Pixmap pixmap)
{
    UNIMPLEMENTED();
    return GLXPixmap{};
}
GLXContext GL_APIENTRY glXCreateNewContext(Display *dpy,
                                           GLXFBConfig config,
                                           int render_type,
                                           GLXContext share_list,
                                           bool direct)
{
    UNIMPLEMENTED();
    return GLXContext{};
}
GLXPbuffer GL_APIENTRY glXCreatePbuffer(Display *dpy, GLXFBConfig config, const int *attrib_list)
{
    UNIMPLEMENTED();
    return GLXPbuffer{};
}
GLXPixmap GL_APIENTRY glXCreatePixmap(Display *dpy,
                                      GLXFBConfig config,
                                      Pixmap pixmap,
                                      const int *attrib_list)
{
    UNIMPLEMENTED();
    return GLXPixmap{};
}
GLXWindow GL_APIENTRY glXCreateWindow(Display *dpy,
                                      GLXFBConfig config,
                                      Window win,
                                      const int *attrib_list)
{
    UNIMPLEMENTED();
    return GLXWindow{};
}
void GL_APIENTRY glXDestroyContext(Display *dpy, GLXContext ctx)
{
    UNIMPLEMENTED();
}
void GL_APIENTRY glXDestroyGLXPixmap(Display *dpy, GLXPixmap pix)
{
    UNIMPLEMENTED();
}
void GL_APIENTRY glXDestroyPbuffer(Display *dpy, GLXPbuffer pbuf)
{
    UNIMPLEMENTED();
}
void GL_APIENTRY glXDestroyPixmap(Display *dpy, GLXPixmap pixmap)
{
    UNIMPLEMENTED();
}
void GL_APIENTRY glXDestroyWindow(Display *dpy, GLXWindow win)
{
    UNIMPLEMENTED();
}
const char *GL_APIENTRY glXGetClientString(Display *dpy, int name)
{
    UNIMPLEMENTED();
    return nullptr;
}
int GL_APIENTRY glXGetConfig(Display *dpy, XVisualInfo *vis, int attrib, int *value)
{
    UNIMPLEMENTED();
    return 1;
}
GLXContext GL_APIENTRY glXGetCurrentContext()
{
    UNIMPLEMENTED();
    return GLXContext{};
}
Display *GL_APIENTRY glXGetCurrentDisplay()
{
    UNIMPLEMENTED();
    return nullptr;
}
GLXDrawable GL_APIENTRY glXGetCurrentDrawable()
{
    UNIMPLEMENTED();
    return GLXDrawable{};
}
GLXDrawable GL_APIENTRY glXGetCurrentReadDrawable()
{
    UNIMPLEMENTED();
    return GLXDrawable{};
}
int GL_APIENTRY glXGetFBConfigAttrib(Display *dpy, GLXFBConfig config, int attribute, int *value)
{
    UNIMPLEMENTED();
    return 1;
}
GLXFBConfig *GL_APIENTRY glXGetFBConfigs(Display *dpy, int screen, int *nelements)
{
    UNIMPLEMENTED();
    return nullptr;
}
__GLXextFuncPtr GL_APIENTRY glXGetProcAddress(const GLubyte *procName)
{
    UNIMPLEMENTED();
    return nullptr;
}
void GL_APIENTRY glXGetSelectedEvent(Display *dpy, GLXDrawable draw, unsigned long *event_mask)
{
    UNIMPLEMENTED();
}
XVisualInfo *GL_APIENTRY glXGetVisualFromFBConfig(Display *dpy, GLXFBConfig config)
{
    UNIMPLEMENTED();
    return nullptr;
}
bool GL_APIENTRY glXIsDirect(Display *dpy, GLXContext ctx)
{
    UNIMPLEMENTED();
    return false;
}
bool GL_APIENTRY glXMakeContextCurrent(Display *dpy,
                                       GLXDrawable draw,
                                       GLXDrawable read,
                                       GLXContext ctx)
{
    UNIMPLEMENTED();
    return false;
}
bool GL_APIENTRY glXMakeCurrent(Display *dpy, GLXDrawable drawable, GLXContext ctx)
{
    UNIMPLEMENTED();
    return false;
}
int GL_APIENTRY glXQueryContext(Display *dpy, GLXContext ctx, int attribute, int *value)
{
    UNIMPLEMENTED();
    return 1;
}
int GL_APIENTRY glXQueryDrawable(Display *dpy, GLXDrawable draw, int attribute, unsigned int *value)
{
    UNIMPLEMENTED();
    return 1;
}
bool GL_APIENTRY glXQueryExtension(Display *dpy, int *errorBase, int *eventBase)
{
    UNIMPLEMENTED();
    return 1;
}
const char *GL_APIENTRY glXQueryExtensionsString(Display *dpy, int screen)
{
    UNIMPLEMENTED();
    return nullptr;
}
bool GL_APIENTRY glXQueryVersion(Display *dpy, int *major, int *minor)
{
    UNIMPLEMENTED();
    return false;
}
void GL_APIENTRY glXSelectEvent(Display *dpy, GLXDrawable draw, unsigned long event_mask)
{
    UNIMPLEMENTED();
}
void GL_APIENTRY glXSwapBuffers(Display *dpy, GLXDrawable drawable)
{
    UNIMPLEMENTED();
}
void GL_APIENTRY glXUseXFont(Font font, int first, int count, int listBase)
{
    UNIMPLEMENTED();
}
void GL_APIENTRY glXWaitGL()
{
    UNIMPLEMENTED();
}
void GL_APIENTRY glXWaitX()
{
    UNIMPLEMENTED();
}
}  // extern "C"