Don't show supervised user as "already on this device" while they're being imported.
[chromium-blink-merge.git] / gpu / command_buffer / service / gles2_cmd_validation_implementation_autogen.h
blob69cf3c4c7f1c485397d4e4e8eedc1a807fc5e9e2
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 // This file is auto-generated from
6 // gpu/command_buffer/build_gles2_cmd_buffer.py
7 // It's formatted by clang-format using chromium coding style:
8 // clang-format -i -style=chromium filename
9 // DO NOT EDIT!
11 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_IMPLEMENTATION_AUTOGEN_H_
12 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_IMPLEMENTATION_AUTOGEN_H_
14 static const GLenum valid_attachment_table[] = {
15 GL_COLOR_ATTACHMENT0,
16 GL_DEPTH_ATTACHMENT,
17 GL_STENCIL_ATTACHMENT,
20 static const GLenum valid_attachment_table_es3[] = {
21 GL_DEPTH_STENCIL_ATTACHMENT,
24 static const GLenum valid_backbuffer_attachment_table[] = {
25 GL_COLOR_EXT,
26 GL_DEPTH_EXT,
27 GL_STENCIL_EXT,
30 static const GLenum valid_blit_filter_table[] = {
31 GL_NEAREST,
32 GL_LINEAR,
35 static const GLenum valid_buffer_mode_table[] = {
36 GL_INTERLEAVED_ATTRIBS,
37 GL_SEPARATE_ATTRIBS,
40 static const GLenum valid_buffer_parameter_table[] = {
41 GL_BUFFER_SIZE,
42 GL_BUFFER_USAGE,
45 static const GLenum valid_buffer_parameter_table_es3[] = {
46 GL_BUFFER_ACCESS_FLAGS,
47 GL_BUFFER_MAPPED,
48 GL_BUFFER_MAP_LENGTH,
49 GL_BUFFER_MAP_OFFSET,
52 static const GLenum valid_buffer_target_table[] = {
53 GL_ARRAY_BUFFER,
54 GL_ELEMENT_ARRAY_BUFFER,
57 static const GLenum valid_buffer_target_table_es3[] = {
58 GL_COPY_READ_BUFFER,
59 GL_COPY_WRITE_BUFFER,
60 GL_PIXEL_PACK_BUFFER,
61 GL_PIXEL_UNPACK_BUFFER,
62 GL_TRANSFORM_FEEDBACK_BUFFER,
63 GL_UNIFORM_BUFFER,
66 static const GLenum valid_buffer_usage_table[] = {
67 GL_STREAM_DRAW,
68 GL_STATIC_DRAW,
69 GL_DYNAMIC_DRAW,
72 static const GLenum valid_buffer_usage_table_es3[] = {
73 GL_STREAM_READ,
74 GL_STREAM_COPY,
75 GL_STATIC_READ,
76 GL_STATIC_COPY,
77 GL_DYNAMIC_READ,
78 GL_DYNAMIC_COPY,
81 static const GLenum valid_bufferfi_table[] = {
82 GL_DEPTH_STENCIL,
85 static const GLenum valid_bufferfv_table[] = {
86 GL_COLOR,
87 GL_DEPTH,
90 static const GLenum valid_bufferiv_table[] = {
91 GL_COLOR,
92 GL_STENCIL,
95 static const GLenum valid_bufferuiv_table[] = {
96 GL_COLOR,
99 static const GLenum valid_capability_table[] = {
100 GL_BLEND,
101 GL_CULL_FACE,
102 GL_DEPTH_TEST,
103 GL_DITHER,
104 GL_POLYGON_OFFSET_FILL,
105 GL_SAMPLE_ALPHA_TO_COVERAGE,
106 GL_SAMPLE_COVERAGE,
107 GL_SCISSOR_TEST,
108 GL_STENCIL_TEST,
111 static const GLenum valid_capability_table_es3[] = {
112 GL_RASTERIZER_DISCARD,
113 GL_PRIMITIVE_RESTART_FIXED_INDEX,
116 static const GLenum valid_cmp_function_table[] = {
117 GL_NEVER,
118 GL_LESS,
119 GL_EQUAL,
120 GL_LEQUAL,
121 GL_GREATER,
122 GL_NOTEQUAL,
123 GL_GEQUAL,
124 GL_ALWAYS,
127 static const GLenum valid_compressed_texture_format_table_es3[] = {
128 GL_COMPRESSED_R11_EAC,
129 GL_COMPRESSED_SIGNED_R11_EAC,
130 GL_COMPRESSED_RG11_EAC,
131 GL_COMPRESSED_SIGNED_RG11_EAC,
132 GL_COMPRESSED_RGB8_ETC2,
133 GL_COMPRESSED_SRGB8_ETC2,
134 GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2,
135 GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2,
136 GL_COMPRESSED_RGBA8_ETC2_EAC,
137 GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC,
140 static const GLenum valid_draw_mode_table[] = {
141 GL_POINTS,
142 GL_LINE_STRIP,
143 GL_LINE_LOOP,
144 GL_LINES,
145 GL_TRIANGLE_STRIP,
146 GL_TRIANGLE_FAN,
147 GL_TRIANGLES,
150 static const GLenum valid_dst_blend_factor_table[] = {
151 GL_ZERO,
152 GL_ONE,
153 GL_SRC_COLOR,
154 GL_ONE_MINUS_SRC_COLOR,
155 GL_DST_COLOR,
156 GL_ONE_MINUS_DST_COLOR,
157 GL_SRC_ALPHA,
158 GL_ONE_MINUS_SRC_ALPHA,
159 GL_DST_ALPHA,
160 GL_ONE_MINUS_DST_ALPHA,
161 GL_CONSTANT_COLOR,
162 GL_ONE_MINUS_CONSTANT_COLOR,
163 GL_CONSTANT_ALPHA,
164 GL_ONE_MINUS_CONSTANT_ALPHA,
167 static const GLenum valid_equation_table[] = {
168 GL_FUNC_ADD,
169 GL_FUNC_SUBTRACT,
170 GL_FUNC_REVERSE_SUBTRACT,
173 static const GLenum valid_equation_table_es3[] = {
174 GL_MIN,
175 GL_MAX,
178 static const GLenum valid_face_mode_table[] = {
179 GL_CW,
180 GL_CCW,
183 static const GLenum valid_face_type_table[] = {
184 GL_FRONT,
185 GL_BACK,
186 GL_FRONT_AND_BACK,
189 static const GLenum valid_frame_buffer_parameter_table[] = {
190 GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE,
191 GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME,
192 GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL,
193 GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE,
196 static const GLenum valid_frame_buffer_parameter_table_es3[] = {
197 GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE,
198 GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE,
199 GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE,
200 GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE,
201 GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE,
202 GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE,
203 GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE,
204 GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING,
205 GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER,
208 static const GLenum valid_frame_buffer_target_table[] = {
209 GL_FRAMEBUFFER,
212 static const GLenum valid_frame_buffer_target_table_es3[] = {
213 GL_DRAW_FRAMEBUFFER,
214 GL_READ_FRAMEBUFFER,
217 static const GLenum valid_g_l_state_table[] = {
218 GL_ACTIVE_TEXTURE,
219 GL_ALIASED_LINE_WIDTH_RANGE,
220 GL_ALIASED_POINT_SIZE_RANGE,
221 GL_ALPHA_BITS,
222 GL_ARRAY_BUFFER_BINDING,
223 GL_BLUE_BITS,
224 GL_COMPRESSED_TEXTURE_FORMATS,
225 GL_CURRENT_PROGRAM,
226 GL_DEPTH_BITS,
227 GL_DEPTH_RANGE,
228 GL_ELEMENT_ARRAY_BUFFER_BINDING,
229 GL_FRAMEBUFFER_BINDING,
230 GL_GENERATE_MIPMAP_HINT,
231 GL_GREEN_BITS,
232 GL_IMPLEMENTATION_COLOR_READ_FORMAT,
233 GL_IMPLEMENTATION_COLOR_READ_TYPE,
234 GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS,
235 GL_MAX_CUBE_MAP_TEXTURE_SIZE,
236 GL_MAX_FRAGMENT_UNIFORM_VECTORS,
237 GL_MAX_RENDERBUFFER_SIZE,
238 GL_MAX_TEXTURE_IMAGE_UNITS,
239 GL_MAX_TEXTURE_SIZE,
240 GL_MAX_VARYING_VECTORS,
241 GL_MAX_VERTEX_ATTRIBS,
242 GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS,
243 GL_MAX_VERTEX_UNIFORM_VECTORS,
244 GL_MAX_VIEWPORT_DIMS,
245 GL_NUM_COMPRESSED_TEXTURE_FORMATS,
246 GL_NUM_SHADER_BINARY_FORMATS,
247 GL_PACK_ALIGNMENT,
248 GL_RED_BITS,
249 GL_RENDERBUFFER_BINDING,
250 GL_SAMPLE_BUFFERS,
251 GL_SAMPLE_COVERAGE_INVERT,
252 GL_SAMPLE_COVERAGE_VALUE,
253 GL_SAMPLES,
254 GL_SCISSOR_BOX,
255 GL_SHADER_BINARY_FORMATS,
256 GL_SHADER_COMPILER,
257 GL_SUBPIXEL_BITS,
258 GL_STENCIL_BITS,
259 GL_TEXTURE_BINDING_2D,
260 GL_TEXTURE_BINDING_CUBE_MAP,
261 GL_UNPACK_ALIGNMENT,
262 GL_UNPACK_FLIP_Y_CHROMIUM,
263 GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM,
264 GL_UNPACK_UNPREMULTIPLY_ALPHA_CHROMIUM,
265 GL_BIND_GENERATES_RESOURCE_CHROMIUM,
266 GL_VERTEX_ARRAY_BINDING_OES,
267 GL_VIEWPORT,
268 GL_BLEND_COLOR,
269 GL_BLEND_EQUATION_RGB,
270 GL_BLEND_EQUATION_ALPHA,
271 GL_BLEND_SRC_RGB,
272 GL_BLEND_DST_RGB,
273 GL_BLEND_SRC_ALPHA,
274 GL_BLEND_DST_ALPHA,
275 GL_COLOR_CLEAR_VALUE,
276 GL_DEPTH_CLEAR_VALUE,
277 GL_STENCIL_CLEAR_VALUE,
278 GL_COLOR_WRITEMASK,
279 GL_CULL_FACE_MODE,
280 GL_DEPTH_FUNC,
281 GL_DEPTH_WRITEMASK,
282 GL_FRONT_FACE,
283 GL_LINE_WIDTH,
284 GL_POLYGON_OFFSET_FACTOR,
285 GL_POLYGON_OFFSET_UNITS,
286 GL_STENCIL_FUNC,
287 GL_STENCIL_REF,
288 GL_STENCIL_VALUE_MASK,
289 GL_STENCIL_BACK_FUNC,
290 GL_STENCIL_BACK_REF,
291 GL_STENCIL_BACK_VALUE_MASK,
292 GL_STENCIL_WRITEMASK,
293 GL_STENCIL_BACK_WRITEMASK,
294 GL_STENCIL_FAIL,
295 GL_STENCIL_PASS_DEPTH_FAIL,
296 GL_STENCIL_PASS_DEPTH_PASS,
297 GL_STENCIL_BACK_FAIL,
298 GL_STENCIL_BACK_PASS_DEPTH_FAIL,
299 GL_STENCIL_BACK_PASS_DEPTH_PASS,
300 GL_BLEND,
301 GL_CULL_FACE,
302 GL_DEPTH_TEST,
303 GL_DITHER,
304 GL_POLYGON_OFFSET_FILL,
305 GL_SAMPLE_ALPHA_TO_COVERAGE,
306 GL_SAMPLE_COVERAGE,
307 GL_SCISSOR_TEST,
308 GL_STENCIL_TEST,
309 GL_RASTERIZER_DISCARD,
310 GL_PRIMITIVE_RESTART_FIXED_INDEX,
313 static const GLenum valid_g_l_state_table_es3[] = {
314 GL_COPY_READ_BUFFER_BINDING,
315 GL_COPY_WRITE_BUFFER_BINDING,
316 GL_DRAW_BUFFER0,
317 GL_DRAW_BUFFER1,
318 GL_DRAW_BUFFER2,
319 GL_DRAW_BUFFER3,
320 GL_DRAW_BUFFER4,
321 GL_DRAW_BUFFER5,
322 GL_DRAW_BUFFER6,
323 GL_DRAW_BUFFER7,
324 GL_DRAW_BUFFER8,
325 GL_DRAW_BUFFER9,
326 GL_DRAW_BUFFER10,
327 GL_DRAW_BUFFER11,
328 GL_DRAW_BUFFER12,
329 GL_DRAW_BUFFER13,
330 GL_DRAW_BUFFER14,
331 GL_DRAW_BUFFER15,
332 GL_DRAW_FRAMEBUFFER_BINDING,
333 GL_FRAGMENT_SHADER_DERIVATIVE_HINT,
334 GL_MAJOR_VERSION,
335 GL_MAX_3D_TEXTURE_SIZE,
336 GL_MAX_ARRAY_TEXTURE_LAYERS,
337 GL_MAX_COLOR_ATTACHMENTS,
338 GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS,
339 GL_MAX_COMBINED_UNIFORM_BLOCKS,
340 GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS,
341 GL_MAX_DRAW_BUFFERS,
342 GL_MAX_ELEMENT_INDEX,
343 GL_MAX_ELEMENTS_INDICES,
344 GL_MAX_ELEMENTS_VERTICES,
345 GL_MAX_FRAGMENT_INPUT_COMPONENTS,
346 GL_MAX_FRAGMENT_UNIFORM_BLOCKS,
347 GL_MAX_FRAGMENT_UNIFORM_COMPONENTS,
348 GL_MAX_PROGRAM_TEXEL_OFFSET,
349 GL_MAX_SAMPLES,
350 GL_MAX_SERVER_WAIT_TIMEOUT,
351 GL_MAX_TEXTURE_LOD_BIAS,
352 GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS,
353 GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS,
354 GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS,
355 GL_MAX_UNIFORM_BLOCK_SIZE,
356 GL_MAX_UNIFORM_BUFFER_BINDINGS,
357 GL_MAX_VARYING_COMPONENTS,
358 GL_MAX_VERTEX_OUTPUT_COMPONENTS,
359 GL_MAX_VERTEX_UNIFORM_BLOCKS,
360 GL_MAX_VERTEX_UNIFORM_COMPONENTS,
361 GL_MIN_PROGRAM_TEXEL_OFFSET,
362 GL_MINOR_VERSION,
363 GL_NUM_EXTENSIONS,
364 GL_NUM_PROGRAM_BINARY_FORMATS,
365 GL_PACK_ROW_LENGTH,
366 GL_PACK_SKIP_PIXELS,
367 GL_PACK_SKIP_ROWS,
368 GL_PIXEL_PACK_BUFFER_BINDING,
369 GL_PIXEL_UNPACK_BUFFER_BINDING,
370 GL_PROGRAM_BINARY_FORMATS,
371 GL_READ_BUFFER,
372 GL_READ_FRAMEBUFFER_BINDING,
373 GL_SAMPLER_BINDING,
374 GL_TEXTURE_BINDING_2D_ARRAY,
375 GL_TEXTURE_BINDING_3D,
376 GL_TRANSFORM_FEEDBACK_BINDING,
377 GL_TRANSFORM_FEEDBACK_ACTIVE,
378 GL_TRANSFORM_FEEDBACK_BUFFER_BINDING,
379 GL_TRANSFORM_FEEDBACK_PAUSED,
380 GL_TRANSFORM_FEEDBACK_BUFFER_SIZE,
381 GL_TRANSFORM_FEEDBACK_BUFFER_START,
382 GL_UNIFORM_BUFFER_BINDING,
383 GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT,
384 GL_UNIFORM_BUFFER_SIZE,
385 GL_UNIFORM_BUFFER_START,
386 GL_UNPACK_IMAGE_HEIGHT,
387 GL_UNPACK_ROW_LENGTH,
388 GL_UNPACK_SKIP_IMAGES,
389 GL_UNPACK_SKIP_PIXELS,
390 GL_UNPACK_SKIP_ROWS,
393 static const GLenum valid_get_max_index_type_table[] = {
394 GL_UNSIGNED_BYTE,
395 GL_UNSIGNED_SHORT,
396 GL_UNSIGNED_INT,
399 static const GLenum valid_get_tex_param_target_table[] = {
400 GL_TEXTURE_2D,
401 GL_TEXTURE_CUBE_MAP,
404 static const GLenum valid_get_tex_param_target_table_es3[] = {
405 GL_TEXTURE_2D_ARRAY,
406 GL_TEXTURE_3D,
409 static const GLenum valid_hint_mode_table[] = {
410 GL_FASTEST,
411 GL_NICEST,
412 GL_DONT_CARE,
415 static const GLenum valid_hint_target_table[] = {
416 GL_GENERATE_MIPMAP_HINT,
419 static const GLenum valid_hint_target_table_es3[] = {
420 GL_FRAGMENT_SHADER_DERIVATIVE_HINT,
423 static const GLenum valid_image_internal_format_table[] = {
424 GL_RGB,
425 GL_RGB_YUV_420_CHROMIUM,
426 GL_RGBA,
429 static const GLenum valid_image_usage_table[] = {
430 GL_MAP_CHROMIUM,
431 GL_SCANOUT_CHROMIUM,
434 static const GLenum valid_index_type_table[] = {
435 GL_UNSIGNED_BYTE,
436 GL_UNSIGNED_SHORT,
439 static const GLenum valid_index_type_table_es3[] = {
440 GL_UNSIGNED_INT,
443 static const GLenum valid_indexed_buffer_target_table[] = {
444 GL_TRANSFORM_FEEDBACK_BUFFER,
445 GL_UNIFORM_BUFFER,
448 static const GLenum valid_indexed_g_l_state_table[] = {
449 GL_TRANSFORM_FEEDBACK_BUFFER_BINDING,
450 GL_TRANSFORM_FEEDBACK_BUFFER_SIZE,
451 GL_TRANSFORM_FEEDBACK_BUFFER_START,
452 GL_UNIFORM_BUFFER_BINDING,
453 GL_UNIFORM_BUFFER_SIZE,
454 GL_UNIFORM_BUFFER_START,
457 static const GLenum valid_internal_format_parameter_table[] = {
458 GL_NUM_SAMPLE_COUNTS,
459 GL_SAMPLES,
462 static const GLenum valid_invalidate_frame_buffer_target_table[] = {
463 GL_FRAMEBUFFER,
466 static const GLenum valid_map_buffer_access_table[] = {
467 GL_MAP_READ_BIT,
468 GL_MAP_WRITE_BIT,
469 GL_MAP_INVALIDATE_RANGE_BIT,
470 GL_MAP_INVALIDATE_BUFFER_BIT,
471 GL_MAP_FLUSH_EXPLICIT_BIT,
472 GL_MAP_UNSYNCHRONIZED_BIT,
475 static const GLenum valid_matrix_mode_table[] = {
476 GL_PATH_PROJECTION_CHROMIUM,
477 GL_PATH_MODELVIEW_CHROMIUM,
480 static const GLenum valid_pixel_store_table[] = {
481 GL_PACK_ALIGNMENT,
482 GL_UNPACK_ALIGNMENT,
483 GL_UNPACK_FLIP_Y_CHROMIUM,
484 GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM,
485 GL_UNPACK_UNPREMULTIPLY_ALPHA_CHROMIUM,
488 static const GLenum valid_pixel_store_table_es3[] = {
489 GL_PACK_ROW_LENGTH,
490 GL_PACK_SKIP_PIXELS,
491 GL_PACK_SKIP_ROWS,
492 GL_UNPACK_ROW_LENGTH,
493 GL_UNPACK_IMAGE_HEIGHT,
494 GL_UNPACK_SKIP_PIXELS,
495 GL_UNPACK_SKIP_ROWS,
496 GL_UNPACK_SKIP_IMAGES,
499 static const GLint valid_pixel_store_alignment_table[] = {
506 static const GLenum valid_pixel_type_table[] = {
507 GL_UNSIGNED_BYTE,
508 GL_UNSIGNED_SHORT_5_6_5,
509 GL_UNSIGNED_SHORT_4_4_4_4,
510 GL_UNSIGNED_SHORT_5_5_5_1,
513 static const GLenum valid_pixel_type_table_es3[] = {
514 GL_BYTE,
515 GL_UNSIGNED_SHORT,
516 GL_SHORT,
517 GL_UNSIGNED_INT,
518 GL_INT,
519 GL_HALF_FLOAT,
520 GL_FLOAT,
521 GL_UNSIGNED_INT_2_10_10_10_REV,
522 GL_UNSIGNED_INT_10F_11F_11F_REV,
523 GL_UNSIGNED_INT_5_9_9_9_REV,
524 GL_UNSIGNED_INT_24_8,
525 GL_FLOAT_32_UNSIGNED_INT_24_8_REV,
528 static const GLenum valid_program_parameter_table[] = {
529 GL_DELETE_STATUS,
530 GL_LINK_STATUS,
531 GL_VALIDATE_STATUS,
532 GL_INFO_LOG_LENGTH,
533 GL_ATTACHED_SHADERS,
534 GL_ACTIVE_ATTRIBUTES,
535 GL_ACTIVE_ATTRIBUTE_MAX_LENGTH,
536 GL_ACTIVE_UNIFORMS,
537 GL_ACTIVE_UNIFORM_MAX_LENGTH,
540 static const GLenum valid_program_parameter_table_es3[] = {
541 GL_ACTIVE_UNIFORM_BLOCKS,
542 GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH,
543 GL_TRANSFORM_FEEDBACK_BUFFER_MODE,
544 GL_TRANSFORM_FEEDBACK_VARYINGS,
545 GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH,
548 static const GLenum valid_query_object_parameter_table[] = {
549 GL_QUERY_RESULT_EXT,
550 GL_QUERY_RESULT_AVAILABLE_EXT,
553 static const GLenum valid_query_parameter_table[] = {
554 GL_CURRENT_QUERY_EXT,
557 static const GLenum valid_query_target_table[] = {
558 GL_ANY_SAMPLES_PASSED_EXT,
559 GL_ANY_SAMPLES_PASSED_CONSERVATIVE_EXT,
560 GL_COMMANDS_ISSUED_CHROMIUM,
561 GL_LATENCY_QUERY_CHROMIUM,
562 GL_ASYNC_PIXEL_UNPACK_COMPLETED_CHROMIUM,
563 GL_ASYNC_PIXEL_PACK_COMPLETED_CHROMIUM,
564 GL_COMMANDS_COMPLETED_CHROMIUM,
567 static const GLenum valid_read_pixel_format_table[] = {
568 GL_ALPHA,
569 GL_RGB,
570 GL_RGBA,
573 static const GLenum valid_read_pixel_format_table_es3[] = {
574 GL_RGBA_INTEGER,
577 static const GLenum deprecated_read_pixel_format_table_es3[] = {
578 GL_ALPHA,
579 GL_RGB,
582 static const GLenum valid_read_pixel_type_table[] = {
583 GL_UNSIGNED_BYTE,
584 GL_UNSIGNED_SHORT_5_6_5,
585 GL_UNSIGNED_SHORT_4_4_4_4,
586 GL_UNSIGNED_SHORT_5_5_5_1,
589 static const GLenum valid_read_pixel_type_table_es3[] = {
590 GL_UNSIGNED_INT,
591 GL_INT,
592 GL_FLOAT,
595 static const GLenum deprecated_read_pixel_type_table_es3[] = {
596 GL_UNSIGNED_SHORT_5_6_5,
597 GL_UNSIGNED_SHORT_4_4_4_4,
598 GL_UNSIGNED_SHORT_5_5_5_1,
601 static const GLenum valid_render_buffer_format_table[] = {
602 GL_RGBA4,
603 GL_RGB565,
604 GL_RGB5_A1,
605 GL_DEPTH_COMPONENT16,
606 GL_STENCIL_INDEX8,
609 static const GLenum valid_render_buffer_format_table_es3[] = {
610 GL_R8,
611 GL_R8UI,
612 GL_R8I,
613 GL_R16UI,
614 GL_R16I,
615 GL_R32UI,
616 GL_R32I,
617 GL_RG8,
618 GL_RG8UI,
619 GL_RG8I,
620 GL_RG16UI,
621 GL_RG16I,
622 GL_RG32UI,
623 GL_RG32I,
624 GL_RGB8,
625 GL_RGBA8,
626 GL_SRGB8_ALPHA8,
627 GL_RGB10_A2,
628 GL_RGBA8UI,
629 GL_RGBA8I,
630 GL_RGB10_A2UI,
631 GL_RGBA16UI,
632 GL_RGBA16I,
633 GL_RGBA32UI,
634 GL_RGBA32I,
635 GL_DEPTH_COMPONENT24,
636 GL_DEPTH_COMPONENT32F,
637 GL_DEPTH24_STENCIL8,
638 GL_DEPTH32F_STENCIL8,
641 static const GLenum valid_render_buffer_parameter_table[] = {
642 GL_RENDERBUFFER_RED_SIZE,
643 GL_RENDERBUFFER_GREEN_SIZE,
644 GL_RENDERBUFFER_BLUE_SIZE,
645 GL_RENDERBUFFER_ALPHA_SIZE,
646 GL_RENDERBUFFER_DEPTH_SIZE,
647 GL_RENDERBUFFER_STENCIL_SIZE,
648 GL_RENDERBUFFER_WIDTH,
649 GL_RENDERBUFFER_HEIGHT,
650 GL_RENDERBUFFER_INTERNAL_FORMAT,
653 static const GLenum valid_render_buffer_parameter_table_es3[] = {
654 GL_RENDERBUFFER_SAMPLES,
657 static const GLenum valid_render_buffer_target_table[] = {
658 GL_RENDERBUFFER,
661 static const GLenum valid_reset_status_table[] = {
662 GL_GUILTY_CONTEXT_RESET_ARB,
663 GL_INNOCENT_CONTEXT_RESET_ARB,
664 GL_UNKNOWN_CONTEXT_RESET_ARB,
667 static const GLenum valid_sampler_parameter_table[] = {
668 GL_TEXTURE_MAG_FILTER,
669 GL_TEXTURE_MIN_FILTER,
670 GL_TEXTURE_MIN_LOD,
671 GL_TEXTURE_MAX_LOD,
672 GL_TEXTURE_WRAP_S,
673 GL_TEXTURE_WRAP_T,
674 GL_TEXTURE_WRAP_R,
675 GL_TEXTURE_COMPARE_MODE,
676 GL_TEXTURE_COMPARE_FUNC,
679 static const GLenum valid_shader_parameter_table[] = {
680 GL_SHADER_TYPE,
681 GL_DELETE_STATUS,
682 GL_COMPILE_STATUS,
683 GL_INFO_LOG_LENGTH,
684 GL_SHADER_SOURCE_LENGTH,
685 GL_TRANSLATED_SHADER_SOURCE_LENGTH_ANGLE,
688 static const GLenum valid_shader_precision_table[] = {
689 GL_LOW_FLOAT,
690 GL_MEDIUM_FLOAT,
691 GL_HIGH_FLOAT,
692 GL_LOW_INT,
693 GL_MEDIUM_INT,
694 GL_HIGH_INT,
697 static const GLenum valid_shader_type_table[] = {
698 GL_VERTEX_SHADER,
699 GL_FRAGMENT_SHADER,
702 static const GLenum valid_src_blend_factor_table[] = {
703 GL_ZERO,
704 GL_ONE,
705 GL_SRC_COLOR,
706 GL_ONE_MINUS_SRC_COLOR,
707 GL_DST_COLOR,
708 GL_ONE_MINUS_DST_COLOR,
709 GL_SRC_ALPHA,
710 GL_ONE_MINUS_SRC_ALPHA,
711 GL_DST_ALPHA,
712 GL_ONE_MINUS_DST_ALPHA,
713 GL_CONSTANT_COLOR,
714 GL_ONE_MINUS_CONSTANT_COLOR,
715 GL_CONSTANT_ALPHA,
716 GL_ONE_MINUS_CONSTANT_ALPHA,
717 GL_SRC_ALPHA_SATURATE,
720 static const GLenum valid_stencil_op_table[] = {
721 GL_KEEP,
722 GL_ZERO,
723 GL_REPLACE,
724 GL_INCR,
725 GL_INCR_WRAP,
726 GL_DECR,
727 GL_DECR_WRAP,
728 GL_INVERT,
731 static const GLenum valid_string_type_table[] = {
732 GL_VENDOR,
733 GL_RENDERER,
734 GL_VERSION,
735 GL_SHADING_LANGUAGE_VERSION,
736 GL_EXTENSIONS,
739 static const GLenum valid_subscription_target_table[] = {
740 GL_MOUSE_POSITION_CHROMIUM,
743 static const GLbitfield valid_sync_flush_flags_table[] = {
744 GL_SYNC_FLUSH_COMMANDS_BIT,
748 static const GLenum valid_sync_parameter_table[] = {
749 GL_SYNC_STATUS,
750 GL_OBJECT_TYPE,
751 GL_SYNC_CONDITION,
752 GL_SYNC_FLAGS,
755 static const GLenum valid_texture_3_d_target_table[] = {
756 GL_TEXTURE_3D,
757 GL_TEXTURE_2D_ARRAY,
760 static const GLenum valid_texture_bind_target_table[] = {
761 GL_TEXTURE_2D,
762 GL_TEXTURE_CUBE_MAP,
765 static const GLenum valid_texture_bind_target_table_es3[] = {
766 GL_TEXTURE_3D,
767 GL_TEXTURE_2D_ARRAY,
770 static const GLenum valid_texture_compare_func_table[] = {
771 GL_LEQUAL,
772 GL_GEQUAL,
773 GL_LESS,
774 GL_GREATER,
775 GL_EQUAL,
776 GL_NOTEQUAL,
777 GL_ALWAYS,
778 GL_NEVER,
781 static const GLenum valid_texture_compare_mode_table[] = {
782 GL_NONE,
783 GL_COMPARE_REF_TO_TEXTURE,
786 static const GLenum valid_texture_format_table[] = {
787 GL_ALPHA,
788 GL_LUMINANCE,
789 GL_LUMINANCE_ALPHA,
790 GL_RGB,
791 GL_RGBA,
794 static const GLenum valid_texture_format_table_es3[] = {
795 GL_RED,
796 GL_RED_INTEGER,
797 GL_RG,
798 GL_RG_INTEGER,
799 GL_RGB_INTEGER,
800 GL_RGBA_INTEGER,
801 GL_DEPTH_COMPONENT,
802 GL_DEPTH_STENCIL,
805 static const GLenum valid_texture_internal_format_table[] = {
806 GL_ALPHA,
807 GL_LUMINANCE,
808 GL_LUMINANCE_ALPHA,
809 GL_RGB,
810 GL_RGBA,
813 static const GLenum valid_texture_internal_format_table_es3[] = {
814 GL_R8,
815 GL_R8_SNORM,
816 GL_R16F,
817 GL_R32F,
818 GL_R8UI,
819 GL_R8I,
820 GL_R16UI,
821 GL_R16I,
822 GL_R32UI,
823 GL_R32I,
824 GL_RG8,
825 GL_RG8_SNORM,
826 GL_RG16F,
827 GL_RG32F,
828 GL_RG8UI,
829 GL_RG8I,
830 GL_RG16UI,
831 GL_RG16I,
832 GL_RG32UI,
833 GL_RG32I,
834 GL_RGB8,
835 GL_SRGB8,
836 GL_RGB565,
837 GL_RGB8_SNORM,
838 GL_R11F_G11F_B10F,
839 GL_RGB9_E5,
840 GL_RGB16F,
841 GL_RGB32F,
842 GL_RGB8UI,
843 GL_RGB8I,
844 GL_RGB16UI,
845 GL_RGB16I,
846 GL_RGB32UI,
847 GL_RGB32I,
848 GL_RGBA8,
849 GL_SRGB8_ALPHA8,
850 GL_RGBA8_SNORM,
851 GL_RGB5_A1,
852 GL_RGBA4,
853 GL_RGB10_A2,
854 GL_RGBA16F,
855 GL_RGBA32F,
856 GL_RGBA8UI,
857 GL_RGBA8I,
858 GL_RGB10_A2UI,
859 GL_RGBA16UI,
860 GL_RGBA16I,
861 GL_RGBA32UI,
862 GL_RGBA32I,
863 GL_DEPTH_COMPONENT16,
864 GL_DEPTH_COMPONENT24,
865 GL_DEPTH_COMPONENT32F,
866 GL_DEPTH24_STENCIL8,
867 GL_DEPTH32F_STENCIL8,
870 static const GLenum valid_texture_internal_format_storage_table[] = {
871 GL_RGB565,
872 GL_RGBA4,
873 GL_RGB5_A1,
874 GL_ALPHA8_EXT,
875 GL_LUMINANCE8_EXT,
876 GL_LUMINANCE8_ALPHA8_EXT,
877 GL_RGB8_OES,
878 GL_RGBA8_OES,
881 static const GLenum valid_texture_internal_format_storage_table_es3[] = {
882 GL_R8,
883 GL_R8_SNORM,
884 GL_R16F,
885 GL_R32F,
886 GL_R8UI,
887 GL_R8I,
888 GL_R16UI,
889 GL_R16I,
890 GL_R32UI,
891 GL_R32I,
892 GL_RG8,
893 GL_RG8_SNORM,
894 GL_RG16F,
895 GL_RG32F,
896 GL_RG8UI,
897 GL_RG8I,
898 GL_RG16UI,
899 GL_RG16I,
900 GL_RG32UI,
901 GL_RG32I,
902 GL_SRGB8,
903 GL_RGB8_SNORM,
904 GL_R11F_G11F_B10F,
905 GL_RGB9_E5,
906 GL_RGB16F,
907 GL_RGB32F,
908 GL_RGB8UI,
909 GL_RGB8I,
910 GL_RGB16UI,
911 GL_RGB16I,
912 GL_RGB32UI,
913 GL_RGB32I,
914 GL_SRGB8_ALPHA8,
915 GL_RGBA8_SNORM,
916 GL_RGB10_A2,
917 GL_RGBA16F,
918 GL_RGBA32F,
919 GL_RGBA8UI,
920 GL_RGBA8I,
921 GL_RGB10_A2UI,
922 GL_RGBA16UI,
923 GL_RGBA16I,
924 GL_RGBA32UI,
925 GL_RGBA32I,
926 GL_DEPTH_COMPONENT16,
927 GL_DEPTH_COMPONENT24,
928 GL_DEPTH_COMPONENT32F,
929 GL_DEPTH24_STENCIL8,
930 GL_DEPTH32F_STENCIL8,
931 GL_COMPRESSED_R11_EAC,
932 GL_COMPRESSED_SIGNED_R11_EAC,
933 GL_COMPRESSED_RG11_EAC,
934 GL_COMPRESSED_SIGNED_RG11_EAC,
935 GL_COMPRESSED_RGB8_ETC2,
936 GL_COMPRESSED_SRGB8_ETC2,
937 GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2,
938 GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2,
939 GL_COMPRESSED_RGBA8_ETC2_EAC,
940 GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC,
943 static const GLenum deprecated_texture_internal_format_storage_table_es3[] = {
944 GL_ALPHA8_EXT,
945 GL_LUMINANCE8_EXT,
946 GL_LUMINANCE8_ALPHA8_EXT,
947 GL_ALPHA16F_EXT,
948 GL_LUMINANCE16F_EXT,
949 GL_LUMINANCE_ALPHA16F_EXT,
950 GL_ALPHA32F_EXT,
951 GL_LUMINANCE32F_EXT,
952 GL_LUMINANCE_ALPHA32F_EXT,
955 static const GLenum valid_texture_mag_filter_mode_table[] = {
956 GL_NEAREST,
957 GL_LINEAR,
960 static const GLenum valid_texture_min_filter_mode_table[] = {
961 GL_NEAREST,
962 GL_LINEAR,
963 GL_NEAREST_MIPMAP_NEAREST,
964 GL_LINEAR_MIPMAP_NEAREST,
965 GL_NEAREST_MIPMAP_LINEAR,
966 GL_LINEAR_MIPMAP_LINEAR,
969 static const GLenum valid_texture_parameter_table[] = {
970 GL_TEXTURE_MAG_FILTER,
971 GL_TEXTURE_MIN_FILTER,
972 GL_TEXTURE_POOL_CHROMIUM,
973 GL_TEXTURE_WRAP_S,
974 GL_TEXTURE_WRAP_T,
977 static const GLenum valid_texture_parameter_table_es3[] = {
978 GL_TEXTURE_BASE_LEVEL,
979 GL_TEXTURE_COMPARE_FUNC,
980 GL_TEXTURE_COMPARE_MODE,
981 GL_TEXTURE_IMMUTABLE_FORMAT,
982 GL_TEXTURE_IMMUTABLE_LEVELS,
983 GL_TEXTURE_MAX_LEVEL,
984 GL_TEXTURE_MAX_LOD,
985 GL_TEXTURE_MIN_LOD,
986 GL_TEXTURE_WRAP_R,
989 static const GLenum valid_texture_pool_table[] = {
990 GL_TEXTURE_POOL_MANAGED_CHROMIUM,
991 GL_TEXTURE_POOL_UNMANAGED_CHROMIUM,
994 static const GLenum valid_texture_target_table[] = {
995 GL_TEXTURE_2D,
996 GL_TEXTURE_CUBE_MAP_POSITIVE_X,
997 GL_TEXTURE_CUBE_MAP_NEGATIVE_X,
998 GL_TEXTURE_CUBE_MAP_POSITIVE_Y,
999 GL_TEXTURE_CUBE_MAP_NEGATIVE_Y,
1000 GL_TEXTURE_CUBE_MAP_POSITIVE_Z,
1001 GL_TEXTURE_CUBE_MAP_NEGATIVE_Z,
1004 static const GLenum valid_texture_usage_table[] = {
1005 GL_NONE,
1006 GL_FRAMEBUFFER_ATTACHMENT_ANGLE,
1009 static const GLenum valid_texture_wrap_mode_table[] = {
1010 GL_CLAMP_TO_EDGE,
1011 GL_MIRRORED_REPEAT,
1012 GL_REPEAT,
1015 static const GLenum valid_transform_feedback_bind_target_table[] = {
1016 GL_TRANSFORM_FEEDBACK,
1019 static const GLenum valid_transform_feedback_primitive_mode_table[] = {
1020 GL_POINTS,
1021 GL_LINES,
1022 GL_TRIANGLES,
1025 static const GLenum valid_uniform_block_parameter_table[] = {
1026 GL_UNIFORM_BLOCK_BINDING,
1027 GL_UNIFORM_BLOCK_DATA_SIZE,
1028 GL_UNIFORM_BLOCK_NAME_LENGTH,
1029 GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS,
1030 GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES,
1031 GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER,
1032 GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER,
1035 static const GLenum valid_uniform_parameter_table[] = {
1036 GL_UNIFORM_SIZE,
1037 GL_UNIFORM_TYPE,
1038 GL_UNIFORM_NAME_LENGTH,
1039 GL_UNIFORM_BLOCK_INDEX,
1040 GL_UNIFORM_OFFSET,
1041 GL_UNIFORM_ARRAY_STRIDE,
1042 GL_UNIFORM_MATRIX_STRIDE,
1043 GL_UNIFORM_IS_ROW_MAJOR,
1046 static const GLenum valid_value_buffer_target_table[] = {
1047 GL_SUBSCRIBED_VALUES_BUFFER_CHROMIUM,
1050 static const GLenum valid_vertex_attrib_i_type_table[] = {
1051 GL_BYTE,
1052 GL_UNSIGNED_BYTE,
1053 GL_SHORT,
1054 GL_UNSIGNED_SHORT,
1055 GL_INT,
1056 GL_UNSIGNED_INT,
1059 static const GLint valid_vertex_attrib_size_table[] = {
1066 static const GLenum valid_vertex_attrib_type_table[] = {
1067 GL_BYTE,
1068 GL_UNSIGNED_BYTE,
1069 GL_SHORT,
1070 GL_UNSIGNED_SHORT,
1071 GL_FLOAT,
1074 static const GLenum valid_vertex_attrib_type_table_es3[] = {
1075 GL_INT,
1076 GL_UNSIGNED_INT,
1077 GL_HALF_FLOAT,
1078 GL_INT_2_10_10_10_REV,
1079 GL_UNSIGNED_INT_2_10_10_10_REV,
1082 static const GLenum valid_vertex_attribute_table[] = {
1083 GL_VERTEX_ATTRIB_ARRAY_NORMALIZED,
1084 GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING,
1085 GL_VERTEX_ATTRIB_ARRAY_ENABLED,
1086 GL_VERTEX_ATTRIB_ARRAY_SIZE,
1087 GL_VERTEX_ATTRIB_ARRAY_STRIDE,
1088 GL_VERTEX_ATTRIB_ARRAY_TYPE,
1089 GL_CURRENT_VERTEX_ATTRIB,
1092 static const GLenum valid_vertex_attribute_table_es3[] = {
1093 GL_VERTEX_ATTRIB_ARRAY_INTEGER,
1094 GL_VERTEX_ATTRIB_ARRAY_DIVISOR,
1097 static const GLenum valid_vertex_pointer_table[] = {
1098 GL_VERTEX_ATTRIB_ARRAY_POINTER,
1101 Validators::Validators()
1102 : attachment(valid_attachment_table, arraysize(valid_attachment_table)),
1103 backbuffer_attachment(valid_backbuffer_attachment_table,
1104 arraysize(valid_backbuffer_attachment_table)),
1105 blit_filter(valid_blit_filter_table, arraysize(valid_blit_filter_table)),
1106 buffer_mode(valid_buffer_mode_table, arraysize(valid_buffer_mode_table)),
1107 buffer_parameter(valid_buffer_parameter_table,
1108 arraysize(valid_buffer_parameter_table)),
1109 buffer_target(valid_buffer_target_table,
1110 arraysize(valid_buffer_target_table)),
1111 buffer_usage(valid_buffer_usage_table,
1112 arraysize(valid_buffer_usage_table)),
1113 bufferfi(valid_bufferfi_table, arraysize(valid_bufferfi_table)),
1114 bufferfv(valid_bufferfv_table, arraysize(valid_bufferfv_table)),
1115 bufferiv(valid_bufferiv_table, arraysize(valid_bufferiv_table)),
1116 bufferuiv(valid_bufferuiv_table, arraysize(valid_bufferuiv_table)),
1117 capability(valid_capability_table, arraysize(valid_capability_table)),
1118 cmp_function(valid_cmp_function_table,
1119 arraysize(valid_cmp_function_table)),
1120 compressed_texture_format(),
1121 draw_mode(valid_draw_mode_table, arraysize(valid_draw_mode_table)),
1122 dst_blend_factor(valid_dst_blend_factor_table,
1123 arraysize(valid_dst_blend_factor_table)),
1124 equation(valid_equation_table, arraysize(valid_equation_table)),
1125 face_mode(valid_face_mode_table, arraysize(valid_face_mode_table)),
1126 face_type(valid_face_type_table, arraysize(valid_face_type_table)),
1127 frame_buffer_parameter(valid_frame_buffer_parameter_table,
1128 arraysize(valid_frame_buffer_parameter_table)),
1129 frame_buffer_target(valid_frame_buffer_target_table,
1130 arraysize(valid_frame_buffer_target_table)),
1131 g_l_state(valid_g_l_state_table, arraysize(valid_g_l_state_table)),
1132 get_max_index_type(valid_get_max_index_type_table,
1133 arraysize(valid_get_max_index_type_table)),
1134 get_tex_param_target(valid_get_tex_param_target_table,
1135 arraysize(valid_get_tex_param_target_table)),
1136 hint_mode(valid_hint_mode_table, arraysize(valid_hint_mode_table)),
1137 hint_target(valid_hint_target_table, arraysize(valid_hint_target_table)),
1138 image_internal_format(valid_image_internal_format_table,
1139 arraysize(valid_image_internal_format_table)),
1140 image_usage(valid_image_usage_table, arraysize(valid_image_usage_table)),
1141 index_type(valid_index_type_table, arraysize(valid_index_type_table)),
1142 indexed_buffer_target(valid_indexed_buffer_target_table,
1143 arraysize(valid_indexed_buffer_target_table)),
1144 indexed_g_l_state(valid_indexed_g_l_state_table,
1145 arraysize(valid_indexed_g_l_state_table)),
1146 internal_format_parameter(
1147 valid_internal_format_parameter_table,
1148 arraysize(valid_internal_format_parameter_table)),
1149 invalidate_frame_buffer_target(
1150 valid_invalidate_frame_buffer_target_table,
1151 arraysize(valid_invalidate_frame_buffer_target_table)),
1152 map_buffer_access(valid_map_buffer_access_table,
1153 arraysize(valid_map_buffer_access_table)),
1154 matrix_mode(valid_matrix_mode_table, arraysize(valid_matrix_mode_table)),
1155 pixel_store(valid_pixel_store_table, arraysize(valid_pixel_store_table)),
1156 pixel_store_alignment(valid_pixel_store_alignment_table,
1157 arraysize(valid_pixel_store_alignment_table)),
1158 pixel_type(valid_pixel_type_table, arraysize(valid_pixel_type_table)),
1159 program_parameter(valid_program_parameter_table,
1160 arraysize(valid_program_parameter_table)),
1161 query_object_parameter(valid_query_object_parameter_table,
1162 arraysize(valid_query_object_parameter_table)),
1163 query_parameter(valid_query_parameter_table,
1164 arraysize(valid_query_parameter_table)),
1165 query_target(valid_query_target_table,
1166 arraysize(valid_query_target_table)),
1167 read_pixel_format(valid_read_pixel_format_table,
1168 arraysize(valid_read_pixel_format_table)),
1169 read_pixel_type(valid_read_pixel_type_table,
1170 arraysize(valid_read_pixel_type_table)),
1171 render_buffer_format(valid_render_buffer_format_table,
1172 arraysize(valid_render_buffer_format_table)),
1173 render_buffer_parameter(valid_render_buffer_parameter_table,
1174 arraysize(valid_render_buffer_parameter_table)),
1175 render_buffer_target(valid_render_buffer_target_table,
1176 arraysize(valid_render_buffer_target_table)),
1177 reset_status(valid_reset_status_table,
1178 arraysize(valid_reset_status_table)),
1179 sampler_parameter(valid_sampler_parameter_table,
1180 arraysize(valid_sampler_parameter_table)),
1181 shader_binary_format(),
1182 shader_parameter(valid_shader_parameter_table,
1183 arraysize(valid_shader_parameter_table)),
1184 shader_precision(valid_shader_precision_table,
1185 arraysize(valid_shader_precision_table)),
1186 shader_type(valid_shader_type_table, arraysize(valid_shader_type_table)),
1187 src_blend_factor(valid_src_blend_factor_table,
1188 arraysize(valid_src_blend_factor_table)),
1189 stencil_op(valid_stencil_op_table, arraysize(valid_stencil_op_table)),
1190 string_type(valid_string_type_table, arraysize(valid_string_type_table)),
1191 subscription_target(valid_subscription_target_table,
1192 arraysize(valid_subscription_target_table)),
1193 sync_flush_flags(valid_sync_flush_flags_table,
1194 arraysize(valid_sync_flush_flags_table)),
1195 sync_parameter(valid_sync_parameter_table,
1196 arraysize(valid_sync_parameter_table)),
1197 texture_3_d_target(valid_texture_3_d_target_table,
1198 arraysize(valid_texture_3_d_target_table)),
1199 texture_bind_target(valid_texture_bind_target_table,
1200 arraysize(valid_texture_bind_target_table)),
1201 texture_compare_func(valid_texture_compare_func_table,
1202 arraysize(valid_texture_compare_func_table)),
1203 texture_compare_mode(valid_texture_compare_mode_table,
1204 arraysize(valid_texture_compare_mode_table)),
1205 texture_format(valid_texture_format_table,
1206 arraysize(valid_texture_format_table)),
1207 texture_internal_format(valid_texture_internal_format_table,
1208 arraysize(valid_texture_internal_format_table)),
1209 texture_internal_format_storage(
1210 valid_texture_internal_format_storage_table,
1211 arraysize(valid_texture_internal_format_storage_table)),
1212 texture_mag_filter_mode(valid_texture_mag_filter_mode_table,
1213 arraysize(valid_texture_mag_filter_mode_table)),
1214 texture_min_filter_mode(valid_texture_min_filter_mode_table,
1215 arraysize(valid_texture_min_filter_mode_table)),
1216 texture_parameter(valid_texture_parameter_table,
1217 arraysize(valid_texture_parameter_table)),
1218 texture_pool(valid_texture_pool_table,
1219 arraysize(valid_texture_pool_table)),
1220 texture_target(valid_texture_target_table,
1221 arraysize(valid_texture_target_table)),
1222 texture_usage(valid_texture_usage_table,
1223 arraysize(valid_texture_usage_table)),
1224 texture_wrap_mode(valid_texture_wrap_mode_table,
1225 arraysize(valid_texture_wrap_mode_table)),
1226 transform_feedback_bind_target(
1227 valid_transform_feedback_bind_target_table,
1228 arraysize(valid_transform_feedback_bind_target_table)),
1229 transform_feedback_primitive_mode(
1230 valid_transform_feedback_primitive_mode_table,
1231 arraysize(valid_transform_feedback_primitive_mode_table)),
1232 uniform_block_parameter(valid_uniform_block_parameter_table,
1233 arraysize(valid_uniform_block_parameter_table)),
1234 uniform_parameter(valid_uniform_parameter_table,
1235 arraysize(valid_uniform_parameter_table)),
1236 value_buffer_target(valid_value_buffer_target_table,
1237 arraysize(valid_value_buffer_target_table)),
1238 vertex_attrib_i_type(valid_vertex_attrib_i_type_table,
1239 arraysize(valid_vertex_attrib_i_type_table)),
1240 vertex_attrib_size(valid_vertex_attrib_size_table,
1241 arraysize(valid_vertex_attrib_size_table)),
1242 vertex_attrib_type(valid_vertex_attrib_type_table,
1243 arraysize(valid_vertex_attrib_type_table)),
1244 vertex_attribute(valid_vertex_attribute_table,
1245 arraysize(valid_vertex_attribute_table)),
1246 vertex_pointer(valid_vertex_pointer_table,
1247 arraysize(valid_vertex_pointer_table)) {
1250 void Validators::UpdateValuesES3() {
1251 attachment.AddValues(valid_attachment_table_es3,
1252 arraysize(valid_attachment_table_es3));
1253 buffer_parameter.AddValues(valid_buffer_parameter_table_es3,
1254 arraysize(valid_buffer_parameter_table_es3));
1255 buffer_target.AddValues(valid_buffer_target_table_es3,
1256 arraysize(valid_buffer_target_table_es3));
1257 buffer_usage.AddValues(valid_buffer_usage_table_es3,
1258 arraysize(valid_buffer_usage_table_es3));
1259 capability.AddValues(valid_capability_table_es3,
1260 arraysize(valid_capability_table_es3));
1261 compressed_texture_format.AddValues(
1262 valid_compressed_texture_format_table_es3,
1263 arraysize(valid_compressed_texture_format_table_es3));
1264 equation.AddValues(valid_equation_table_es3,
1265 arraysize(valid_equation_table_es3));
1266 frame_buffer_parameter.AddValues(
1267 valid_frame_buffer_parameter_table_es3,
1268 arraysize(valid_frame_buffer_parameter_table_es3));
1269 frame_buffer_target.AddValues(valid_frame_buffer_target_table_es3,
1270 arraysize(valid_frame_buffer_target_table_es3));
1271 g_l_state.AddValues(valid_g_l_state_table_es3,
1272 arraysize(valid_g_l_state_table_es3));
1273 get_tex_param_target.AddValues(
1274 valid_get_tex_param_target_table_es3,
1275 arraysize(valid_get_tex_param_target_table_es3));
1276 hint_target.AddValues(valid_hint_target_table_es3,
1277 arraysize(valid_hint_target_table_es3));
1278 index_type.AddValues(valid_index_type_table_es3,
1279 arraysize(valid_index_type_table_es3));
1280 pixel_store.AddValues(valid_pixel_store_table_es3,
1281 arraysize(valid_pixel_store_table_es3));
1282 pixel_type.AddValues(valid_pixel_type_table_es3,
1283 arraysize(valid_pixel_type_table_es3));
1284 program_parameter.AddValues(valid_program_parameter_table_es3,
1285 arraysize(valid_program_parameter_table_es3));
1286 read_pixel_format.RemoveValues(
1287 deprecated_read_pixel_format_table_es3,
1288 arraysize(deprecated_read_pixel_format_table_es3));
1289 read_pixel_format.AddValues(valid_read_pixel_format_table_es3,
1290 arraysize(valid_read_pixel_format_table_es3));
1291 read_pixel_type.RemoveValues(deprecated_read_pixel_type_table_es3,
1292 arraysize(deprecated_read_pixel_type_table_es3));
1293 read_pixel_type.AddValues(valid_read_pixel_type_table_es3,
1294 arraysize(valid_read_pixel_type_table_es3));
1295 render_buffer_format.AddValues(
1296 valid_render_buffer_format_table_es3,
1297 arraysize(valid_render_buffer_format_table_es3));
1298 render_buffer_parameter.AddValues(
1299 valid_render_buffer_parameter_table_es3,
1300 arraysize(valid_render_buffer_parameter_table_es3));
1301 texture_bind_target.AddValues(valid_texture_bind_target_table_es3,
1302 arraysize(valid_texture_bind_target_table_es3));
1303 texture_format.AddValues(valid_texture_format_table_es3,
1304 arraysize(valid_texture_format_table_es3));
1305 texture_internal_format.AddValues(
1306 valid_texture_internal_format_table_es3,
1307 arraysize(valid_texture_internal_format_table_es3));
1308 texture_internal_format_storage.RemoveValues(
1309 deprecated_texture_internal_format_storage_table_es3,
1310 arraysize(deprecated_texture_internal_format_storage_table_es3));
1311 texture_internal_format_storage.AddValues(
1312 valid_texture_internal_format_storage_table_es3,
1313 arraysize(valid_texture_internal_format_storage_table_es3));
1314 texture_parameter.AddValues(valid_texture_parameter_table_es3,
1315 arraysize(valid_texture_parameter_table_es3));
1316 vertex_attrib_type.AddValues(valid_vertex_attrib_type_table_es3,
1317 arraysize(valid_vertex_attrib_type_table_es3));
1318 vertex_attribute.AddValues(valid_vertex_attribute_table_es3,
1319 arraysize(valid_vertex_attribute_table_es3));
1322 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_IMPLEMENTATION_AUTOGEN_H_