Index: client/deps/glbench/src/main.cc |
diff --git a/client/deps/glbench/src/main.cc b/client/deps/glbench/src/main.cc |
index d77748105d633764db69d08a4a6d91d916db2d4c..3e7d04a7577f538ad24105b3c9551f42e03a3012 100644 |
--- a/client/deps/glbench/src/main.cc |
+++ b/client/deps/glbench/src/main.cc |
@@ -21,6 +21,7 @@ using std::vector; |
DEFINE_int32(duration, 0, "run tests in a loop for at least this many seconds"); |
DEFINE_string(tests, "", "colon-separated list of tests to run; " |
"all tests if omitted"); |
+DEFINE_bool(get_board_id, false, "return the board id for checksums"); |
bool test_is_enabled(glbench::TestBase* test, |
@@ -48,6 +49,13 @@ int main(int argc, char *argv[]) { |
return 1; |
} |
+ if (FLAGS_get_board_id) { |
+ InitContext(); |
+ printf("%s / %s\n", glGetString(GL_VENDOR), glGetString(GL_RENDERER)); |
+ DestroyContext(); |
+ return 0; |
+ } |
+ |
vector<string> enabled_tests; |
SplitString(FLAGS_tests, ':', &enabled_tests); |