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

Unified Diff: gpu/command_buffer/service/feature_info.cc

Issue 16420008: Manual cherry pick of 204571 "Add workaround for Mali-400 zero-sized buffer bug." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1500/src/
Patch Set: Created 7 years, 6 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/feature_info.cc
===================================================================
--- gpu/command_buffer/service/feature_info.cc (revision 205634)
+++ gpu/command_buffer/service/feature_info.cc (working copy)
@@ -192,6 +192,7 @@
bool is_imagination = false;
bool is_arm = false;
bool is_vivante = false;
+ bool is_mali400 = false;
const char* gl_strings[2];
gl_strings[0] = reinterpret_cast<const char*>(glGetString(GL_VENDOR));
gl_strings[1] = reinterpret_cast<const char*>(glGetString(GL_RENDERER));
@@ -211,6 +212,7 @@
is_arm |= string_set.Contains("arm");
is_vivante |= string_set.Contains("vivante");
is_vivante |= string_set.Contains("hisilicon");
+ is_mali400 |= string_set.Contains("mali-400");
}
}
@@ -414,6 +416,10 @@
workarounds_.use_client_side_arrays_for_stream_buffers = true;
}
+ if (is_mali400) {
+ workarounds_.use_non_zero_size_for_client_side_stream_buffers = true;
+ }
+
// If we're using client_side_arrays we have to emulate
// vertex array objects since vertex array objects do not work
// with client side arrays.
« no previous file with comments | « gpu/command_buffer/service/buffer_manager.cc ('k') | gpu/command_buffer/service/gpu_driver_bug_workaround_type.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698