Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(192)

Unified Diff: gpu/command_buffer/service/gles2_cmd_validation_implementation_autogen.h

Issue 1133033002: Update GetTexParameter* and TexParameter* for ES3 in GPU command buffer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: gpu/command_buffer/service/gles2_cmd_validation_implementation_autogen.h
diff --git a/gpu/command_buffer/service/gles2_cmd_validation_implementation_autogen.h b/gpu/command_buffer/service/gles2_cmd_validation_implementation_autogen.h
index 091eddafd0a0377b1b9a329e28f372d0fd94ea5b..0c969af5fcfe725bf261d07785779b387bb02c8a 100644
--- a/gpu/command_buffer/service/gles2_cmd_validation_implementation_autogen.h
+++ b/gpu/command_buffer/service/gles2_cmd_validation_implementation_autogen.h
@@ -356,6 +356,8 @@ static const GLenum valid_get_max_index_type_table[] = {
static const GLenum valid_get_tex_param_target_table[] = {
GL_TEXTURE_2D,
+ GL_TEXTURE_3D,
+ GL_TEXTURE_2D_ARRAY,
GL_TEXTURE_CUBE_MAP,
};
@@ -627,6 +629,22 @@ static const GLenum valid_texture_bind_target_table_es3[] = {
GL_TEXTURE_2D_ARRAY,
};
+static const GLenum valid_texture_compare_func_table[] = {
+ GL_LEQUAL,
+ GL_GEQUAL,
+ GL_LESS,
+ GL_GREATER,
+ GL_EQUAL,
+ GL_NOTEQUAL,
+ GL_ALWAYS,
+ GL_NEVER,
+};
+
+static const GLenum valid_texture_compare_mode_table[] = {
+ GL_NONE,
+ GL_COMPARE_REF_TO_TEXTURE,
+};
+
static const GLenum valid_texture_format_table[] = {
GL_ALPHA,
GL_LUMINANCE,
@@ -814,8 +832,17 @@ static const GLenum valid_texture_parameter_table[] = {
GL_TEXTURE_MAG_FILTER,
GL_TEXTURE_MIN_FILTER,
GL_TEXTURE_POOL_CHROMIUM,
+ GL_TEXTURE_WRAP_R,
GL_TEXTURE_WRAP_S,
GL_TEXTURE_WRAP_T,
+ GL_TEXTURE_COMPARE_FUNC,
+ GL_TEXTURE_COMPARE_MODE,
+ GL_TEXTURE_MAX_LOD,
+ GL_TEXTURE_MIN_LOD,
+ GL_TEXTURE_BASE_LEVEL,
+ GL_TEXTURE_MAX_LEVEL,
+ GL_TEXTURE_IMMUTABLE_FORMAT,
+ GL_TEXTURE_IMMUTABLE_LEVELS,
};
static const GLenum valid_texture_pool_table[] = {
@@ -1011,6 +1038,10 @@ Validators::Validators()
arraysize(valid_texture_3_d_target_table)),
texture_bind_target(valid_texture_bind_target_table,
arraysize(valid_texture_bind_target_table)),
+ texture_compare_func(valid_texture_compare_func_table,
+ arraysize(valid_texture_compare_func_table)),
+ texture_compare_mode(valid_texture_compare_mode_table,
+ arraysize(valid_texture_compare_mode_table)),
texture_format(valid_texture_format_table,
arraysize(valid_texture_format_table)),
texture_internal_format(valid_texture_internal_format_table,

Powered by Google App Engine
This is Rietveld 408576698