Commit b0c8be85 by Jamie Madill Committed by Commit Bot

Fix AMD detection in angle_end2end_tests.

Some Radeon cards in D3D11 would not report AMD or ATI in the Renderer string. Fix this by also checking for 'Radeon'. Bug: angleproject:2572 Change-Id: I866c3042e35448deff627efdb8e94fcbc68abf01 Reviewed-on: https://chromium-review.googlesource.com/1171363Reviewed-by: 's avatarYuly Novikov <ynovikov@chromium.org> Commit-Queue: Jamie Madill <jmadill@chromium.org>
parent 077cd858
...@@ -1069,7 +1069,8 @@ bool IsAMD() ...@@ -1069,7 +1069,8 @@ bool IsAMD()
{ {
std::string rendererString(reinterpret_cast<const char *>(glGetString(GL_RENDERER))); std::string rendererString(reinterpret_cast<const char *>(glGetString(GL_RENDERER)));
return (rendererString.find("AMD") != std::string::npos) || return (rendererString.find("AMD") != std::string::npos) ||
(rendererString.find("ATI") != std::string::npos); (rendererString.find("ATI") != std::string::npos) ||
(rendererString.find("Radeon") != std::string::npos);
} }
bool IsNVIDIA() bool IsNVIDIA()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment