1 // GENERATED FILE - DO NOT EDIT. 2 // Generated by generate_entry_points.py using data from egl.xml and egl_angle_ext.xml. 3 // 4 // Copyright 2020 The ANGLE Project Authors. All rights reserved. 5 // Use of this source code is governed by a BSD-style license that can be 6 // found in the LICENSE file. 7 // 8 // validationEGL_autogen.h: 9 // Validation functions for the EGL entry points. 10 11 #ifndef LIBANGLE_VALIDATION_EGL_AUTOGEN_H_ 12 #define LIBANGLE_VALIDATION_EGL_AUTOGEN_H_ 13 14 #include "libANGLE/validationEGL.h" 15 16 namespace egl 17 { 18 19 // EGL 1.0 20 bool ValidateChooseConfig(const ValidationContext *val, 21 const egl::Display *dpyPacked, 22 const AttributeMap &attrib_listPacked, 23 const EGLConfig *configs, 24 EGLint config_size, 25 const EGLint *num_config); 26 bool ValidateCopyBuffers(const ValidationContext *val, 27 const egl::Display *dpyPacked, 28 const Surface *surfacePacked, 29 EGLNativePixmapType target); 30 bool ValidateCreateContext(const ValidationContext *val, 31 const egl::Display *dpyPacked, 32 const Config *configPacked, 33 const gl::Context *share_contextPacked, 34 const AttributeMap &attrib_listPacked); 35 bool ValidateCreatePbufferSurface(const ValidationContext *val, 36 const egl::Display *dpyPacked, 37 const Config *configPacked, 38 const AttributeMap &attrib_listPacked); 39 bool ValidateCreatePixmapSurface(const ValidationContext *val, 40 const egl::Display *dpyPacked, 41 const Config *configPacked, 42 EGLNativePixmapType pixmap, 43 const AttributeMap &attrib_listPacked); 44 bool ValidateCreateWindowSurface(const ValidationContext *val, 45 const egl::Display *dpyPacked, 46 const Config *configPacked, 47 EGLNativeWindowType win, 48 const AttributeMap &attrib_listPacked); 49 bool ValidateDestroyContext(const ValidationContext *val, 50 const egl::Display *dpyPacked, 51 const gl::Context *ctxPacked); 52 bool ValidateDestroySurface(const ValidationContext *val, 53 const egl::Display *dpyPacked, 54 const Surface *surfacePacked); 55 bool ValidateGetConfigAttrib(const ValidationContext *val, 56 const egl::Display *dpyPacked, 57 const Config *configPacked, 58 EGLint attribute, 59 const EGLint *value); 60 bool ValidateGetConfigs(const ValidationContext *val, 61 const egl::Display *dpyPacked, 62 const EGLConfig *configs, 63 EGLint config_size, 64 const EGLint *num_config); 65 bool ValidateGetCurrentDisplay(const ValidationContext *val); 66 bool ValidateGetCurrentSurface(const ValidationContext *val, EGLint readdraw); 67 bool ValidateGetDisplay(const ValidationContext *val, EGLNativeDisplayType display_id); 68 bool ValidateGetError(const ValidationContext *val); 69 bool ValidateGetProcAddress(const ValidationContext *val, const char *procname); 70 bool ValidateInitialize(const ValidationContext *val, 71 const egl::Display *dpyPacked, 72 const EGLint *major, 73 const EGLint *minor); 74 bool ValidateMakeCurrent(const ValidationContext *val, 75 const egl::Display *dpyPacked, 76 const Surface *drawPacked, 77 const Surface *readPacked, 78 const gl::Context *ctxPacked); 79 bool ValidateQueryContext(const ValidationContext *val, 80 const egl::Display *dpyPacked, 81 const gl::Context *ctxPacked, 82 EGLint attribute, 83 const EGLint *value); 84 bool ValidateQueryString(const ValidationContext *val, const egl::Display *dpyPacked, EGLint name); 85 bool ValidateQuerySurface(const ValidationContext *val, 86 const egl::Display *dpyPacked, 87 const Surface *surfacePacked, 88 EGLint attribute, 89 const EGLint *value); 90 bool ValidateSwapBuffers(const ValidationContext *val, 91 const egl::Display *dpyPacked, 92 const Surface *surfacePacked); 93 bool ValidateTerminate(const ValidationContext *val, const egl::Display *dpyPacked); 94 bool ValidateWaitGL(const ValidationContext *val); 95 bool ValidateWaitNative(const ValidationContext *val, EGLint engine); 96 97 // EGL 1.1 98 bool ValidateBindTexImage(const ValidationContext *val, 99 const egl::Display *dpyPacked, 100 const Surface *surfacePacked, 101 EGLint buffer); 102 bool ValidateReleaseTexImage(const ValidationContext *val, 103 const egl::Display *dpyPacked, 104 const Surface *surfacePacked, 105 EGLint buffer); 106 bool ValidateSurfaceAttrib(const ValidationContext *val, 107 const egl::Display *dpyPacked, 108 const Surface *surfacePacked, 109 EGLint attribute, 110 EGLint value); 111 bool ValidateSwapInterval(const ValidationContext *val, 112 const egl::Display *dpyPacked, 113 EGLint interval); 114 115 // EGL 1.2 116 bool ValidateBindAPI(const ValidationContext *val, EGLenum api); 117 bool ValidateCreatePbufferFromClientBuffer(const ValidationContext *val, 118 const egl::Display *dpyPacked, 119 EGLenum buftype, 120 EGLClientBuffer buffer, 121 const Config *configPacked, 122 const AttributeMap &attrib_listPacked); 123 bool ValidateQueryAPI(const ValidationContext *val); 124 bool ValidateReleaseThread(const ValidationContext *val); 125 bool ValidateWaitClient(const ValidationContext *val); 126 127 // EGL 1.4 128 bool ValidateGetCurrentContext(const ValidationContext *val); 129 130 // EGL 1.5 131 bool ValidateClientWaitSync(const ValidationContext *val, 132 const egl::Display *dpyPacked, 133 const Sync *syncPacked, 134 EGLint flags, 135 EGLTime timeout); 136 bool ValidateCreateImage(const ValidationContext *val, 137 const egl::Display *dpyPacked, 138 const gl::Context *ctxPacked, 139 EGLenum target, 140 EGLClientBuffer buffer, 141 const AttributeMap &attrib_listPacked); 142 bool ValidateCreatePlatformPixmapSurface(const ValidationContext *val, 143 const egl::Display *dpyPacked, 144 const Config *configPacked, 145 const void *native_pixmap, 146 const AttributeMap &attrib_listPacked); 147 bool ValidateCreatePlatformWindowSurface(const ValidationContext *val, 148 const egl::Display *dpyPacked, 149 const Config *configPacked, 150 const void *native_window, 151 const AttributeMap &attrib_listPacked); 152 bool ValidateCreateSync(const ValidationContext *val, 153 const egl::Display *dpyPacked, 154 EGLenum type, 155 const AttributeMap &attrib_listPacked); 156 bool ValidateDestroyImage(const ValidationContext *val, 157 const egl::Display *dpyPacked, 158 const Image *imagePacked); 159 bool ValidateDestroySync(const ValidationContext *val, 160 const egl::Display *dpyPacked, 161 const Sync *syncPacked); 162 bool ValidateGetPlatformDisplay(const ValidationContext *val, 163 EGLenum platform, 164 const void *native_display, 165 const AttributeMap &attrib_listPacked); 166 bool ValidateGetSyncAttrib(const ValidationContext *val, 167 const egl::Display *dpyPacked, 168 const Sync *syncPacked, 169 EGLint attribute, 170 const EGLAttrib *value); 171 bool ValidateWaitSync(const ValidationContext *val, 172 const egl::Display *dpyPacked, 173 const Sync *syncPacked, 174 EGLint flags); 175 176 // EGL_ANDROID_blob_cache 177 bool ValidateSetBlobCacheFuncsANDROID(const ValidationContext *val, 178 const egl::Display *dpyPacked, 179 EGLSetBlobFuncANDROID set, 180 EGLGetBlobFuncANDROID get); 181 182 // EGL_ANDROID_create_native_client_buffer 183 bool ValidateCreateNativeClientBufferANDROID(const ValidationContext *val, 184 const AttributeMap &attrib_listPacked); 185 186 // EGL_ANDROID_get_frame_timestamps 187 bool ValidateGetCompositorTimingSupportedANDROID(const ValidationContext *val, 188 const egl::Display *dpyPacked, 189 const Surface *surfacePacked, 190 CompositorTiming namePacked); 191 bool ValidateGetCompositorTimingANDROID(const ValidationContext *val, 192 const egl::Display *dpyPacked, 193 const Surface *surfacePacked, 194 EGLint numTimestamps, 195 const EGLint *names, 196 const EGLnsecsANDROID *values); 197 bool ValidateGetNextFrameIdANDROID(const ValidationContext *val, 198 const egl::Display *dpyPacked, 199 const Surface *surfacePacked, 200 const EGLuint64KHR *frameId); 201 bool ValidateGetFrameTimestampSupportedANDROID(const ValidationContext *val, 202 const egl::Display *dpyPacked, 203 const Surface *surfacePacked, 204 Timestamp timestampPacked); 205 bool ValidateGetFrameTimestampsANDROID(const ValidationContext *val, 206 const egl::Display *dpyPacked, 207 const Surface *surfacePacked, 208 EGLuint64KHR frameId, 209 EGLint numTimestamps, 210 const EGLint *timestamps, 211 const EGLnsecsANDROID *values); 212 213 // EGL_ANDROID_get_native_client_buffer 214 bool ValidateGetNativeClientBufferANDROID(const ValidationContext *val, 215 const struct AHardwareBuffer *buffer); 216 217 // EGL_ANDROID_native_fence_sync 218 bool ValidateDupNativeFenceFDANDROID(const ValidationContext *val, 219 const egl::Display *dpyPacked, 220 const Sync *syncPacked); 221 222 // EGL_ANDROID_presentation_time 223 bool ValidatePresentationTimeANDROID(const ValidationContext *val, 224 const egl::Display *dpyPacked, 225 const Surface *surfacePacked, 226 EGLnsecsANDROID time); 227 228 // EGL_ANGLE_device_creation 229 bool ValidateCreateDeviceANGLE(const ValidationContext *val, 230 EGLint device_type, 231 const void *native_device, 232 const EGLAttrib *attrib_list); 233 bool ValidateReleaseDeviceANGLE(const ValidationContext *val, const Device *devicePacked); 234 235 // EGL_ANGLE_feature_control 236 bool ValidateQueryStringiANGLE(const ValidationContext *val, 237 const egl::Display *dpyPacked, 238 EGLint name, 239 EGLint index); 240 bool ValidateQueryDisplayAttribANGLE(const ValidationContext *val, 241 const egl::Display *dpyPacked, 242 EGLint attribute, 243 const EGLAttrib *value); 244 245 // EGL_ANGLE_power_preference 246 bool ValidateReleaseHighPowerGPUANGLE(const ValidationContext *val, 247 const egl::Display *dpyPacked, 248 const gl::Context *ctxPacked); 249 bool ValidateReacquireHighPowerGPUANGLE(const ValidationContext *val, 250 const egl::Display *dpyPacked, 251 const gl::Context *ctxPacked); 252 bool ValidateHandleGPUSwitchANGLE(const ValidationContext *val, const egl::Display *dpyPacked); 253 254 // EGL_ANGLE_program_cache_control 255 bool ValidateProgramCacheGetAttribANGLE(const ValidationContext *val, 256 const egl::Display *dpyPacked, 257 EGLenum attrib); 258 bool ValidateProgramCacheQueryANGLE(const ValidationContext *val, 259 const egl::Display *dpyPacked, 260 EGLint index, 261 const void *key, 262 const EGLint *keysize, 263 const void *binary, 264 const EGLint *binarysize); 265 bool ValidateProgramCachePopulateANGLE(const ValidationContext *val, 266 const egl::Display *dpyPacked, 267 const void *key, 268 EGLint keysize, 269 const void *binary, 270 EGLint binarysize); 271 bool ValidateProgramCacheResizeANGLE(const ValidationContext *val, 272 const egl::Display *dpyPacked, 273 EGLint limit, 274 EGLint mode); 275 276 // EGL_ANGLE_query_surface_pointer 277 bool ValidateQuerySurfacePointerANGLE(const ValidationContext *val, 278 const egl::Display *dpyPacked, 279 const Surface *surfacePacked, 280 EGLint attribute, 281 void *const *value); 282 283 // EGL_ANGLE_stream_producer_d3d_texture 284 bool ValidateCreateStreamProducerD3DTextureANGLE(const ValidationContext *val, 285 const egl::Display *dpyPacked, 286 const Stream *streamPacked, 287 const AttributeMap &attrib_listPacked); 288 bool ValidateStreamPostD3DTextureANGLE(const ValidationContext *val, 289 const egl::Display *dpyPacked, 290 const Stream *streamPacked, 291 const void *texture, 292 const AttributeMap &attrib_listPacked); 293 294 // EGL_ANGLE_swap_with_frame_token 295 bool ValidateSwapBuffersWithFrameTokenANGLE(const ValidationContext *val, 296 const egl::Display *dpyPacked, 297 const Surface *surfacePacked, 298 EGLFrameTokenANGLE frametoken); 299 300 // EGL_ANGLE_sync_control_rate 301 bool ValidateGetMscRateANGLE(const ValidationContext *val, 302 const egl::Display *dpyPacked, 303 const Surface *surfacePacked, 304 const EGLint *numerator, 305 const EGLint *denominator); 306 307 // EGL_CHROMIUM_sync_control 308 bool ValidateGetSyncValuesCHROMIUM(const ValidationContext *val, 309 const egl::Display *dpyPacked, 310 const Surface *surfacePacked, 311 const EGLuint64KHR *ust, 312 const EGLuint64KHR *msc, 313 const EGLuint64KHR *sbc); 314 315 // EGL_EXT_device_query 316 bool ValidateQueryDeviceAttribEXT(const ValidationContext *val, 317 const Device *devicePacked, 318 EGLint attribute, 319 const EGLAttrib *value); 320 bool ValidateQueryDeviceStringEXT(const ValidationContext *val, 321 const Device *devicePacked, 322 EGLint name); 323 bool ValidateQueryDisplayAttribEXT(const ValidationContext *val, 324 const egl::Display *dpyPacked, 325 EGLint attribute, 326 const EGLAttrib *value); 327 328 // EGL_EXT_platform_base 329 bool ValidateCreatePlatformPixmapSurfaceEXT(const ValidationContext *val, 330 const egl::Display *dpyPacked, 331 const Config *configPacked, 332 const void *native_pixmap, 333 const AttributeMap &attrib_listPacked); 334 bool ValidateCreatePlatformWindowSurfaceEXT(const ValidationContext *val, 335 const egl::Display *dpyPacked, 336 const Config *configPacked, 337 const void *native_window, 338 const AttributeMap &attrib_listPacked); 339 bool ValidateGetPlatformDisplayEXT(const ValidationContext *val, 340 EGLenum platform, 341 const void *native_display, 342 const AttributeMap &attrib_listPacked); 343 344 // EGL_KHR_debug 345 bool ValidateDebugMessageControlKHR(const ValidationContext *val, 346 EGLDEBUGPROCKHR callback, 347 const AttributeMap &attrib_listPacked); 348 bool ValidateLabelObjectKHR(const ValidationContext *val, 349 const egl::Display *displayPacked, 350 ObjectType objectTypePacked, 351 EGLObjectKHR object, 352 EGLLabelKHR label); 353 bool ValidateQueryDebugKHR(const ValidationContext *val, EGLint attribute, const EGLAttrib *value); 354 355 // EGL_KHR_fence_sync 356 bool ValidateClientWaitSyncKHR(const ValidationContext *val, 357 const egl::Display *dpyPacked, 358 const Sync *syncPacked, 359 EGLint flags, 360 EGLTimeKHR timeout); 361 bool ValidateCreateSyncKHR(const ValidationContext *val, 362 const egl::Display *dpyPacked, 363 EGLenum type, 364 const AttributeMap &attrib_listPacked); 365 bool ValidateDestroySyncKHR(const ValidationContext *val, 366 const egl::Display *dpyPacked, 367 const Sync *syncPacked); 368 bool ValidateGetSyncAttribKHR(const ValidationContext *val, 369 const egl::Display *dpyPacked, 370 const Sync *syncPacked, 371 EGLint attribute, 372 const EGLint *value); 373 374 // EGL_KHR_image 375 bool ValidateCreateImageKHR(const ValidationContext *val, 376 const egl::Display *dpyPacked, 377 const gl::Context *ctxPacked, 378 EGLenum target, 379 EGLClientBuffer buffer, 380 const AttributeMap &attrib_listPacked); 381 bool ValidateDestroyImageKHR(const ValidationContext *val, 382 const egl::Display *dpyPacked, 383 const Image *imagePacked); 384 385 // EGL_KHR_reusable_sync 386 bool ValidateSignalSyncKHR(const ValidationContext *val, 387 const egl::Display *dpyPacked, 388 const Sync *syncPacked, 389 EGLenum mode); 390 391 // EGL_KHR_stream 392 bool ValidateCreateStreamKHR(const ValidationContext *val, 393 const egl::Display *dpyPacked, 394 const AttributeMap &attrib_listPacked); 395 bool ValidateDestroyStreamKHR(const ValidationContext *val, 396 const egl::Display *dpyPacked, 397 const Stream *streamPacked); 398 bool ValidateQueryStreamKHR(const ValidationContext *val, 399 const egl::Display *dpyPacked, 400 const Stream *streamPacked, 401 EGLenum attribute, 402 const EGLint *value); 403 bool ValidateQueryStreamu64KHR(const ValidationContext *val, 404 const egl::Display *dpyPacked, 405 const Stream *streamPacked, 406 EGLenum attribute, 407 const EGLuint64KHR *value); 408 bool ValidateStreamAttribKHR(const ValidationContext *val, 409 const egl::Display *dpyPacked, 410 const Stream *streamPacked, 411 EGLenum attribute, 412 EGLint value); 413 414 // EGL_KHR_stream_consumer_gltexture 415 bool ValidateStreamConsumerAcquireKHR(const ValidationContext *val, 416 const egl::Display *dpyPacked, 417 const Stream *streamPacked); 418 bool ValidateStreamConsumerGLTextureExternalKHR(const ValidationContext *val, 419 const egl::Display *dpyPacked, 420 const Stream *streamPacked); 421 bool ValidateStreamConsumerReleaseKHR(const ValidationContext *val, 422 const egl::Display *dpyPacked, 423 const Stream *streamPacked); 424 425 // EGL_KHR_swap_buffers_with_damage 426 bool ValidateSwapBuffersWithDamageKHR(const ValidationContext *val, 427 const egl::Display *dpyPacked, 428 const Surface *surfacePacked, 429 const EGLint *rects, 430 EGLint n_rects); 431 432 // EGL_KHR_wait_sync 433 bool ValidateWaitSyncKHR(const ValidationContext *val, 434 const egl::Display *dpyPacked, 435 const Sync *syncPacked, 436 EGLint flags); 437 438 // EGL_NV_post_sub_buffer 439 bool ValidatePostSubBufferNV(const ValidationContext *val, 440 const egl::Display *dpyPacked, 441 const Surface *surfacePacked, 442 EGLint x, 443 EGLint y, 444 EGLint width, 445 EGLint height); 446 447 // EGL_NV_stream_consumer_gltexture_yuv 448 bool ValidateStreamConsumerGLTextureExternalAttribsNV(const ValidationContext *val, 449 const egl::Display *dpyPacked, 450 const Stream *streamPacked, 451 const AttributeMap &attrib_listPacked); 452 } // namespace egl 453 454 #endif // LIBANGLE_VALIDATION_EGL_AUTOGEN_H_ 455