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

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

Issue 1000483002: Added GLES3 Capabilities to the Command Buffer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Stopped ES3 features from being set unless backed by an ES3 context Created 5 years, 9 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 11d849276e8773349192dbffa6d06a562307e6e2..a58d177179c839d89c4fc3e99666b6af5aef1130 100644
--- a/gpu/command_buffer/service/gles2_cmd_validation_implementation_autogen.h
+++ b/gpu/command_buffer/service/gles2_cmd_validation_implementation_autogen.h
@@ -88,6 +88,11 @@ static const GLenum valid_capability_table[] = {
GL_STENCIL_TEST,
};
+static const GLenum valid_capability_table_es3[] = {
+ GL_PRIMITIVE_RESTART_FIXED_INDEX,
+ GL_RASTERIZER_DISCARD,
+};
+
static const GLenum valid_cmp_function_table[] = {
GL_NEVER,
GL_LESS,
@@ -246,6 +251,8 @@ static const GLenum valid_g_l_state_table[] = {
GL_SAMPLE_COVERAGE,
GL_SCISSOR_TEST,
GL_STENCIL_TEST,
+ GL_PRIMITIVE_RESTART_FIXED_INDEX,
+ GL_RASTERIZER_DISCARD,
};
static const GLenum valid_get_max_index_type_table[] = {
@@ -763,6 +770,8 @@ Validators::Validators()
void Validators::AddES3Values() {
buffer_target.AddValues(valid_buffer_target_table_es3,
arraysize(valid_buffer_target_table_es3));
+ capability.AddValues(valid_capability_table_es3,
+ arraysize(valid_capability_table_es3));
}
#endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_IMPLEMENTATION_AUTOGEN_H_

Powered by Google App Engine
This is Rietveld 408576698