Hash :
2aa5286d
Author :
Date :
2021-10-12T17:05:48
Add Entry Point name to validation errors Add gl/gles entry point names to validation error messages some special cases: 1. Debug::insertPerfWarning() is invoked from multiple places, such as TextureVK, ContextVK, adding an extra entryPoint function parameter in these files will need extra investigations. I am passing the entryPoint name GLInvalid as a temp workaround. 2.ErrorSet::hangleError() is invoked from multiple Context*.cpp files, adding an extra entryPoint function parameter in these files will need extra investigations. I am passing the entryPoint name GLInvalid as a temp workaround. 3. Debug::insertMessage(), Debug::popGroup(), Debug::pushGroup() can be invoked from more than one GL entry points, e.g. Debug::pushGroup() can be invoked from either GL_APIENTRY GL_PushDebugGroup() or GL_APIENTRY GL_PushDebugGroupKHR() through context->pushDebugGroup() call. Right now the same entry point name glPushDebugGroup will be printed out in the error message for both cases. However, we should be able to tell the actual entry point by checking which version: KHR version or core version the application uses, and this helps avoid the confusion. For now we will let the same entry point name getting printed for both cases. Bug: angleproject:6523 Change-Id: I64a5463d9168d8444d376d1f428c3b3d894f2ea9 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3215063 Reviewed-by: Jamie Madill <jmadill@chromium.org> Reviewed-by: Shahbaz Youssefi <syoussefi@chromium.org> Commit-Queue: Yuxin Hu <yuxinhu@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 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395
// GENERATED FILE - DO NOT EDIT.
// Generated by generate_entry_points.py using data from gl.xml and gl_angle_ext.xml.
//
// Copyright 2020 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.
//
// validationES1_autogen.h:
// Validation functions for the OpenGL ES 1.0 entry points.
#ifndef LIBANGLE_VALIDATION_ES1_AUTOGEN_H_
#define LIBANGLE_VALIDATION_ES1_AUTOGEN_H_
#include "common/PackedEnums.h"
#include "common/entry_points_enum_autogen.h"
namespace gl
{
class Context;
bool ValidateAlphaFunc(const Context *context,
angle::EntryPoint entryPoint,
AlphaTestFunc funcPacked,
GLfloat ref);
bool ValidateAlphaFuncx(const Context *context,
angle::EntryPoint entryPoint,
AlphaTestFunc funcPacked,
GLfixed ref);
bool ValidateClearColorx(const Context *context,
angle::EntryPoint entryPoint,
GLfixed red,
GLfixed green,
GLfixed blue,
GLfixed alpha);
bool ValidateClearDepthx(const Context *context, angle::EntryPoint entryPoint, GLfixed depth);
bool ValidateClientActiveTexture(const Context *context,
angle::EntryPoint entryPoint,
GLenum texture);
bool ValidateClipPlanef(const Context *context,
angle::EntryPoint entryPoint,
GLenum p,
const GLfloat *eqn);
bool ValidateClipPlanex(const Context *context,
angle::EntryPoint entryPoint,
GLenum plane,
const GLfixed *equation);
bool ValidateColor4f(const Context *context,
angle::EntryPoint entryPoint,
GLfloat red,
GLfloat green,
GLfloat blue,
GLfloat alpha);
bool ValidateColor4ub(const Context *context,
angle::EntryPoint entryPoint,
GLubyte red,
GLubyte green,
GLubyte blue,
GLubyte alpha);
bool ValidateColor4x(const Context *context,
angle::EntryPoint entryPoint,
GLfixed red,
GLfixed green,
GLfixed blue,
GLfixed alpha);
bool ValidateColorPointer(const Context *context,
angle::EntryPoint entryPoint,
GLint size,
VertexAttribType typePacked,
GLsizei stride,
const void *pointer);
bool ValidateDepthRangex(const Context *context,
angle::EntryPoint entryPoint,
GLfixed n,
GLfixed f);
bool ValidateDisableClientState(const Context *context,
angle::EntryPoint entryPoint,
ClientVertexArrayType arrayPacked);
bool ValidateEnableClientState(const Context *context,
angle::EntryPoint entryPoint,
ClientVertexArrayType arrayPacked);
bool ValidateFogf(const Context *context,
angle::EntryPoint entryPoint,
GLenum pname,
GLfloat param);
bool ValidateFogfv(const Context *context,
angle::EntryPoint entryPoint,
GLenum pname,
const GLfloat *params);
bool ValidateFogx(const Context *context,
angle::EntryPoint entryPoint,
GLenum pname,
GLfixed param);
bool ValidateFogxv(const Context *context,
angle::EntryPoint entryPoint,
GLenum pname,
const GLfixed *param);
bool ValidateFrustumf(const Context *context,
angle::EntryPoint entryPoint,
GLfloat l,
GLfloat r,
GLfloat b,
GLfloat t,
GLfloat n,
GLfloat f);
bool ValidateFrustumx(const Context *context,
angle::EntryPoint entryPoint,
GLfixed l,
GLfixed r,
GLfixed b,
GLfixed t,
GLfixed n,
GLfixed f);
bool ValidateGetClipPlanef(const Context *context,
angle::EntryPoint entryPoint,
GLenum plane,
const GLfloat *equation);
bool ValidateGetClipPlanex(const Context *context,
angle::EntryPoint entryPoint,
GLenum plane,
const GLfixed *equation);
bool ValidateGetFixedv(const Context *context,
angle::EntryPoint entryPoint,
GLenum pname,
const GLfixed *params);
bool ValidateGetLightfv(const Context *context,
angle::EntryPoint entryPoint,
GLenum light,
LightParameter pnamePacked,
const GLfloat *params);
bool ValidateGetLightxv(const Context *context,
angle::EntryPoint entryPoint,
GLenum light,
LightParameter pnamePacked,
const GLfixed *params);
bool ValidateGetMaterialfv(const Context *context,
angle::EntryPoint entryPoint,
GLenum face,
MaterialParameter pnamePacked,
const GLfloat *params);
bool ValidateGetMaterialxv(const Context *context,
angle::EntryPoint entryPoint,
GLenum face,
MaterialParameter pnamePacked,
const GLfixed *params);
bool ValidateGetTexEnvfv(const Context *context,
angle::EntryPoint entryPoint,
TextureEnvTarget targetPacked,
TextureEnvParameter pnamePacked,
const GLfloat *params);
bool ValidateGetTexEnviv(const Context *context,
angle::EntryPoint entryPoint,
TextureEnvTarget targetPacked,
TextureEnvParameter pnamePacked,
const GLint *params);
bool ValidateGetTexEnvxv(const Context *context,
angle::EntryPoint entryPoint,
TextureEnvTarget targetPacked,
TextureEnvParameter pnamePacked,
const GLfixed *params);
bool ValidateGetTexParameterxv(const Context *context,
angle::EntryPoint entryPoint,
TextureType targetPacked,
GLenum pname,
const GLfixed *params);
bool ValidateLightModelf(const Context *context,
angle::EntryPoint entryPoint,
GLenum pname,
GLfloat param);
bool ValidateLightModelfv(const Context *context,
angle::EntryPoint entryPoint,
GLenum pname,
const GLfloat *params);
bool ValidateLightModelx(const Context *context,
angle::EntryPoint entryPoint,
GLenum pname,
GLfixed param);
bool ValidateLightModelxv(const Context *context,
angle::EntryPoint entryPoint,
GLenum pname,
const GLfixed *param);
bool ValidateLightf(const Context *context,
angle::EntryPoint entryPoint,
GLenum light,
LightParameter pnamePacked,
GLfloat param);
bool ValidateLightfv(const Context *context,
angle::EntryPoint entryPoint,
GLenum light,
LightParameter pnamePacked,
const GLfloat *params);
bool ValidateLightx(const Context *context,
angle::EntryPoint entryPoint,
GLenum light,
LightParameter pnamePacked,
GLfixed param);
bool ValidateLightxv(const Context *context,
angle::EntryPoint entryPoint,
GLenum light,
LightParameter pnamePacked,
const GLfixed *params);
bool ValidateLineWidthx(const Context *context, angle::EntryPoint entryPoint, GLfixed width);
bool ValidateLoadIdentity(const Context *context, angle::EntryPoint entryPoint);
bool ValidateLoadMatrixf(const Context *context, angle::EntryPoint entryPoint, const GLfloat *m);
bool ValidateLoadMatrixx(const Context *context, angle::EntryPoint entryPoint, const GLfixed *m);
bool ValidateLogicOp(const Context *context,
angle::EntryPoint entryPoint,
LogicalOperation opcodePacked);
bool ValidateMaterialf(const Context *context,
angle::EntryPoint entryPoint,
GLenum face,
MaterialParameter pnamePacked,
GLfloat param);
bool ValidateMaterialfv(const Context *context,
angle::EntryPoint entryPoint,
GLenum face,
MaterialParameter pnamePacked,
const GLfloat *params);
bool ValidateMaterialx(const Context *context,
angle::EntryPoint entryPoint,
GLenum face,
MaterialParameter pnamePacked,
GLfixed param);
bool ValidateMaterialxv(const Context *context,
angle::EntryPoint entryPoint,
GLenum face,
MaterialParameter pnamePacked,
const GLfixed *param);
bool ValidateMatrixMode(const Context *context,
angle::EntryPoint entryPoint,
MatrixType modePacked);
bool ValidateMultMatrixf(const Context *context, angle::EntryPoint entryPoint, const GLfloat *m);
bool ValidateMultMatrixx(const Context *context, angle::EntryPoint entryPoint, const GLfixed *m);
bool ValidateMultiTexCoord4f(const Context *context,
angle::EntryPoint entryPoint,
GLenum target,
GLfloat s,
GLfloat t,
GLfloat r,
GLfloat q);
bool ValidateMultiTexCoord4x(const Context *context,
angle::EntryPoint entryPoint,
GLenum texture,
GLfixed s,
GLfixed t,
GLfixed r,
GLfixed q);
bool ValidateNormal3f(const Context *context,
angle::EntryPoint entryPoint,
GLfloat nx,
GLfloat ny,
GLfloat nz);
bool ValidateNormal3x(const Context *context,
angle::EntryPoint entryPoint,
GLfixed nx,
GLfixed ny,
GLfixed nz);
bool ValidateNormalPointer(const Context *context,
angle::EntryPoint entryPoint,
VertexAttribType typePacked,
GLsizei stride,
const void *pointer);
bool ValidateOrthof(const Context *context,
angle::EntryPoint entryPoint,
GLfloat l,
GLfloat r,
GLfloat b,
GLfloat t,
GLfloat n,
GLfloat f);
bool ValidateOrthox(const Context *context,
angle::EntryPoint entryPoint,
GLfixed l,
GLfixed r,
GLfixed b,
GLfixed t,
GLfixed n,
GLfixed f);
bool ValidatePointParameterf(const Context *context,
angle::EntryPoint entryPoint,
PointParameter pnamePacked,
GLfloat param);
bool ValidatePointParameterfv(const Context *context,
angle::EntryPoint entryPoint,
PointParameter pnamePacked,
const GLfloat *params);
bool ValidatePointParameterx(const Context *context,
angle::EntryPoint entryPoint,
PointParameter pnamePacked,
GLfixed param);
bool ValidatePointParameterxv(const Context *context,
angle::EntryPoint entryPoint,
PointParameter pnamePacked,
const GLfixed *params);
bool ValidatePointSize(const Context *context, angle::EntryPoint entryPoint, GLfloat size);
bool ValidatePointSizex(const Context *context, angle::EntryPoint entryPoint, GLfixed size);
bool ValidatePolygonOffsetx(const Context *context,
angle::EntryPoint entryPoint,
GLfixed factor,
GLfixed units);
bool ValidatePopMatrix(const Context *context, angle::EntryPoint entryPoint);
bool ValidatePushMatrix(const Context *context, angle::EntryPoint entryPoint);
bool ValidateRotatef(const Context *context,
angle::EntryPoint entryPoint,
GLfloat angle,
GLfloat x,
GLfloat y,
GLfloat z);
bool ValidateRotatex(const Context *context,
angle::EntryPoint entryPoint,
GLfixed angle,
GLfixed x,
GLfixed y,
GLfixed z);
bool ValidateSampleCoveragex(const Context *context,
angle::EntryPoint entryPoint,
GLclampx value,
GLboolean invert);
bool ValidateScalef(const Context *context,
angle::EntryPoint entryPoint,
GLfloat x,
GLfloat y,
GLfloat z);
bool ValidateScalex(const Context *context,
angle::EntryPoint entryPoint,
GLfixed x,
GLfixed y,
GLfixed z);
bool ValidateShadeModel(const Context *context,
angle::EntryPoint entryPoint,
ShadingModel modePacked);
bool ValidateTexCoordPointer(const Context *context,
angle::EntryPoint entryPoint,
GLint size,
VertexAttribType typePacked,
GLsizei stride,
const void *pointer);
bool ValidateTexEnvf(const Context *context,
angle::EntryPoint entryPoint,
TextureEnvTarget targetPacked,
TextureEnvParameter pnamePacked,
GLfloat param);
bool ValidateTexEnvfv(const Context *context,
angle::EntryPoint entryPoint,
TextureEnvTarget targetPacked,
TextureEnvParameter pnamePacked,
const GLfloat *params);
bool ValidateTexEnvi(const Context *context,
angle::EntryPoint entryPoint,
TextureEnvTarget targetPacked,
TextureEnvParameter pnamePacked,
GLint param);
bool ValidateTexEnviv(const Context *context,
angle::EntryPoint entryPoint,
TextureEnvTarget targetPacked,
TextureEnvParameter pnamePacked,
const GLint *params);
bool ValidateTexEnvx(const Context *context,
angle::EntryPoint entryPoint,
TextureEnvTarget targetPacked,
TextureEnvParameter pnamePacked,
GLfixed param);
bool ValidateTexEnvxv(const Context *context,
angle::EntryPoint entryPoint,
TextureEnvTarget targetPacked,
TextureEnvParameter pnamePacked,
const GLfixed *params);
bool ValidateTexParameterx(const Context *context,
angle::EntryPoint entryPoint,
TextureType targetPacked,
GLenum pname,
GLfixed param);
bool ValidateTexParameterxv(const Context *context,
angle::EntryPoint entryPoint,
TextureType targetPacked,
GLenum pname,
const GLfixed *params);
bool ValidateTranslatef(const Context *context,
angle::EntryPoint entryPoint,
GLfloat x,
GLfloat y,
GLfloat z);
bool ValidateTranslatex(const Context *context,
angle::EntryPoint entryPoint,
GLfixed x,
GLfixed y,
GLfixed z);
bool ValidateVertexPointer(const Context *context,
angle::EntryPoint entryPoint,
GLint size,
VertexAttribType typePacked,
GLsizei stride,
const void *pointer);
} // namespace gl
#endif // LIBANGLE_VALIDATION_ES1_AUTOGEN_H_