Upgrade ReadPixels to ES3 semantic in command buffer.
[chromium-blink-merge.git] / gpu / command_buffer / service / gles2_cmd_validation_implementation_autogen.h
blob3b06b560c6b9b64126f8ffe46bd398c04c993f07
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, GL_DEPTH_ATTACHMENT, GL_STENCIL_ATTACHMENT,
18 static const GLenum valid_attachment_table_es3[] = {
19 GL_DEPTH_STENCIL_ATTACHMENT,
22 static const GLenum valid_backbuffer_attachment_table[] = {
23 GL_COLOR_EXT, GL_DEPTH_EXT, GL_STENCIL_EXT,
26 static const GLenum valid_blit_filter_table[] = {
27 GL_NEAREST, GL_LINEAR,
30 static const GLenum valid_buffer_mode_table[] = {
31 GL_INTERLEAVED_ATTRIBS, GL_SEPARATE_ATTRIBS,
34 static const GLenum valid_buffer_parameter_table[] = {
35 GL_BUFFER_SIZE, GL_BUFFER_USAGE,
38 static const GLenum valid_buffer_parameter_table_es3[] = {
39 GL_BUFFER_ACCESS_FLAGS, GL_BUFFER_MAPPED,
42 static const GLenum valid_buffer_parameter_64_table[] = {
43 GL_BUFFER_SIZE, GL_BUFFER_MAP_LENGTH, GL_BUFFER_MAP_OFFSET,
46 static const GLenum valid_buffer_target_table[] = {
47 GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER,
50 static const GLenum valid_buffer_target_table_es3[] = {
51 GL_COPY_READ_BUFFER, GL_COPY_WRITE_BUFFER, GL_PIXEL_PACK_BUFFER,
52 GL_PIXEL_UNPACK_BUFFER, GL_TRANSFORM_FEEDBACK_BUFFER, GL_UNIFORM_BUFFER,
55 static const GLenum valid_buffer_usage_table[] = {
56 GL_STREAM_DRAW, GL_STATIC_DRAW, GL_DYNAMIC_DRAW,
59 static const GLenum valid_buffer_usage_table_es3[] = {
60 GL_STREAM_READ, GL_STREAM_COPY, GL_STATIC_READ,
61 GL_STATIC_COPY, GL_DYNAMIC_READ, GL_DYNAMIC_COPY,
64 static const GLenum valid_bufferfi_table[] = {
65 GL_DEPTH_STENCIL,
68 static const GLenum valid_bufferfv_table[] = {
69 GL_COLOR, GL_DEPTH,
72 static const GLenum valid_bufferiv_table[] = {
73 GL_COLOR, GL_STENCIL,
76 static const GLenum valid_bufferuiv_table[] = {
77 GL_COLOR,
80 static const GLenum valid_capability_table[] = {
81 GL_BLEND, GL_CULL_FACE, GL_DEPTH_TEST,
82 GL_DITHER, GL_POLYGON_OFFSET_FILL, GL_SAMPLE_ALPHA_TO_COVERAGE,
83 GL_SAMPLE_COVERAGE, GL_SCISSOR_TEST, GL_STENCIL_TEST,
86 static const GLenum valid_capability_table_es3[] = {
87 GL_RASTERIZER_DISCARD, GL_PRIMITIVE_RESTART_FIXED_INDEX,
90 static const GLenum valid_cmp_function_table[] = {
91 GL_NEVER, GL_LESS, GL_EQUAL, GL_LEQUAL,
92 GL_GREATER, GL_NOTEQUAL, GL_GEQUAL, GL_ALWAYS,
95 static const GLenum valid_compressed_texture_format_table_es3[] = {
96 GL_COMPRESSED_R11_EAC,
97 GL_COMPRESSED_SIGNED_R11_EAC,
98 GL_COMPRESSED_RG11_EAC,
99 GL_COMPRESSED_SIGNED_RG11_EAC,
100 GL_COMPRESSED_RGB8_ETC2,
101 GL_COMPRESSED_SRGB8_ETC2,
102 GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2,
103 GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2,
104 GL_COMPRESSED_RGBA8_ETC2_EAC,
105 GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC,
108 static const GLenum valid_draw_mode_table[] = {
109 GL_POINTS, GL_LINE_STRIP, GL_LINE_LOOP, GL_LINES,
110 GL_TRIANGLE_STRIP, GL_TRIANGLE_FAN, GL_TRIANGLES,
113 static const GLenum valid_dst_blend_factor_table[] = {
114 GL_ZERO, GL_ONE,
115 GL_SRC_COLOR, GL_ONE_MINUS_SRC_COLOR,
116 GL_DST_COLOR, GL_ONE_MINUS_DST_COLOR,
117 GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA,
118 GL_DST_ALPHA, GL_ONE_MINUS_DST_ALPHA,
119 GL_CONSTANT_COLOR, GL_ONE_MINUS_CONSTANT_COLOR,
120 GL_CONSTANT_ALPHA, GL_ONE_MINUS_CONSTANT_ALPHA,
123 static const GLenum valid_equation_table[] = {
124 GL_FUNC_ADD, GL_FUNC_SUBTRACT, GL_FUNC_REVERSE_SUBTRACT,
127 static const GLenum valid_equation_table_es3[] = {
128 GL_MIN, GL_MAX,
131 static const GLenum valid_face_mode_table[] = {
132 GL_CW, GL_CCW,
135 static const GLenum valid_face_type_table[] = {
136 GL_FRONT, GL_BACK, GL_FRONT_AND_BACK,
139 static const GLenum valid_frame_buffer_parameter_table[] = {
140 GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE,
141 GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME,
142 GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL,
143 GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE,
146 static const GLenum valid_frame_buffer_parameter_table_es3[] = {
147 GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE,
148 GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE,
149 GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE,
150 GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE,
151 GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE,
152 GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE,
153 GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE,
154 GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING,
155 GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER,
158 static const GLenum valid_frame_buffer_target_table[] = {
159 GL_FRAMEBUFFER,
162 static const GLenum valid_frame_buffer_target_table_es3[] = {
163 GL_DRAW_FRAMEBUFFER, GL_READ_FRAMEBUFFER,
166 static const GLenum valid_g_l_state_table[] = {
167 GL_ACTIVE_TEXTURE,
168 GL_ALIASED_LINE_WIDTH_RANGE,
169 GL_ALIASED_POINT_SIZE_RANGE,
170 GL_ALPHA_BITS,
171 GL_ARRAY_BUFFER_BINDING,
172 GL_BLUE_BITS,
173 GL_COMPRESSED_TEXTURE_FORMATS,
174 GL_CURRENT_PROGRAM,
175 GL_DEPTH_BITS,
176 GL_DEPTH_RANGE,
177 GL_ELEMENT_ARRAY_BUFFER_BINDING,
178 GL_FRAMEBUFFER_BINDING,
179 GL_GENERATE_MIPMAP_HINT,
180 GL_GREEN_BITS,
181 GL_IMPLEMENTATION_COLOR_READ_FORMAT,
182 GL_IMPLEMENTATION_COLOR_READ_TYPE,
183 GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS,
184 GL_MAX_CUBE_MAP_TEXTURE_SIZE,
185 GL_MAX_FRAGMENT_UNIFORM_VECTORS,
186 GL_MAX_RENDERBUFFER_SIZE,
187 GL_MAX_TEXTURE_IMAGE_UNITS,
188 GL_MAX_TEXTURE_SIZE,
189 GL_MAX_VARYING_VECTORS,
190 GL_MAX_VERTEX_ATTRIBS,
191 GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS,
192 GL_MAX_VERTEX_UNIFORM_VECTORS,
193 GL_MAX_VIEWPORT_DIMS,
194 GL_NUM_COMPRESSED_TEXTURE_FORMATS,
195 GL_NUM_SHADER_BINARY_FORMATS,
196 GL_PACK_ALIGNMENT,
197 GL_RED_BITS,
198 GL_RENDERBUFFER_BINDING,
199 GL_SAMPLE_BUFFERS,
200 GL_SAMPLE_COVERAGE_INVERT,
201 GL_SAMPLE_COVERAGE_VALUE,
202 GL_SAMPLES,
203 GL_SCISSOR_BOX,
204 GL_SHADER_BINARY_FORMATS,
205 GL_SHADER_COMPILER,
206 GL_SUBPIXEL_BITS,
207 GL_STENCIL_BITS,
208 GL_TEXTURE_BINDING_2D,
209 GL_TEXTURE_BINDING_CUBE_MAP,
210 GL_UNPACK_ALIGNMENT,
211 GL_BIND_GENERATES_RESOURCE_CHROMIUM,
212 GL_VERTEX_ARRAY_BINDING_OES,
213 GL_VIEWPORT,
214 GL_BLEND_COLOR,
215 GL_BLEND_EQUATION_RGB,
216 GL_BLEND_EQUATION_ALPHA,
217 GL_BLEND_SRC_RGB,
218 GL_BLEND_DST_RGB,
219 GL_BLEND_SRC_ALPHA,
220 GL_BLEND_DST_ALPHA,
221 GL_COLOR_CLEAR_VALUE,
222 GL_DEPTH_CLEAR_VALUE,
223 GL_STENCIL_CLEAR_VALUE,
224 GL_COLOR_WRITEMASK,
225 GL_CULL_FACE_MODE,
226 GL_DEPTH_FUNC,
227 GL_DEPTH_WRITEMASK,
228 GL_FRONT_FACE,
229 GL_LINE_WIDTH,
230 GL_POLYGON_OFFSET_FACTOR,
231 GL_POLYGON_OFFSET_UNITS,
232 GL_STENCIL_FUNC,
233 GL_STENCIL_REF,
234 GL_STENCIL_VALUE_MASK,
235 GL_STENCIL_BACK_FUNC,
236 GL_STENCIL_BACK_REF,
237 GL_STENCIL_BACK_VALUE_MASK,
238 GL_STENCIL_WRITEMASK,
239 GL_STENCIL_BACK_WRITEMASK,
240 GL_STENCIL_FAIL,
241 GL_STENCIL_PASS_DEPTH_FAIL,
242 GL_STENCIL_PASS_DEPTH_PASS,
243 GL_STENCIL_BACK_FAIL,
244 GL_STENCIL_BACK_PASS_DEPTH_FAIL,
245 GL_STENCIL_BACK_PASS_DEPTH_PASS,
246 GL_BLEND,
247 GL_CULL_FACE,
248 GL_DEPTH_TEST,
249 GL_DITHER,
250 GL_POLYGON_OFFSET_FILL,
251 GL_SAMPLE_ALPHA_TO_COVERAGE,
252 GL_SAMPLE_COVERAGE,
253 GL_SCISSOR_TEST,
254 GL_STENCIL_TEST,
255 GL_RASTERIZER_DISCARD,
256 GL_PRIMITIVE_RESTART_FIXED_INDEX,
259 static const GLenum valid_g_l_state_table_es3[] = {
260 GL_COPY_READ_BUFFER_BINDING,
261 GL_COPY_WRITE_BUFFER_BINDING,
262 GL_DRAW_BUFFER0,
263 GL_DRAW_BUFFER1,
264 GL_DRAW_BUFFER2,
265 GL_DRAW_BUFFER3,
266 GL_DRAW_BUFFER4,
267 GL_DRAW_BUFFER5,
268 GL_DRAW_BUFFER6,
269 GL_DRAW_BUFFER7,
270 GL_DRAW_BUFFER8,
271 GL_DRAW_BUFFER9,
272 GL_DRAW_BUFFER10,
273 GL_DRAW_BUFFER11,
274 GL_DRAW_BUFFER12,
275 GL_DRAW_BUFFER13,
276 GL_DRAW_BUFFER14,
277 GL_DRAW_BUFFER15,
278 GL_DRAW_FRAMEBUFFER_BINDING,
279 GL_FRAGMENT_SHADER_DERIVATIVE_HINT,
280 GL_MAJOR_VERSION,
281 GL_MAX_3D_TEXTURE_SIZE,
282 GL_MAX_ARRAY_TEXTURE_LAYERS,
283 GL_MAX_COLOR_ATTACHMENTS,
284 GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS,
285 GL_MAX_COMBINED_UNIFORM_BLOCKS,
286 GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS,
287 GL_MAX_DRAW_BUFFERS,
288 GL_MAX_ELEMENT_INDEX,
289 GL_MAX_ELEMENTS_INDICES,
290 GL_MAX_ELEMENTS_VERTICES,
291 GL_MAX_FRAGMENT_INPUT_COMPONENTS,
292 GL_MAX_FRAGMENT_UNIFORM_BLOCKS,
293 GL_MAX_FRAGMENT_UNIFORM_COMPONENTS,
294 GL_MAX_PROGRAM_TEXEL_OFFSET,
295 GL_MAX_SAMPLES,
296 GL_MAX_SERVER_WAIT_TIMEOUT,
297 GL_MAX_TEXTURE_LOD_BIAS,
298 GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS,
299 GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS,
300 GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS,
301 GL_MAX_UNIFORM_BLOCK_SIZE,
302 GL_MAX_UNIFORM_BUFFER_BINDINGS,
303 GL_MAX_VARYING_COMPONENTS,
304 GL_MAX_VERTEX_OUTPUT_COMPONENTS,
305 GL_MAX_VERTEX_UNIFORM_BLOCKS,
306 GL_MAX_VERTEX_UNIFORM_COMPONENTS,
307 GL_MIN_PROGRAM_TEXEL_OFFSET,
308 GL_MINOR_VERSION,
309 GL_NUM_EXTENSIONS,
310 GL_NUM_PROGRAM_BINARY_FORMATS,
311 GL_PACK_ROW_LENGTH,
312 GL_PACK_SKIP_PIXELS,
313 GL_PACK_SKIP_ROWS,
314 GL_PIXEL_PACK_BUFFER_BINDING,
315 GL_PIXEL_UNPACK_BUFFER_BINDING,
316 GL_PROGRAM_BINARY_FORMATS,
317 GL_READ_BUFFER,
318 GL_READ_FRAMEBUFFER_BINDING,
319 GL_SAMPLER_BINDING,
320 GL_TEXTURE_BINDING_2D_ARRAY,
321 GL_TEXTURE_BINDING_3D,
322 GL_TRANSFORM_FEEDBACK_BINDING,
323 GL_TRANSFORM_FEEDBACK_ACTIVE,
324 GL_TRANSFORM_FEEDBACK_BUFFER_BINDING,
325 GL_TRANSFORM_FEEDBACK_PAUSED,
326 GL_TRANSFORM_FEEDBACK_BUFFER_SIZE,
327 GL_TRANSFORM_FEEDBACK_BUFFER_START,
328 GL_UNIFORM_BUFFER_BINDING,
329 GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT,
330 GL_UNIFORM_BUFFER_SIZE,
331 GL_UNIFORM_BUFFER_START,
332 GL_UNPACK_IMAGE_HEIGHT,
333 GL_UNPACK_ROW_LENGTH,
334 GL_UNPACK_SKIP_IMAGES,
335 GL_UNPACK_SKIP_PIXELS,
336 GL_UNPACK_SKIP_ROWS,
339 static const GLenum valid_get_max_index_type_table[] = {
340 GL_UNSIGNED_BYTE, GL_UNSIGNED_SHORT, GL_UNSIGNED_INT,
343 static const GLenum valid_get_tex_param_target_table[] = {
344 GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP,
347 static const GLenum valid_get_tex_param_target_table_es3[] = {
348 GL_TEXTURE_2D_ARRAY, GL_TEXTURE_3D,
351 static const GLenum valid_hint_mode_table[] = {
352 GL_FASTEST, GL_NICEST, GL_DONT_CARE,
355 static const GLenum valid_hint_target_table[] = {
356 GL_GENERATE_MIPMAP_HINT,
359 static const GLenum valid_hint_target_table_es3[] = {
360 GL_FRAGMENT_SHADER_DERIVATIVE_HINT,
363 static const GLenum valid_image_internal_format_table[] = {
364 GL_RGB, GL_RGB_YUV_420_CHROMIUM, GL_RGBA,
367 static const GLenum valid_image_usage_table[] = {
368 GL_MAP_CHROMIUM, GL_SCANOUT_CHROMIUM,
371 static const GLenum valid_index_type_table[] = {
372 GL_UNSIGNED_BYTE, GL_UNSIGNED_SHORT,
375 static const GLenum valid_index_type_table_es3[] = {
376 GL_UNSIGNED_INT,
379 static const GLenum valid_indexed_buffer_target_table[] = {
380 GL_TRANSFORM_FEEDBACK_BUFFER, GL_UNIFORM_BUFFER,
383 static const GLenum valid_indexed_g_l_state_table[] = {
384 GL_TRANSFORM_FEEDBACK_BUFFER_BINDING,
385 GL_TRANSFORM_FEEDBACK_BUFFER_SIZE,
386 GL_TRANSFORM_FEEDBACK_BUFFER_START,
387 GL_UNIFORM_BUFFER_BINDING,
388 GL_UNIFORM_BUFFER_SIZE,
389 GL_UNIFORM_BUFFER_START,
392 static const GLenum valid_internal_format_parameter_table[] = {
393 GL_NUM_SAMPLE_COUNTS, GL_SAMPLES,
396 static const GLenum valid_invalidate_frame_buffer_target_table[] = {
397 GL_FRAMEBUFFER,
400 static const GLenum valid_map_buffer_access_table[] = {
401 GL_MAP_READ_BIT,
402 GL_MAP_WRITE_BIT,
403 GL_MAP_INVALIDATE_RANGE_BIT,
404 GL_MAP_INVALIDATE_BUFFER_BIT,
405 GL_MAP_FLUSH_EXPLICIT_BIT,
406 GL_MAP_UNSYNCHRONIZED_BIT,
409 static const GLenum valid_matrix_mode_table[] = {
410 GL_PATH_PROJECTION_CHROMIUM, GL_PATH_MODELVIEW_CHROMIUM,
413 static const GLenum valid_path_coord_type_table[] = {
414 GL_BYTE, GL_UNSIGNED_BYTE, GL_SHORT, GL_UNSIGNED_SHORT, GL_FLOAT,
417 static const GLenum valid_path_cover_mode_table[] = {
418 GL_CONVEX_HULL_CHROMIUM, GL_BOUNDING_BOX_CHROMIUM,
421 static const GLenum valid_path_fill_mode_table[] = {
422 GL_INVERT, GL_COUNT_UP_CHROMIUM, GL_COUNT_DOWN_CHROMIUM,
425 static const GLenum valid_path_parameter_table[] = {
426 GL_PATH_STROKE_WIDTH_CHROMIUM, GL_PATH_END_CAPS_CHROMIUM,
427 GL_PATH_JOIN_STYLE_CHROMIUM, GL_PATH_MITER_LIMIT_CHROMIUM,
428 GL_PATH_STROKE_BOUND_CHROMIUM,
431 static const GLint valid_path_parameter_cap_values_table[] = {
432 GL_FLAT, GL_SQUARE_CHROMIUM, GL_ROUND_CHROMIUM,
435 static const GLint valid_path_parameter_join_values_table[] = {
436 GL_MITER_REVERT_CHROMIUM, GL_BEVEL_CHROMIUM, GL_ROUND_CHROMIUM,
439 static const GLenum valid_pixel_store_table[] = {
440 GL_PACK_ALIGNMENT, GL_UNPACK_ALIGNMENT,
443 static const GLenum valid_pixel_store_table_es3[] = {
444 GL_PACK_ROW_LENGTH, GL_PACK_SKIP_PIXELS, GL_PACK_SKIP_ROWS,
445 GL_UNPACK_ROW_LENGTH, GL_UNPACK_IMAGE_HEIGHT, GL_UNPACK_SKIP_PIXELS,
446 GL_UNPACK_SKIP_ROWS, GL_UNPACK_SKIP_IMAGES,
449 static const GLint valid_pixel_store_alignment_table[] = {
450 1, 2, 4, 8,
453 static const GLenum valid_pixel_type_table[] = {
454 GL_UNSIGNED_BYTE, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_4_4_4_4,
455 GL_UNSIGNED_SHORT_5_5_5_1,
458 static const GLenum valid_pixel_type_table_es3[] = {
459 GL_BYTE,
460 GL_UNSIGNED_SHORT,
461 GL_SHORT,
462 GL_UNSIGNED_INT,
463 GL_INT,
464 GL_HALF_FLOAT,
465 GL_FLOAT,
466 GL_UNSIGNED_INT_2_10_10_10_REV,
467 GL_UNSIGNED_INT_10F_11F_11F_REV,
468 GL_UNSIGNED_INT_5_9_9_9_REV,
469 GL_UNSIGNED_INT_24_8,
470 GL_FLOAT_32_UNSIGNED_INT_24_8_REV,
473 static const GLenum valid_program_parameter_table[] = {
474 GL_DELETE_STATUS,
475 GL_LINK_STATUS,
476 GL_VALIDATE_STATUS,
477 GL_INFO_LOG_LENGTH,
478 GL_ATTACHED_SHADERS,
479 GL_ACTIVE_ATTRIBUTES,
480 GL_ACTIVE_ATTRIBUTE_MAX_LENGTH,
481 GL_ACTIVE_UNIFORMS,
482 GL_ACTIVE_UNIFORM_MAX_LENGTH,
485 static const GLenum valid_program_parameter_table_es3[] = {
486 GL_ACTIVE_UNIFORM_BLOCKS,
487 GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH,
488 GL_TRANSFORM_FEEDBACK_BUFFER_MODE,
489 GL_TRANSFORM_FEEDBACK_VARYINGS,
490 GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH,
493 static const GLenum valid_query_object_parameter_table[] = {
494 GL_QUERY_RESULT_EXT, GL_QUERY_RESULT_AVAILABLE_EXT,
497 static const GLenum valid_query_parameter_table[] = {
498 GL_CURRENT_QUERY_EXT,
501 static const GLenum valid_query_target_table[] = {
502 GL_ANY_SAMPLES_PASSED_EXT,
503 GL_ANY_SAMPLES_PASSED_CONSERVATIVE_EXT,
504 GL_COMMANDS_ISSUED_CHROMIUM,
505 GL_LATENCY_QUERY_CHROMIUM,
506 GL_ASYNC_PIXEL_UNPACK_COMPLETED_CHROMIUM,
507 GL_ASYNC_PIXEL_PACK_COMPLETED_CHROMIUM,
508 GL_COMMANDS_COMPLETED_CHROMIUM,
511 static const GLenum valid_read_buffer_table[] = {
512 GL_NONE,
513 GL_BACK,
514 GL_COLOR_ATTACHMENT0,
515 GL_COLOR_ATTACHMENT1,
516 GL_COLOR_ATTACHMENT2,
517 GL_COLOR_ATTACHMENT3,
518 GL_COLOR_ATTACHMENT4,
519 GL_COLOR_ATTACHMENT5,
520 GL_COLOR_ATTACHMENT6,
521 GL_COLOR_ATTACHMENT7,
522 GL_COLOR_ATTACHMENT8,
523 GL_COLOR_ATTACHMENT9,
524 GL_COLOR_ATTACHMENT10,
525 GL_COLOR_ATTACHMENT11,
526 GL_COLOR_ATTACHMENT12,
527 GL_COLOR_ATTACHMENT13,
528 GL_COLOR_ATTACHMENT14,
529 GL_COLOR_ATTACHMENT15,
532 static const GLenum valid_read_pixel_format_table[] = {
533 GL_ALPHA, GL_RGB, GL_RGBA,
536 static const GLenum valid_read_pixel_format_table_es3[] = {
537 GL_RGBA_INTEGER,
540 static const GLenum deprecated_read_pixel_format_table_es3[] = {
541 GL_ALPHA, GL_RGB,
544 static const GLenum valid_read_pixel_type_table[] = {
545 GL_UNSIGNED_BYTE, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_4_4_4_4,
546 GL_UNSIGNED_SHORT_5_5_5_1,
549 static const GLenum valid_read_pixel_type_table_es3[] = {
550 GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_INT_2_10_10_10_REV,
553 static const GLenum deprecated_read_pixel_type_table_es3[] = {
554 GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_4_4_4_4,
555 GL_UNSIGNED_SHORT_5_5_5_1,
558 static const GLenum valid_render_buffer_format_table[] = {
559 GL_RGBA4, GL_RGB565, GL_RGB5_A1, GL_DEPTH_COMPONENT16, GL_STENCIL_INDEX8,
562 static const GLenum valid_render_buffer_format_table_es3[] = {
563 GL_R8,
564 GL_R8UI,
565 GL_R8I,
566 GL_R16UI,
567 GL_R16I,
568 GL_R32UI,
569 GL_R32I,
570 GL_RG8,
571 GL_RG8UI,
572 GL_RG8I,
573 GL_RG16UI,
574 GL_RG16I,
575 GL_RG32UI,
576 GL_RG32I,
577 GL_RGB8,
578 GL_RGBA8,
579 GL_SRGB8_ALPHA8,
580 GL_RGB10_A2,
581 GL_RGBA8UI,
582 GL_RGBA8I,
583 GL_RGB10_A2UI,
584 GL_RGBA16UI,
585 GL_RGBA16I,
586 GL_RGBA32UI,
587 GL_RGBA32I,
588 GL_DEPTH_COMPONENT24,
589 GL_DEPTH_COMPONENT32F,
590 GL_DEPTH24_STENCIL8,
591 GL_DEPTH32F_STENCIL8,
594 static const GLenum valid_render_buffer_parameter_table[] = {
595 GL_RENDERBUFFER_RED_SIZE, GL_RENDERBUFFER_GREEN_SIZE,
596 GL_RENDERBUFFER_BLUE_SIZE, GL_RENDERBUFFER_ALPHA_SIZE,
597 GL_RENDERBUFFER_DEPTH_SIZE, GL_RENDERBUFFER_STENCIL_SIZE,
598 GL_RENDERBUFFER_WIDTH, GL_RENDERBUFFER_HEIGHT,
599 GL_RENDERBUFFER_INTERNAL_FORMAT,
602 static const GLenum valid_render_buffer_parameter_table_es3[] = {
603 GL_RENDERBUFFER_SAMPLES,
606 static const GLenum valid_render_buffer_target_table[] = {
607 GL_RENDERBUFFER,
610 static const GLenum valid_reset_status_table[] = {
611 GL_GUILTY_CONTEXT_RESET_ARB, GL_INNOCENT_CONTEXT_RESET_ARB,
612 GL_UNKNOWN_CONTEXT_RESET_ARB,
615 static const GLenum valid_sampler_parameter_table[] = {
616 GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_FILTER, GL_TEXTURE_MIN_LOD,
617 GL_TEXTURE_MAX_LOD, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T,
618 GL_TEXTURE_WRAP_R, GL_TEXTURE_COMPARE_MODE, GL_TEXTURE_COMPARE_FUNC,
621 static const GLenum valid_shader_parameter_table[] = {
622 GL_SHADER_TYPE, GL_DELETE_STATUS,
623 GL_COMPILE_STATUS, GL_INFO_LOG_LENGTH,
624 GL_SHADER_SOURCE_LENGTH, GL_TRANSLATED_SHADER_SOURCE_LENGTH_ANGLE,
627 static const GLenum valid_shader_precision_table[] = {
628 GL_LOW_FLOAT, GL_MEDIUM_FLOAT, GL_HIGH_FLOAT,
629 GL_LOW_INT, GL_MEDIUM_INT, GL_HIGH_INT,
632 static const GLenum valid_shader_type_table[] = {
633 GL_VERTEX_SHADER, GL_FRAGMENT_SHADER,
636 static const GLenum valid_src_blend_factor_table[] = {
637 GL_ZERO,
638 GL_ONE,
639 GL_SRC_COLOR,
640 GL_ONE_MINUS_SRC_COLOR,
641 GL_DST_COLOR,
642 GL_ONE_MINUS_DST_COLOR,
643 GL_SRC_ALPHA,
644 GL_ONE_MINUS_SRC_ALPHA,
645 GL_DST_ALPHA,
646 GL_ONE_MINUS_DST_ALPHA,
647 GL_CONSTANT_COLOR,
648 GL_ONE_MINUS_CONSTANT_COLOR,
649 GL_CONSTANT_ALPHA,
650 GL_ONE_MINUS_CONSTANT_ALPHA,
651 GL_SRC_ALPHA_SATURATE,
654 static const GLenum valid_stencil_op_table[] = {
655 GL_KEEP, GL_ZERO, GL_REPLACE, GL_INCR,
656 GL_INCR_WRAP, GL_DECR, GL_DECR_WRAP, GL_INVERT,
659 static const GLenum valid_string_type_table[] = {
660 GL_VENDOR, GL_RENDERER, GL_VERSION, GL_SHADING_LANGUAGE_VERSION,
661 GL_EXTENSIONS,
664 static const GLenum valid_subscription_target_table[] = {
665 GL_MOUSE_POSITION_CHROMIUM,
668 static const GLbitfield valid_sync_flush_flags_table[] = {
669 GL_SYNC_FLUSH_COMMANDS_BIT, 0,
672 static const GLenum valid_sync_parameter_table[] = {
673 GL_SYNC_STATUS, GL_OBJECT_TYPE, GL_SYNC_CONDITION, GL_SYNC_FLAGS,
676 static const GLenum valid_texture_3_d_target_table[] = {
677 GL_TEXTURE_3D, GL_TEXTURE_2D_ARRAY,
680 static const GLenum valid_texture_bind_target_table[] = {
681 GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP,
684 static const GLenum valid_texture_bind_target_table_es3[] = {
685 GL_TEXTURE_3D, GL_TEXTURE_2D_ARRAY,
688 static const GLenum valid_texture_compare_func_table[] = {
689 GL_LEQUAL, GL_GEQUAL, GL_LESS, GL_GREATER,
690 GL_EQUAL, GL_NOTEQUAL, GL_ALWAYS, GL_NEVER,
693 static const GLenum valid_texture_compare_mode_table[] = {
694 GL_NONE, GL_COMPARE_REF_TO_TEXTURE,
697 static const GLenum valid_texture_format_table[] = {
698 GL_ALPHA, GL_LUMINANCE, GL_LUMINANCE_ALPHA, GL_RGB, GL_RGBA,
701 static const GLenum valid_texture_format_table_es3[] = {
702 GL_RED,
703 GL_RED_INTEGER,
704 GL_RG,
705 GL_RG_INTEGER,
706 GL_RGB_INTEGER,
707 GL_RGBA_INTEGER,
708 GL_DEPTH_COMPONENT,
709 GL_DEPTH_STENCIL,
712 static const GLenum valid_texture_internal_format_table[] = {
713 GL_ALPHA, GL_LUMINANCE, GL_LUMINANCE_ALPHA, GL_RGB, GL_RGBA,
716 static const GLenum valid_texture_internal_format_table_es3[] = {
717 GL_R8,
718 GL_R8_SNORM,
719 GL_R16F,
720 GL_R32F,
721 GL_R8UI,
722 GL_R8I,
723 GL_R16UI,
724 GL_R16I,
725 GL_R32UI,
726 GL_R32I,
727 GL_RG8,
728 GL_RG8_SNORM,
729 GL_RG16F,
730 GL_RG32F,
731 GL_RG8UI,
732 GL_RG8I,
733 GL_RG16UI,
734 GL_RG16I,
735 GL_RG32UI,
736 GL_RG32I,
737 GL_RGB8,
738 GL_SRGB8,
739 GL_RGB565,
740 GL_RGB8_SNORM,
741 GL_R11F_G11F_B10F,
742 GL_RGB9_E5,
743 GL_RGB16F,
744 GL_RGB32F,
745 GL_RGB8UI,
746 GL_RGB8I,
747 GL_RGB16UI,
748 GL_RGB16I,
749 GL_RGB32UI,
750 GL_RGB32I,
751 GL_RGBA8,
752 GL_SRGB8_ALPHA8,
753 GL_RGBA8_SNORM,
754 GL_RGB5_A1,
755 GL_RGBA4,
756 GL_RGB10_A2,
757 GL_RGBA16F,
758 GL_RGBA32F,
759 GL_RGBA8UI,
760 GL_RGBA8I,
761 GL_RGB10_A2UI,
762 GL_RGBA16UI,
763 GL_RGBA16I,
764 GL_RGBA32UI,
765 GL_RGBA32I,
766 GL_DEPTH_COMPONENT16,
767 GL_DEPTH_COMPONENT24,
768 GL_DEPTH_COMPONENT32F,
769 GL_DEPTH24_STENCIL8,
770 GL_DEPTH32F_STENCIL8,
773 static const GLenum valid_texture_internal_format_storage_table[] = {
774 GL_RGB565, GL_RGBA4, GL_RGB5_A1,
775 GL_ALPHA8_EXT, GL_LUMINANCE8_EXT, GL_LUMINANCE8_ALPHA8_EXT,
776 GL_RGB8_OES, GL_RGBA8_OES,
779 static const GLenum valid_texture_internal_format_storage_table_es3[] = {
780 GL_R8,
781 GL_R8_SNORM,
782 GL_R16F,
783 GL_R32F,
784 GL_R8UI,
785 GL_R8I,
786 GL_R16UI,
787 GL_R16I,
788 GL_R32UI,
789 GL_R32I,
790 GL_RG8,
791 GL_RG8_SNORM,
792 GL_RG16F,
793 GL_RG32F,
794 GL_RG8UI,
795 GL_RG8I,
796 GL_RG16UI,
797 GL_RG16I,
798 GL_RG32UI,
799 GL_RG32I,
800 GL_RGB8,
801 GL_SRGB8,
802 GL_RGB8_SNORM,
803 GL_R11F_G11F_B10F,
804 GL_RGB9_E5,
805 GL_RGB16F,
806 GL_RGB32F,
807 GL_RGB8UI,
808 GL_RGB8I,
809 GL_RGB16UI,
810 GL_RGB16I,
811 GL_RGB32UI,
812 GL_RGB32I,
813 GL_RGBA8,
814 GL_SRGB8_ALPHA8,
815 GL_RGBA8_SNORM,
816 GL_RGB10_A2,
817 GL_RGBA16F,
818 GL_RGBA32F,
819 GL_RGBA8UI,
820 GL_RGBA8I,
821 GL_RGB10_A2UI,
822 GL_RGBA16UI,
823 GL_RGBA16I,
824 GL_RGBA32UI,
825 GL_RGBA32I,
826 GL_DEPTH_COMPONENT16,
827 GL_DEPTH_COMPONENT24,
828 GL_DEPTH_COMPONENT32F,
829 GL_DEPTH24_STENCIL8,
830 GL_DEPTH32F_STENCIL8,
831 GL_COMPRESSED_R11_EAC,
832 GL_COMPRESSED_SIGNED_R11_EAC,
833 GL_COMPRESSED_RG11_EAC,
834 GL_COMPRESSED_SIGNED_RG11_EAC,
835 GL_COMPRESSED_RGB8_ETC2,
836 GL_COMPRESSED_SRGB8_ETC2,
837 GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2,
838 GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2,
839 GL_COMPRESSED_RGBA8_ETC2_EAC,
840 GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC,
843 static const GLenum deprecated_texture_internal_format_storage_table_es3[] = {
844 GL_ALPHA8_EXT, GL_LUMINANCE8_EXT, GL_LUMINANCE8_ALPHA8_EXT,
845 GL_ALPHA16F_EXT, GL_LUMINANCE16F_EXT, GL_LUMINANCE_ALPHA16F_EXT,
846 GL_ALPHA32F_EXT, GL_LUMINANCE32F_EXT, GL_LUMINANCE_ALPHA32F_EXT,
849 static const GLenum valid_texture_mag_filter_mode_table[] = {
850 GL_NEAREST, GL_LINEAR,
853 static const GLenum valid_texture_min_filter_mode_table[] = {
854 GL_NEAREST,
855 GL_LINEAR,
856 GL_NEAREST_MIPMAP_NEAREST,
857 GL_LINEAR_MIPMAP_NEAREST,
858 GL_NEAREST_MIPMAP_LINEAR,
859 GL_LINEAR_MIPMAP_LINEAR,
862 static const GLenum valid_texture_parameter_table[] = {
863 GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_FILTER, GL_TEXTURE_POOL_CHROMIUM,
864 GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T,
867 static const GLenum valid_texture_parameter_table_es3[] = {
868 GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_COMPARE_FUNC,
869 GL_TEXTURE_COMPARE_MODE, GL_TEXTURE_IMMUTABLE_FORMAT,
870 GL_TEXTURE_IMMUTABLE_LEVELS, GL_TEXTURE_MAX_LEVEL,
871 GL_TEXTURE_MAX_LOD, GL_TEXTURE_MIN_LOD,
872 GL_TEXTURE_WRAP_R,
875 static const GLenum valid_texture_pool_table[] = {
876 GL_TEXTURE_POOL_MANAGED_CHROMIUM, GL_TEXTURE_POOL_UNMANAGED_CHROMIUM,
879 static const GLenum valid_texture_target_table[] = {
880 GL_TEXTURE_2D,
881 GL_TEXTURE_CUBE_MAP_POSITIVE_X,
882 GL_TEXTURE_CUBE_MAP_NEGATIVE_X,
883 GL_TEXTURE_CUBE_MAP_POSITIVE_Y,
884 GL_TEXTURE_CUBE_MAP_NEGATIVE_Y,
885 GL_TEXTURE_CUBE_MAP_POSITIVE_Z,
886 GL_TEXTURE_CUBE_MAP_NEGATIVE_Z,
889 static const GLenum valid_texture_usage_table[] = {
890 GL_NONE, GL_FRAMEBUFFER_ATTACHMENT_ANGLE,
893 static const GLenum valid_texture_wrap_mode_table[] = {
894 GL_CLAMP_TO_EDGE, GL_MIRRORED_REPEAT, GL_REPEAT,
897 static const GLenum valid_transform_feedback_bind_target_table[] = {
898 GL_TRANSFORM_FEEDBACK,
901 static const GLenum valid_transform_feedback_primitive_mode_table[] = {
902 GL_POINTS, GL_LINES, GL_TRIANGLES,
905 static const GLenum valid_uniform_block_parameter_table[] = {
906 GL_UNIFORM_BLOCK_BINDING,
907 GL_UNIFORM_BLOCK_DATA_SIZE,
908 GL_UNIFORM_BLOCK_NAME_LENGTH,
909 GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS,
910 GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES,
911 GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER,
912 GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER,
915 static const GLenum valid_uniform_parameter_table[] = {
916 GL_UNIFORM_SIZE, GL_UNIFORM_TYPE, GL_UNIFORM_NAME_LENGTH,
917 GL_UNIFORM_BLOCK_INDEX, GL_UNIFORM_OFFSET, GL_UNIFORM_ARRAY_STRIDE,
918 GL_UNIFORM_MATRIX_STRIDE, GL_UNIFORM_IS_ROW_MAJOR,
921 static const GLenum valid_value_buffer_target_table[] = {
922 GL_SUBSCRIBED_VALUES_BUFFER_CHROMIUM,
925 static const GLenum valid_vertex_attrib_i_type_table[] = {
926 GL_BYTE, GL_UNSIGNED_BYTE, GL_SHORT,
927 GL_UNSIGNED_SHORT, GL_INT, GL_UNSIGNED_INT,
930 static const GLint valid_vertex_attrib_size_table[] = {
931 1, 2, 3, 4,
934 static const GLenum valid_vertex_attrib_type_table[] = {
935 GL_BYTE, GL_UNSIGNED_BYTE, GL_SHORT, GL_UNSIGNED_SHORT, GL_FLOAT,
938 static const GLenum valid_vertex_attrib_type_table_es3[] = {
939 GL_INT,
940 GL_UNSIGNED_INT,
941 GL_HALF_FLOAT,
942 GL_INT_2_10_10_10_REV,
943 GL_UNSIGNED_INT_2_10_10_10_REV,
946 static const GLenum valid_vertex_attribute_table[] = {
947 GL_VERTEX_ATTRIB_ARRAY_NORMALIZED, GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING,
948 GL_VERTEX_ATTRIB_ARRAY_ENABLED, GL_VERTEX_ATTRIB_ARRAY_SIZE,
949 GL_VERTEX_ATTRIB_ARRAY_STRIDE, GL_VERTEX_ATTRIB_ARRAY_TYPE,
950 GL_CURRENT_VERTEX_ATTRIB,
953 static const GLenum valid_vertex_attribute_table_es3[] = {
954 GL_VERTEX_ATTRIB_ARRAY_INTEGER, GL_VERTEX_ATTRIB_ARRAY_DIVISOR,
957 static const GLenum valid_vertex_pointer_table[] = {
958 GL_VERTEX_ATTRIB_ARRAY_POINTER,
961 Validators::Validators()
962 : attachment(valid_attachment_table, arraysize(valid_attachment_table)),
963 backbuffer_attachment(valid_backbuffer_attachment_table,
964 arraysize(valid_backbuffer_attachment_table)),
965 blit_filter(valid_blit_filter_table, arraysize(valid_blit_filter_table)),
966 buffer_mode(valid_buffer_mode_table, arraysize(valid_buffer_mode_table)),
967 buffer_parameter(valid_buffer_parameter_table,
968 arraysize(valid_buffer_parameter_table)),
969 buffer_parameter_64(valid_buffer_parameter_64_table,
970 arraysize(valid_buffer_parameter_64_table)),
971 buffer_target(valid_buffer_target_table,
972 arraysize(valid_buffer_target_table)),
973 buffer_usage(valid_buffer_usage_table,
974 arraysize(valid_buffer_usage_table)),
975 bufferfi(valid_bufferfi_table, arraysize(valid_bufferfi_table)),
976 bufferfv(valid_bufferfv_table, arraysize(valid_bufferfv_table)),
977 bufferiv(valid_bufferiv_table, arraysize(valid_bufferiv_table)),
978 bufferuiv(valid_bufferuiv_table, arraysize(valid_bufferuiv_table)),
979 capability(valid_capability_table, arraysize(valid_capability_table)),
980 cmp_function(valid_cmp_function_table,
981 arraysize(valid_cmp_function_table)),
982 compressed_texture_format(),
983 draw_mode(valid_draw_mode_table, arraysize(valid_draw_mode_table)),
984 dst_blend_factor(valid_dst_blend_factor_table,
985 arraysize(valid_dst_blend_factor_table)),
986 equation(valid_equation_table, arraysize(valid_equation_table)),
987 face_mode(valid_face_mode_table, arraysize(valid_face_mode_table)),
988 face_type(valid_face_type_table, arraysize(valid_face_type_table)),
989 frame_buffer_parameter(valid_frame_buffer_parameter_table,
990 arraysize(valid_frame_buffer_parameter_table)),
991 frame_buffer_target(valid_frame_buffer_target_table,
992 arraysize(valid_frame_buffer_target_table)),
993 g_l_state(valid_g_l_state_table, arraysize(valid_g_l_state_table)),
994 get_max_index_type(valid_get_max_index_type_table,
995 arraysize(valid_get_max_index_type_table)),
996 get_tex_param_target(valid_get_tex_param_target_table,
997 arraysize(valid_get_tex_param_target_table)),
998 hint_mode(valid_hint_mode_table, arraysize(valid_hint_mode_table)),
999 hint_target(valid_hint_target_table, arraysize(valid_hint_target_table)),
1000 image_internal_format(valid_image_internal_format_table,
1001 arraysize(valid_image_internal_format_table)),
1002 image_usage(valid_image_usage_table, arraysize(valid_image_usage_table)),
1003 index_type(valid_index_type_table, arraysize(valid_index_type_table)),
1004 indexed_buffer_target(valid_indexed_buffer_target_table,
1005 arraysize(valid_indexed_buffer_target_table)),
1006 indexed_g_l_state(valid_indexed_g_l_state_table,
1007 arraysize(valid_indexed_g_l_state_table)),
1008 internal_format_parameter(
1009 valid_internal_format_parameter_table,
1010 arraysize(valid_internal_format_parameter_table)),
1011 invalidate_frame_buffer_target(
1012 valid_invalidate_frame_buffer_target_table,
1013 arraysize(valid_invalidate_frame_buffer_target_table)),
1014 map_buffer_access(valid_map_buffer_access_table,
1015 arraysize(valid_map_buffer_access_table)),
1016 matrix_mode(valid_matrix_mode_table, arraysize(valid_matrix_mode_table)),
1017 path_coord_type(valid_path_coord_type_table,
1018 arraysize(valid_path_coord_type_table)),
1019 path_cover_mode(valid_path_cover_mode_table,
1020 arraysize(valid_path_cover_mode_table)),
1021 path_fill_mode(valid_path_fill_mode_table,
1022 arraysize(valid_path_fill_mode_table)),
1023 path_parameter(valid_path_parameter_table,
1024 arraysize(valid_path_parameter_table)),
1025 path_parameter_cap_values(
1026 valid_path_parameter_cap_values_table,
1027 arraysize(valid_path_parameter_cap_values_table)),
1028 path_parameter_join_values(
1029 valid_path_parameter_join_values_table,
1030 arraysize(valid_path_parameter_join_values_table)),
1031 pixel_store(valid_pixel_store_table, arraysize(valid_pixel_store_table)),
1032 pixel_store_alignment(valid_pixel_store_alignment_table,
1033 arraysize(valid_pixel_store_alignment_table)),
1034 pixel_type(valid_pixel_type_table, arraysize(valid_pixel_type_table)),
1035 program_parameter(valid_program_parameter_table,
1036 arraysize(valid_program_parameter_table)),
1037 query_object_parameter(valid_query_object_parameter_table,
1038 arraysize(valid_query_object_parameter_table)),
1039 query_parameter(valid_query_parameter_table,
1040 arraysize(valid_query_parameter_table)),
1041 query_target(valid_query_target_table,
1042 arraysize(valid_query_target_table)),
1043 read_buffer(valid_read_buffer_table, arraysize(valid_read_buffer_table)),
1044 read_pixel_format(valid_read_pixel_format_table,
1045 arraysize(valid_read_pixel_format_table)),
1046 read_pixel_type(valid_read_pixel_type_table,
1047 arraysize(valid_read_pixel_type_table)),
1048 render_buffer_format(valid_render_buffer_format_table,
1049 arraysize(valid_render_buffer_format_table)),
1050 render_buffer_parameter(valid_render_buffer_parameter_table,
1051 arraysize(valid_render_buffer_parameter_table)),
1052 render_buffer_target(valid_render_buffer_target_table,
1053 arraysize(valid_render_buffer_target_table)),
1054 reset_status(valid_reset_status_table,
1055 arraysize(valid_reset_status_table)),
1056 sampler_parameter(valid_sampler_parameter_table,
1057 arraysize(valid_sampler_parameter_table)),
1058 shader_binary_format(),
1059 shader_parameter(valid_shader_parameter_table,
1060 arraysize(valid_shader_parameter_table)),
1061 shader_precision(valid_shader_precision_table,
1062 arraysize(valid_shader_precision_table)),
1063 shader_type(valid_shader_type_table, arraysize(valid_shader_type_table)),
1064 src_blend_factor(valid_src_blend_factor_table,
1065 arraysize(valid_src_blend_factor_table)),
1066 stencil_op(valid_stencil_op_table, arraysize(valid_stencil_op_table)),
1067 string_type(valid_string_type_table, arraysize(valid_string_type_table)),
1068 subscription_target(valid_subscription_target_table,
1069 arraysize(valid_subscription_target_table)),
1070 sync_flush_flags(valid_sync_flush_flags_table,
1071 arraysize(valid_sync_flush_flags_table)),
1072 sync_parameter(valid_sync_parameter_table,
1073 arraysize(valid_sync_parameter_table)),
1074 texture_3_d_target(valid_texture_3_d_target_table,
1075 arraysize(valid_texture_3_d_target_table)),
1076 texture_bind_target(valid_texture_bind_target_table,
1077 arraysize(valid_texture_bind_target_table)),
1078 texture_compare_func(valid_texture_compare_func_table,
1079 arraysize(valid_texture_compare_func_table)),
1080 texture_compare_mode(valid_texture_compare_mode_table,
1081 arraysize(valid_texture_compare_mode_table)),
1082 texture_format(valid_texture_format_table,
1083 arraysize(valid_texture_format_table)),
1084 texture_internal_format(valid_texture_internal_format_table,
1085 arraysize(valid_texture_internal_format_table)),
1086 texture_internal_format_storage(
1087 valid_texture_internal_format_storage_table,
1088 arraysize(valid_texture_internal_format_storage_table)),
1089 texture_mag_filter_mode(valid_texture_mag_filter_mode_table,
1090 arraysize(valid_texture_mag_filter_mode_table)),
1091 texture_min_filter_mode(valid_texture_min_filter_mode_table,
1092 arraysize(valid_texture_min_filter_mode_table)),
1093 texture_parameter(valid_texture_parameter_table,
1094 arraysize(valid_texture_parameter_table)),
1095 texture_pool(valid_texture_pool_table,
1096 arraysize(valid_texture_pool_table)),
1097 texture_target(valid_texture_target_table,
1098 arraysize(valid_texture_target_table)),
1099 texture_usage(valid_texture_usage_table,
1100 arraysize(valid_texture_usage_table)),
1101 texture_wrap_mode(valid_texture_wrap_mode_table,
1102 arraysize(valid_texture_wrap_mode_table)),
1103 transform_feedback_bind_target(
1104 valid_transform_feedback_bind_target_table,
1105 arraysize(valid_transform_feedback_bind_target_table)),
1106 transform_feedback_primitive_mode(
1107 valid_transform_feedback_primitive_mode_table,
1108 arraysize(valid_transform_feedback_primitive_mode_table)),
1109 uniform_block_parameter(valid_uniform_block_parameter_table,
1110 arraysize(valid_uniform_block_parameter_table)),
1111 uniform_parameter(valid_uniform_parameter_table,
1112 arraysize(valid_uniform_parameter_table)),
1113 value_buffer_target(valid_value_buffer_target_table,
1114 arraysize(valid_value_buffer_target_table)),
1115 vertex_attrib_i_type(valid_vertex_attrib_i_type_table,
1116 arraysize(valid_vertex_attrib_i_type_table)),
1117 vertex_attrib_size(valid_vertex_attrib_size_table,
1118 arraysize(valid_vertex_attrib_size_table)),
1119 vertex_attrib_type(valid_vertex_attrib_type_table,
1120 arraysize(valid_vertex_attrib_type_table)),
1121 vertex_attribute(valid_vertex_attribute_table,
1122 arraysize(valid_vertex_attribute_table)),
1123 vertex_pointer(valid_vertex_pointer_table,
1124 arraysize(valid_vertex_pointer_table)) {}
1126 void Validators::UpdateValuesES3() {
1127 attachment.AddValues(valid_attachment_table_es3,
1128 arraysize(valid_attachment_table_es3));
1129 buffer_parameter.AddValues(valid_buffer_parameter_table_es3,
1130 arraysize(valid_buffer_parameter_table_es3));
1131 buffer_target.AddValues(valid_buffer_target_table_es3,
1132 arraysize(valid_buffer_target_table_es3));
1133 buffer_usage.AddValues(valid_buffer_usage_table_es3,
1134 arraysize(valid_buffer_usage_table_es3));
1135 capability.AddValues(valid_capability_table_es3,
1136 arraysize(valid_capability_table_es3));
1137 compressed_texture_format.AddValues(
1138 valid_compressed_texture_format_table_es3,
1139 arraysize(valid_compressed_texture_format_table_es3));
1140 equation.AddValues(valid_equation_table_es3,
1141 arraysize(valid_equation_table_es3));
1142 frame_buffer_parameter.AddValues(
1143 valid_frame_buffer_parameter_table_es3,
1144 arraysize(valid_frame_buffer_parameter_table_es3));
1145 frame_buffer_target.AddValues(valid_frame_buffer_target_table_es3,
1146 arraysize(valid_frame_buffer_target_table_es3));
1147 g_l_state.AddValues(valid_g_l_state_table_es3,
1148 arraysize(valid_g_l_state_table_es3));
1149 get_tex_param_target.AddValues(
1150 valid_get_tex_param_target_table_es3,
1151 arraysize(valid_get_tex_param_target_table_es3));
1152 hint_target.AddValues(valid_hint_target_table_es3,
1153 arraysize(valid_hint_target_table_es3));
1154 index_type.AddValues(valid_index_type_table_es3,
1155 arraysize(valid_index_type_table_es3));
1156 pixel_store.AddValues(valid_pixel_store_table_es3,
1157 arraysize(valid_pixel_store_table_es3));
1158 pixel_type.AddValues(valid_pixel_type_table_es3,
1159 arraysize(valid_pixel_type_table_es3));
1160 program_parameter.AddValues(valid_program_parameter_table_es3,
1161 arraysize(valid_program_parameter_table_es3));
1162 read_pixel_format.RemoveValues(
1163 deprecated_read_pixel_format_table_es3,
1164 arraysize(deprecated_read_pixel_format_table_es3));
1165 read_pixel_format.AddValues(valid_read_pixel_format_table_es3,
1166 arraysize(valid_read_pixel_format_table_es3));
1167 read_pixel_type.RemoveValues(deprecated_read_pixel_type_table_es3,
1168 arraysize(deprecated_read_pixel_type_table_es3));
1169 read_pixel_type.AddValues(valid_read_pixel_type_table_es3,
1170 arraysize(valid_read_pixel_type_table_es3));
1171 render_buffer_format.AddValues(
1172 valid_render_buffer_format_table_es3,
1173 arraysize(valid_render_buffer_format_table_es3));
1174 render_buffer_parameter.AddValues(
1175 valid_render_buffer_parameter_table_es3,
1176 arraysize(valid_render_buffer_parameter_table_es3));
1177 texture_bind_target.AddValues(valid_texture_bind_target_table_es3,
1178 arraysize(valid_texture_bind_target_table_es3));
1179 texture_format.AddValues(valid_texture_format_table_es3,
1180 arraysize(valid_texture_format_table_es3));
1181 texture_internal_format.AddValues(
1182 valid_texture_internal_format_table_es3,
1183 arraysize(valid_texture_internal_format_table_es3));
1184 texture_internal_format_storage.RemoveValues(
1185 deprecated_texture_internal_format_storage_table_es3,
1186 arraysize(deprecated_texture_internal_format_storage_table_es3));
1187 texture_internal_format_storage.AddValues(
1188 valid_texture_internal_format_storage_table_es3,
1189 arraysize(valid_texture_internal_format_storage_table_es3));
1190 texture_parameter.AddValues(valid_texture_parameter_table_es3,
1191 arraysize(valid_texture_parameter_table_es3));
1192 vertex_attrib_type.AddValues(valid_vertex_attrib_type_table_es3,
1193 arraysize(valid_vertex_attrib_type_table_es3));
1194 vertex_attribute.AddValues(valid_vertex_attribute_table_es3,
1195 arraysize(valid_vertex_attribute_table_es3));
1198 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_IMPLEMENTATION_AUTOGEN_H_