Geoff Lang | 2aaa7b4 | 2018-01-12 17:17:27 -0500 | [diff] [blame] | 1 | // |
| 2 | // Copyright (c) 2018 The ANGLE Project Authors. All rights reserved. |
| 3 | // Use of this source code is governed by a BSD-style license that can be |
| 4 | // found in the LICENSE file. |
| 5 | // |
| 6 | |
| 7 | // validationES1.cpp: Validation functions for OpenGL ES 1.0 entry point parameters |
| 8 | |
| 9 | #include "libANGLE/validationES1.h" |
| 10 | |
| 11 | #include "common/debug.h" |
Lingfeng Yang | 13b708f | 2018-03-21 12:14:10 -0700 | [diff] [blame] | 12 | #include "libANGLE/Context.h" |
| 13 | #include "libANGLE/ErrorStrings.h" |
| 14 | |
| 15 | #define ANGLE_VALIDATE_IS_GLES1(context) \ |
| 16 | if (context->getClientMajorVersion() > 1) \ |
| 17 | { \ |
| 18 | ANGLE_VALIDATION_ERR(context, InvalidOperation(), GLES1Only); \ |
| 19 | return false; \ |
| 20 | } |
| 21 | |
| 22 | namespace |
| 23 | { |
| 24 | |
| 25 | bool ValidateAlphaFuncCommon(gl::Context *context, gl::AlphaTestFunc func) |
| 26 | { |
| 27 | switch (func) |
| 28 | { |
| 29 | case gl::AlphaTestFunc::AlwaysPass: |
| 30 | case gl::AlphaTestFunc::Equal: |
| 31 | case gl::AlphaTestFunc::Gequal: |
| 32 | case gl::AlphaTestFunc::Greater: |
| 33 | case gl::AlphaTestFunc::Lequal: |
| 34 | case gl::AlphaTestFunc::Less: |
| 35 | case gl::AlphaTestFunc::Never: |
| 36 | case gl::AlphaTestFunc::NotEqual: |
| 37 | return true; |
| 38 | default: |
| 39 | context->handleError(gl::InvalidEnum() << gl::kErrorEnumNotSupported); |
| 40 | return false; |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | } // anonymous namespace |
Geoff Lang | 2aaa7b4 | 2018-01-12 17:17:27 -0500 | [diff] [blame] | 45 | |
| 46 | namespace gl |
| 47 | { |
| 48 | |
Lingfeng Yang | 13b708f | 2018-03-21 12:14:10 -0700 | [diff] [blame] | 49 | bool ValidateAlphaFunc(Context *context, AlphaTestFunc func, GLfloat ref) |
Geoff Lang | 2aaa7b4 | 2018-01-12 17:17:27 -0500 | [diff] [blame] | 50 | { |
Lingfeng Yang | 13b708f | 2018-03-21 12:14:10 -0700 | [diff] [blame] | 51 | ANGLE_VALIDATE_IS_GLES1(context); |
| 52 | return ValidateAlphaFuncCommon(context, func); |
Geoff Lang | 2aaa7b4 | 2018-01-12 17:17:27 -0500 | [diff] [blame] | 53 | } |
| 54 | |
Lingfeng Yang | 13b708f | 2018-03-21 12:14:10 -0700 | [diff] [blame] | 55 | bool ValidateAlphaFuncx(Context *context, AlphaTestFunc func, GLfixed ref) |
Geoff Lang | 2aaa7b4 | 2018-01-12 17:17:27 -0500 | [diff] [blame] | 56 | { |
Lingfeng Yang | 13b708f | 2018-03-21 12:14:10 -0700 | [diff] [blame] | 57 | ANGLE_VALIDATE_IS_GLES1(context); |
| 58 | return ValidateAlphaFuncCommon(context, func); |
Geoff Lang | 2aaa7b4 | 2018-01-12 17:17:27 -0500 | [diff] [blame] | 59 | } |
| 60 | |
| 61 | bool ValidateClearColorx(Context *context, GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha) |
| 62 | { |
| 63 | UNIMPLEMENTED(); |
| 64 | return true; |
| 65 | } |
| 66 | |
| 67 | bool ValidateClearDepthx(Context *context, GLfixed depth) |
| 68 | { |
| 69 | UNIMPLEMENTED(); |
| 70 | return true; |
| 71 | } |
| 72 | |
| 73 | bool ValidateClientActiveTexture(Context *context, GLenum texture) |
| 74 | { |
Lingfeng Yang | 96310cd | 2018-03-28 11:56:28 -0700 | [diff] [blame^] | 75 | ANGLE_VALIDATE_IS_GLES1(context); |
| 76 | if (texture < GL_TEXTURE0 || |
| 77 | texture > GL_TEXTURE0 + context->getCaps().maxMultitextureUnits - 1) |
| 78 | { |
| 79 | ANGLE_VALIDATION_ERR(context, InvalidEnum(), InvalidMultitextureUnit); |
| 80 | return false; |
| 81 | } |
| 82 | |
Geoff Lang | 2aaa7b4 | 2018-01-12 17:17:27 -0500 | [diff] [blame] | 83 | return true; |
| 84 | } |
| 85 | |
| 86 | bool ValidateClipPlanef(Context *context, GLenum p, const GLfloat *eqn) |
| 87 | { |
| 88 | UNIMPLEMENTED(); |
| 89 | return true; |
| 90 | } |
| 91 | |
| 92 | bool ValidateClipPlanex(Context *context, GLenum plane, const GLfixed *equation) |
| 93 | { |
| 94 | UNIMPLEMENTED(); |
| 95 | return true; |
| 96 | } |
| 97 | |
| 98 | bool ValidateColor4f(Context *context, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha) |
| 99 | { |
| 100 | UNIMPLEMENTED(); |
| 101 | return true; |
| 102 | } |
| 103 | |
| 104 | bool ValidateColor4ub(Context *context, GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha) |
| 105 | { |
| 106 | UNIMPLEMENTED(); |
| 107 | return true; |
| 108 | } |
| 109 | |
| 110 | bool ValidateColor4x(Context *context, GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha) |
| 111 | { |
| 112 | UNIMPLEMENTED(); |
| 113 | return true; |
| 114 | } |
| 115 | |
| 116 | bool ValidateColorPointer(Context *context, |
| 117 | GLint size, |
| 118 | GLenum type, |
| 119 | GLsizei stride, |
| 120 | const void *pointer) |
| 121 | { |
| 122 | UNIMPLEMENTED(); |
| 123 | return true; |
| 124 | } |
| 125 | |
| 126 | bool ValidateCullFace(Context *context, GLenum mode) |
| 127 | { |
| 128 | UNIMPLEMENTED(); |
| 129 | return true; |
| 130 | } |
| 131 | |
| 132 | bool ValidateDepthRangex(Context *context, GLfixed n, GLfixed f) |
| 133 | { |
| 134 | UNIMPLEMENTED(); |
| 135 | return true; |
| 136 | } |
| 137 | |
| 138 | bool ValidateDisableClientState(Context *context, GLenum array) |
| 139 | { |
| 140 | UNIMPLEMENTED(); |
| 141 | return true; |
| 142 | } |
| 143 | |
| 144 | bool ValidateEnableClientState(Context *context, GLenum array) |
| 145 | { |
| 146 | UNIMPLEMENTED(); |
| 147 | return true; |
| 148 | } |
| 149 | |
| 150 | bool ValidateFogf(Context *context, GLenum pname, GLfloat param) |
| 151 | { |
| 152 | UNIMPLEMENTED(); |
| 153 | return true; |
| 154 | } |
| 155 | |
| 156 | bool ValidateFogfv(Context *context, GLenum pname, const GLfloat *params) |
| 157 | { |
| 158 | UNIMPLEMENTED(); |
| 159 | return true; |
| 160 | } |
| 161 | |
| 162 | bool ValidateFogx(Context *context, GLenum pname, GLfixed param) |
| 163 | { |
| 164 | UNIMPLEMENTED(); |
| 165 | return true; |
| 166 | } |
| 167 | |
| 168 | bool ValidateFogxv(Context *context, GLenum pname, const GLfixed *param) |
| 169 | { |
| 170 | UNIMPLEMENTED(); |
| 171 | return true; |
| 172 | } |
| 173 | |
| 174 | bool ValidateFrustumf(Context *context, |
| 175 | GLfloat l, |
| 176 | GLfloat r, |
| 177 | GLfloat b, |
| 178 | GLfloat t, |
| 179 | GLfloat n, |
| 180 | GLfloat f) |
| 181 | { |
| 182 | UNIMPLEMENTED(); |
| 183 | return true; |
| 184 | } |
| 185 | |
| 186 | bool ValidateFrustumx(Context *context, |
| 187 | GLfixed l, |
| 188 | GLfixed r, |
| 189 | GLfixed b, |
| 190 | GLfixed t, |
| 191 | GLfixed n, |
| 192 | GLfixed f) |
| 193 | { |
| 194 | UNIMPLEMENTED(); |
| 195 | return true; |
| 196 | } |
| 197 | |
| 198 | bool ValidateGetBufferParameteriv(Context *context, GLenum target, GLenum pname, GLint *params) |
| 199 | { |
| 200 | UNIMPLEMENTED(); |
| 201 | return true; |
| 202 | } |
| 203 | |
| 204 | bool ValidateGetClipPlanef(Context *context, GLenum plane, GLfloat *equation) |
| 205 | { |
| 206 | UNIMPLEMENTED(); |
| 207 | return true; |
| 208 | } |
| 209 | |
| 210 | bool ValidateGetClipPlanex(Context *context, GLenum plane, GLfixed *equation) |
| 211 | { |
| 212 | UNIMPLEMENTED(); |
| 213 | return true; |
| 214 | } |
| 215 | |
| 216 | bool ValidateGetFixedv(Context *context, GLenum pname, GLfixed *params) |
| 217 | { |
| 218 | UNIMPLEMENTED(); |
| 219 | return true; |
| 220 | } |
| 221 | |
| 222 | bool ValidateGetLightfv(Context *context, GLenum light, GLenum pname, GLfloat *params) |
| 223 | { |
| 224 | UNIMPLEMENTED(); |
| 225 | return true; |
| 226 | } |
| 227 | |
| 228 | bool ValidateGetLightxv(Context *context, GLenum light, GLenum pname, GLfixed *params) |
| 229 | { |
| 230 | UNIMPLEMENTED(); |
| 231 | return true; |
| 232 | } |
| 233 | |
| 234 | bool ValidateGetMaterialfv(Context *context, GLenum face, GLenum pname, GLfloat *params) |
| 235 | { |
| 236 | UNIMPLEMENTED(); |
| 237 | return true; |
| 238 | } |
| 239 | |
| 240 | bool ValidateGetMaterialxv(Context *context, GLenum face, GLenum pname, GLfixed *params) |
| 241 | { |
| 242 | UNIMPLEMENTED(); |
| 243 | return true; |
| 244 | } |
| 245 | |
| 246 | bool ValidateGetPointerv(Context *context, GLenum pname, void **params) |
| 247 | { |
| 248 | UNIMPLEMENTED(); |
| 249 | return true; |
| 250 | } |
| 251 | |
| 252 | bool ValidateGetTexEnvfv(Context *context, GLenum target, GLenum pname, GLfloat *params) |
| 253 | { |
| 254 | UNIMPLEMENTED(); |
| 255 | return true; |
| 256 | } |
| 257 | |
| 258 | bool ValidateGetTexEnviv(Context *context, GLenum target, GLenum pname, GLint *params) |
| 259 | { |
| 260 | UNIMPLEMENTED(); |
| 261 | return true; |
| 262 | } |
| 263 | |
| 264 | bool ValidateGetTexEnvxv(Context *context, GLenum target, GLenum pname, GLfixed *params) |
| 265 | { |
| 266 | UNIMPLEMENTED(); |
| 267 | return true; |
| 268 | } |
| 269 | |
Corentin Wallez | f0e89be | 2017-11-08 14:00:32 -0800 | [diff] [blame] | 270 | bool ValidateGetTexParameterxv(Context *context, TextureType target, GLenum pname, GLfixed *params) |
Geoff Lang | 2aaa7b4 | 2018-01-12 17:17:27 -0500 | [diff] [blame] | 271 | { |
| 272 | UNIMPLEMENTED(); |
| 273 | return true; |
| 274 | } |
| 275 | |
| 276 | bool ValidateLightModelf(Context *context, GLenum pname, GLfloat param) |
| 277 | { |
| 278 | UNIMPLEMENTED(); |
| 279 | return true; |
| 280 | } |
| 281 | |
| 282 | bool ValidateLightModelfv(Context *context, GLenum pname, const GLfloat *params) |
| 283 | { |
| 284 | UNIMPLEMENTED(); |
| 285 | return true; |
| 286 | } |
| 287 | |
| 288 | bool ValidateLightModelx(Context *context, GLenum pname, GLfixed param) |
| 289 | { |
| 290 | UNIMPLEMENTED(); |
| 291 | return true; |
| 292 | } |
| 293 | |
| 294 | bool ValidateLightModelxv(Context *context, GLenum pname, const GLfixed *param) |
| 295 | { |
| 296 | UNIMPLEMENTED(); |
| 297 | return true; |
| 298 | } |
| 299 | |
| 300 | bool ValidateLightf(Context *context, GLenum light, GLenum pname, GLfloat param) |
| 301 | { |
| 302 | UNIMPLEMENTED(); |
| 303 | return true; |
| 304 | } |
| 305 | |
| 306 | bool ValidateLightfv(Context *context, GLenum light, GLenum pname, const GLfloat *params) |
| 307 | { |
| 308 | UNIMPLEMENTED(); |
| 309 | return true; |
| 310 | } |
| 311 | |
| 312 | bool ValidateLightx(Context *context, GLenum light, GLenum pname, GLfixed param) |
| 313 | { |
| 314 | UNIMPLEMENTED(); |
| 315 | return true; |
| 316 | } |
| 317 | |
| 318 | bool ValidateLightxv(Context *context, GLenum light, GLenum pname, const GLfixed *params) |
| 319 | { |
| 320 | UNIMPLEMENTED(); |
| 321 | return true; |
| 322 | } |
| 323 | |
| 324 | bool ValidateLineWidthx(Context *context, GLfixed width) |
| 325 | { |
| 326 | UNIMPLEMENTED(); |
| 327 | return true; |
| 328 | } |
| 329 | |
| 330 | bool ValidateLoadIdentity(Context *context) |
| 331 | { |
| 332 | UNIMPLEMENTED(); |
| 333 | return true; |
| 334 | } |
| 335 | |
| 336 | bool ValidateLoadMatrixf(Context *context, const GLfloat *m) |
| 337 | { |
| 338 | UNIMPLEMENTED(); |
| 339 | return true; |
| 340 | } |
| 341 | |
| 342 | bool ValidateLoadMatrixx(Context *context, const GLfixed *m) |
| 343 | { |
| 344 | UNIMPLEMENTED(); |
| 345 | return true; |
| 346 | } |
| 347 | |
| 348 | bool ValidateLogicOp(Context *context, GLenum opcode) |
| 349 | { |
| 350 | UNIMPLEMENTED(); |
| 351 | return true; |
| 352 | } |
| 353 | |
| 354 | bool ValidateMaterialf(Context *context, GLenum face, GLenum pname, GLfloat param) |
| 355 | { |
| 356 | UNIMPLEMENTED(); |
| 357 | return true; |
| 358 | } |
| 359 | |
| 360 | bool ValidateMaterialfv(Context *context, GLenum face, GLenum pname, const GLfloat *params) |
| 361 | { |
| 362 | UNIMPLEMENTED(); |
| 363 | return true; |
| 364 | } |
| 365 | |
| 366 | bool ValidateMaterialx(Context *context, GLenum face, GLenum pname, GLfixed param) |
| 367 | { |
| 368 | UNIMPLEMENTED(); |
| 369 | return true; |
| 370 | } |
| 371 | |
| 372 | bool ValidateMaterialxv(Context *context, GLenum face, GLenum pname, const GLfixed *param) |
| 373 | { |
| 374 | UNIMPLEMENTED(); |
| 375 | return true; |
| 376 | } |
| 377 | |
| 378 | bool ValidateMatrixMode(Context *context, GLenum mode) |
| 379 | { |
| 380 | UNIMPLEMENTED(); |
| 381 | return true; |
| 382 | } |
| 383 | |
| 384 | bool ValidateMultMatrixf(Context *context, const GLfloat *m) |
| 385 | { |
| 386 | UNIMPLEMENTED(); |
| 387 | return true; |
| 388 | } |
| 389 | |
| 390 | bool ValidateMultMatrixx(Context *context, const GLfixed *m) |
| 391 | { |
| 392 | UNIMPLEMENTED(); |
| 393 | return true; |
| 394 | } |
| 395 | |
| 396 | bool ValidateMultiTexCoord4f(Context *context, |
| 397 | GLenum target, |
| 398 | GLfloat s, |
| 399 | GLfloat t, |
| 400 | GLfloat r, |
| 401 | GLfloat q) |
| 402 | { |
| 403 | UNIMPLEMENTED(); |
| 404 | return true; |
| 405 | } |
| 406 | |
| 407 | bool ValidateMultiTexCoord4x(Context *context, |
| 408 | GLenum texture, |
| 409 | GLfixed s, |
| 410 | GLfixed t, |
| 411 | GLfixed r, |
| 412 | GLfixed q) |
| 413 | { |
| 414 | UNIMPLEMENTED(); |
| 415 | return true; |
| 416 | } |
| 417 | |
| 418 | bool ValidateNormal3f(Context *context, GLfloat nx, GLfloat ny, GLfloat nz) |
| 419 | { |
| 420 | UNIMPLEMENTED(); |
| 421 | return true; |
| 422 | } |
| 423 | |
| 424 | bool ValidateNormal3x(Context *context, GLfixed nx, GLfixed ny, GLfixed nz) |
| 425 | { |
| 426 | UNIMPLEMENTED(); |
| 427 | return true; |
| 428 | } |
| 429 | |
| 430 | bool ValidateNormalPointer(Context *context, GLenum type, GLsizei stride, const void *pointer) |
| 431 | { |
| 432 | UNIMPLEMENTED(); |
| 433 | return true; |
| 434 | } |
| 435 | |
| 436 | bool ValidateOrthof(Context *context, |
| 437 | GLfloat l, |
| 438 | GLfloat r, |
| 439 | GLfloat b, |
| 440 | GLfloat t, |
| 441 | GLfloat n, |
| 442 | GLfloat f) |
| 443 | { |
| 444 | UNIMPLEMENTED(); |
| 445 | return true; |
| 446 | } |
| 447 | |
| 448 | bool ValidateOrthox(Context *context, |
| 449 | GLfixed l, |
| 450 | GLfixed r, |
| 451 | GLfixed b, |
| 452 | GLfixed t, |
| 453 | GLfixed n, |
| 454 | GLfixed f) |
| 455 | { |
| 456 | UNIMPLEMENTED(); |
| 457 | return true; |
| 458 | } |
| 459 | |
| 460 | bool ValidatePointParameterf(Context *context, GLenum pname, GLfloat param) |
| 461 | { |
| 462 | UNIMPLEMENTED(); |
| 463 | return true; |
| 464 | } |
| 465 | |
| 466 | bool ValidatePointParameterfv(Context *context, GLenum pname, const GLfloat *params) |
| 467 | { |
| 468 | UNIMPLEMENTED(); |
| 469 | return true; |
| 470 | } |
| 471 | |
| 472 | bool ValidatePointParameterx(Context *context, GLenum pname, GLfixed param) |
| 473 | { |
| 474 | UNIMPLEMENTED(); |
| 475 | return true; |
| 476 | } |
| 477 | |
| 478 | bool ValidatePointParameterxv(Context *context, GLenum pname, const GLfixed *params) |
| 479 | { |
| 480 | UNIMPLEMENTED(); |
| 481 | return true; |
| 482 | } |
| 483 | |
| 484 | bool ValidatePointSize(Context *context, GLfloat size) |
| 485 | { |
| 486 | UNIMPLEMENTED(); |
| 487 | return true; |
| 488 | } |
| 489 | |
| 490 | bool ValidatePointSizex(Context *context, GLfixed size) |
| 491 | { |
| 492 | UNIMPLEMENTED(); |
| 493 | return true; |
| 494 | } |
| 495 | |
| 496 | bool ValidatePolygonOffsetx(Context *context, GLfixed factor, GLfixed units) |
| 497 | { |
| 498 | UNIMPLEMENTED(); |
| 499 | return true; |
| 500 | } |
| 501 | |
| 502 | bool ValidatePopMatrix(Context *context) |
| 503 | { |
| 504 | UNIMPLEMENTED(); |
| 505 | return true; |
| 506 | } |
| 507 | |
| 508 | bool ValidatePushMatrix(Context *context) |
| 509 | { |
| 510 | UNIMPLEMENTED(); |
| 511 | return true; |
| 512 | } |
| 513 | |
| 514 | bool ValidateRotatef(Context *context, GLfloat angle, GLfloat x, GLfloat y, GLfloat z) |
| 515 | { |
| 516 | UNIMPLEMENTED(); |
| 517 | return true; |
| 518 | } |
| 519 | |
| 520 | bool ValidateRotatex(Context *context, GLfixed angle, GLfixed x, GLfixed y, GLfixed z) |
| 521 | { |
| 522 | UNIMPLEMENTED(); |
| 523 | return true; |
| 524 | } |
| 525 | |
| 526 | bool ValidateSampleCoveragex(Context *context, GLclampx value, GLboolean invert) |
| 527 | { |
| 528 | UNIMPLEMENTED(); |
| 529 | return true; |
| 530 | } |
| 531 | |
| 532 | bool ValidateScalef(Context *context, GLfloat x, GLfloat y, GLfloat z) |
| 533 | { |
| 534 | UNIMPLEMENTED(); |
| 535 | return true; |
| 536 | } |
| 537 | |
| 538 | bool ValidateScalex(Context *context, GLfixed x, GLfixed y, GLfixed z) |
| 539 | { |
| 540 | UNIMPLEMENTED(); |
| 541 | return true; |
| 542 | } |
| 543 | |
| 544 | bool ValidateShadeModel(Context *context, GLenum mode) |
| 545 | { |
| 546 | UNIMPLEMENTED(); |
| 547 | return true; |
| 548 | } |
| 549 | |
| 550 | bool ValidateTexCoordPointer(Context *context, |
| 551 | GLint size, |
| 552 | GLenum type, |
| 553 | GLsizei stride, |
| 554 | const void *pointer) |
| 555 | { |
| 556 | UNIMPLEMENTED(); |
| 557 | return true; |
| 558 | } |
| 559 | |
| 560 | bool ValidateTexEnvf(Context *context, GLenum target, GLenum pname, GLfloat param) |
| 561 | { |
| 562 | UNIMPLEMENTED(); |
| 563 | return true; |
| 564 | } |
| 565 | |
| 566 | bool ValidateTexEnvfv(Context *context, GLenum target, GLenum pname, const GLfloat *params) |
| 567 | { |
| 568 | UNIMPLEMENTED(); |
| 569 | return true; |
| 570 | } |
| 571 | |
| 572 | bool ValidateTexEnvi(Context *context, GLenum target, GLenum pname, GLint param) |
| 573 | { |
| 574 | UNIMPLEMENTED(); |
| 575 | return true; |
| 576 | } |
| 577 | |
| 578 | bool ValidateTexEnviv(Context *context, GLenum target, GLenum pname, const GLint *params) |
| 579 | { |
| 580 | UNIMPLEMENTED(); |
| 581 | return true; |
| 582 | } |
| 583 | |
| 584 | bool ValidateTexEnvx(Context *context, GLenum target, GLenum pname, GLfixed param) |
| 585 | { |
| 586 | UNIMPLEMENTED(); |
| 587 | return true; |
| 588 | } |
| 589 | |
| 590 | bool ValidateTexEnvxv(Context *context, GLenum target, GLenum pname, const GLfixed *params) |
| 591 | { |
| 592 | UNIMPLEMENTED(); |
| 593 | return true; |
| 594 | } |
| 595 | |
Corentin Wallez | f0e89be | 2017-11-08 14:00:32 -0800 | [diff] [blame] | 596 | bool ValidateTexParameterx(Context *context, TextureType target, GLenum pname, GLfixed param) |
Geoff Lang | 2aaa7b4 | 2018-01-12 17:17:27 -0500 | [diff] [blame] | 597 | { |
| 598 | UNIMPLEMENTED(); |
| 599 | return true; |
| 600 | } |
| 601 | |
Corentin Wallez | f0e89be | 2017-11-08 14:00:32 -0800 | [diff] [blame] | 602 | bool ValidateTexParameterxv(Context *context, |
| 603 | TextureType target, |
| 604 | GLenum pname, |
| 605 | const GLfixed *params) |
Geoff Lang | 2aaa7b4 | 2018-01-12 17:17:27 -0500 | [diff] [blame] | 606 | { |
| 607 | UNIMPLEMENTED(); |
| 608 | return true; |
| 609 | } |
| 610 | |
| 611 | bool ValidateTranslatef(Context *context, GLfloat x, GLfloat y, GLfloat z) |
| 612 | { |
| 613 | UNIMPLEMENTED(); |
| 614 | return true; |
| 615 | } |
| 616 | |
| 617 | bool ValidateTranslatex(Context *context, GLfixed x, GLfixed y, GLfixed z) |
| 618 | { |
| 619 | UNIMPLEMENTED(); |
| 620 | return true; |
| 621 | } |
| 622 | |
| 623 | bool ValidateVertexPointer(Context *context, |
| 624 | GLint size, |
| 625 | GLenum type, |
| 626 | GLsizei stride, |
| 627 | const void *pointer) |
| 628 | { |
| 629 | UNIMPLEMENTED(); |
| 630 | return true; |
| 631 | } |
| 632 | |
| 633 | bool ValidateDrawTexfOES(Context *context, |
| 634 | GLfloat x, |
| 635 | GLfloat y, |
| 636 | GLfloat z, |
| 637 | GLfloat width, |
| 638 | GLfloat height) |
| 639 | { |
| 640 | UNIMPLEMENTED(); |
| 641 | return true; |
| 642 | } |
| 643 | |
| 644 | bool ValidateDrawTexfvOES(Context *context, const GLfloat *coords) |
| 645 | { |
| 646 | UNIMPLEMENTED(); |
| 647 | return true; |
| 648 | } |
| 649 | |
| 650 | bool ValidateDrawTexiOES(Context *context, GLint x, GLint y, GLint z, GLint width, GLint height) |
| 651 | { |
| 652 | UNIMPLEMENTED(); |
| 653 | return true; |
| 654 | } |
| 655 | |
| 656 | bool ValidateDrawTexivOES(Context *context, const GLint *coords) |
| 657 | { |
| 658 | UNIMPLEMENTED(); |
| 659 | return true; |
| 660 | } |
| 661 | |
| 662 | bool ValidateDrawTexsOES(Context *context, |
| 663 | GLshort x, |
| 664 | GLshort y, |
| 665 | GLshort z, |
| 666 | GLshort width, |
| 667 | GLshort height) |
| 668 | { |
| 669 | UNIMPLEMENTED(); |
| 670 | return true; |
| 671 | } |
| 672 | |
| 673 | bool ValidateDrawTexsvOES(Context *context, const GLshort *coords) |
| 674 | { |
| 675 | UNIMPLEMENTED(); |
| 676 | return true; |
| 677 | } |
| 678 | |
| 679 | bool ValidateDrawTexxOES(Context *context, |
| 680 | GLfixed x, |
| 681 | GLfixed y, |
| 682 | GLfixed z, |
| 683 | GLfixed width, |
| 684 | GLfixed height) |
| 685 | { |
| 686 | UNIMPLEMENTED(); |
| 687 | return true; |
| 688 | } |
| 689 | |
| 690 | bool ValidateDrawTexxvOES(Context *context, const GLfixed *coords) |
| 691 | { |
| 692 | UNIMPLEMENTED(); |
| 693 | return true; |
| 694 | } |
| 695 | |
| 696 | bool ValidateCurrentPaletteMatrixOES(Context *context, GLuint matrixpaletteindex) |
| 697 | { |
| 698 | UNIMPLEMENTED(); |
| 699 | return true; |
| 700 | } |
| 701 | |
| 702 | bool ValidateLoadPaletteFromModelViewMatrixOES(Context *context) |
| 703 | { |
| 704 | UNIMPLEMENTED(); |
| 705 | return true; |
| 706 | } |
| 707 | |
| 708 | bool ValidateMatrixIndexPointerOES(Context *context, |
| 709 | GLint size, |
| 710 | GLenum type, |
| 711 | GLsizei stride, |
| 712 | const void *pointer) |
| 713 | { |
| 714 | UNIMPLEMENTED(); |
| 715 | return true; |
| 716 | } |
| 717 | |
| 718 | bool ValidateWeightPointerOES(Context *context, |
| 719 | GLint size, |
| 720 | GLenum type, |
| 721 | GLsizei stride, |
| 722 | const void *pointer) |
| 723 | { |
| 724 | UNIMPLEMENTED(); |
| 725 | return true; |
| 726 | } |
| 727 | |
| 728 | bool ValidatePointSizePointerOES(Context *context, GLenum type, GLsizei stride, const void *pointer) |
| 729 | { |
| 730 | UNIMPLEMENTED(); |
| 731 | return true; |
| 732 | } |
| 733 | |
| 734 | bool ValidateQueryMatrixxOES(Context *context, GLfixed *mantissa, GLint *exponent) |
| 735 | { |
| 736 | UNIMPLEMENTED(); |
| 737 | return true; |
| 738 | } |
Lingfeng Yang | a064878 | 2018-03-12 14:45:25 -0700 | [diff] [blame] | 739 | |
| 740 | bool ValidateGenFramebuffersOES(Context *context, GLsizei n, GLuint *framebuffers) |
| 741 | { |
| 742 | UNIMPLEMENTED(); |
| 743 | return true; |
| 744 | } |
| 745 | |
| 746 | bool ValidateDeleteFramebuffersOES(Context *context, GLsizei n, const GLuint *framebuffers) |
| 747 | { |
| 748 | UNIMPLEMENTED(); |
| 749 | return true; |
| 750 | } |
| 751 | |
| 752 | bool ValidateGenRenderbuffersOES(Context *context, GLsizei n, GLuint *renderbuffers) |
| 753 | { |
| 754 | UNIMPLEMENTED(); |
| 755 | return true; |
| 756 | } |
| 757 | |
| 758 | bool ValidateDeleteRenderbuffersOES(Context *context, GLsizei n, const GLuint *renderbuffers) |
| 759 | { |
| 760 | UNIMPLEMENTED(); |
| 761 | return true; |
| 762 | } |
| 763 | |
| 764 | bool ValidateBindFramebufferOES(Context *context, GLenum target, GLuint framebuffer) |
| 765 | { |
| 766 | UNIMPLEMENTED(); |
| 767 | return true; |
| 768 | } |
| 769 | |
| 770 | bool ValidateBindRenderbufferOES(Context *context, GLenum target, GLuint renderbuffer) |
| 771 | { |
| 772 | UNIMPLEMENTED(); |
| 773 | return true; |
| 774 | } |
| 775 | |
| 776 | bool ValidateCheckFramebufferStatusOES(Context *context, GLenum target) |
| 777 | { |
| 778 | UNIMPLEMENTED(); |
| 779 | return true; |
| 780 | } |
| 781 | |
| 782 | bool ValidateFramebufferRenderbufferOES(Context *context, |
| 783 | GLenum target, |
| 784 | GLenum attachment, |
| 785 | GLenum rbtarget, |
| 786 | GLuint renderbuffer) |
| 787 | { |
| 788 | UNIMPLEMENTED(); |
| 789 | return true; |
| 790 | } |
| 791 | |
| 792 | bool ValidateFramebufferTexture2DOES(Context *context, |
| 793 | GLenum target, |
| 794 | GLenum attachment, |
| 795 | TextureTarget textarget, |
| 796 | GLuint texture, |
| 797 | GLint level) |
| 798 | { |
| 799 | UNIMPLEMENTED(); |
| 800 | return true; |
| 801 | } |
| 802 | |
| 803 | bool ValidateGenerateMipmapOES(Context *context, TextureType target) |
| 804 | { |
| 805 | UNIMPLEMENTED(); |
| 806 | return true; |
| 807 | } |
| 808 | |
| 809 | bool ValidateGetFramebufferAttachmentParameterivOES(Context *context, |
| 810 | GLenum target, |
| 811 | GLenum attachment, |
| 812 | GLenum pname, |
| 813 | GLint *params) |
| 814 | { |
| 815 | UNIMPLEMENTED(); |
| 816 | return true; |
| 817 | } |
| 818 | |
| 819 | bool ValidateGetRenderbufferParameterivOES(Context *context, |
| 820 | GLenum target, |
| 821 | GLenum pname, |
| 822 | GLint *params) |
| 823 | { |
| 824 | UNIMPLEMENTED(); |
| 825 | return true; |
| 826 | } |
| 827 | |
| 828 | bool ValidateIsFramebufferOES(Context *context, GLuint framebuffer) |
| 829 | { |
| 830 | UNIMPLEMENTED(); |
| 831 | return true; |
| 832 | } |
| 833 | |
| 834 | bool ValidateIsRenderbufferOES(Context *context, GLuint renderbuffer) |
| 835 | { |
| 836 | UNIMPLEMENTED(); |
| 837 | return true; |
| 838 | } |
| 839 | |
| 840 | bool ValidateRenderbufferStorageOES(Context *context, |
| 841 | GLenum target, |
| 842 | GLint internalformat, |
| 843 | GLsizei width, |
| 844 | GLsizei height) |
| 845 | { |
| 846 | UNIMPLEMENTED(); |
| 847 | return true; |
| 848 | } |
| 849 | |
| 850 | // GL_OES_texture_cube_map |
| 851 | |
| 852 | bool ValidateGetTexGenfvOES(Context *context, GLenum coord, GLenum pname, GLfloat *params) |
| 853 | { |
| 854 | UNIMPLEMENTED(); |
| 855 | return true; |
| 856 | } |
| 857 | |
| 858 | bool ValidateGetTexGenivOES(Context *context, GLenum coord, GLenum pname, int *params) |
| 859 | { |
| 860 | UNIMPLEMENTED(); |
| 861 | return true; |
| 862 | } |
| 863 | |
| 864 | bool ValidateGetTexGenxvOES(Context *context, GLenum coord, GLenum pname, GLfixed *params) |
| 865 | { |
| 866 | UNIMPLEMENTED(); |
| 867 | return true; |
| 868 | } |
| 869 | |
| 870 | bool ValidateTexGenfvOES(Context *context, GLenum coord, GLenum pname, const GLfloat *params) |
| 871 | { |
| 872 | UNIMPLEMENTED(); |
| 873 | return true; |
| 874 | } |
| 875 | |
| 876 | bool ValidateTexGenivOES(Context *context, GLenum coord, GLenum pname, const GLint *param) |
| 877 | { |
| 878 | UNIMPLEMENTED(); |
| 879 | return true; |
| 880 | } |
| 881 | |
| 882 | bool ValidateTexGenxvOES(Context *context, GLenum coord, GLenum pname, const GLint *param) |
| 883 | { |
| 884 | UNIMPLEMENTED(); |
| 885 | return true; |
| 886 | } |
| 887 | |
| 888 | bool ValidateTexGenfOES(Context *context, GLenum coord, GLenum pname, GLfloat param) |
| 889 | { |
| 890 | UNIMPLEMENTED(); |
| 891 | return true; |
| 892 | } |
| 893 | |
| 894 | bool ValidateTexGeniOES(Context *context, GLenum coord, GLenum pname, GLint param) |
| 895 | { |
| 896 | UNIMPLEMENTED(); |
| 897 | return true; |
| 898 | } |
| 899 | |
| 900 | bool ValidateTexGenxOES(Context *context, GLenum coord, GLenum pname, GLfixed param) |
| 901 | { |
| 902 | UNIMPLEMENTED(); |
| 903 | return true; |
| 904 | } |
Geoff Lang | 2aaa7b4 | 2018-01-12 17:17:27 -0500 | [diff] [blame] | 905 | } |