[email protected] | c9e2cbbb | 2012-05-12 21:17:27 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
[email protected] | 7004d7eb | 2011-01-21 00:27:53 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
[email protected] | d7b5cc7 | 2013-05-23 20:05:00 | [diff] [blame] | 5 | #include "gpu/config/gpu_info_collector.h" |
[email protected] | 7004d7eb | 2011-01-21 00:27:53 | [diff] [blame] | 6 | |
avi | f15d60a | 2015-12-21 17:06:33 | [diff] [blame] | 7 | #include <stddef.h> |
| 8 | #include <stdint.h> |
| 9 | |
[email protected] | 7004d7eb | 2011-01-21 00:27:53 | [diff] [blame] | 10 | #include <string> |
| 11 | #include <vector> |
| 12 | |
[email protected] | 7004d7eb | 2011-01-21 00:27:53 | [diff] [blame] | 13 | #include "base/logging.h" |
[email protected] | c9e2cbbb | 2012-05-12 21:17:27 | [diff] [blame] | 14 | #include "base/memory/scoped_ptr.h" |
senorblanco | 930f690f | 2015-09-18 16:18:03 | [diff] [blame] | 15 | #include "base/metrics/sparse_histogram.h" |
[email protected] | f439096 | 2013-06-11 07:29:22 | [diff] [blame] | 16 | #include "base/strings/string_number_conversions.h" |
[email protected] | b9e7c479f | 2013-04-12 04:33:24 | [diff] [blame] | 17 | #include "base/strings/string_piece.h" |
[email protected] | 27c0573 | 2013-02-15 21:55:49 | [diff] [blame] | 18 | #include "base/strings/string_split.h" |
zmo | 7c7ee3e | 2015-12-09 23:00:32 | [diff] [blame] | 19 | #include "base/strings/string_util.h" |
primiano | 05dadf01 | 2015-01-28 13:10:32 | [diff] [blame] | 20 | #include "base/trace_event/trace_event.h" |
[email protected] | c9e2cbbb | 2012-05-12 21:17:27 | [diff] [blame] | 21 | #include "ui/gl/gl_bindings.h" |
| 22 | #include "ui/gl/gl_context.h" |
[email protected] | 4589503 | 2013-05-30 17:06:43 | [diff] [blame] | 23 | #include "ui/gl/gl_implementation.h" |
[email protected] | c9e2cbbb | 2012-05-12 21:17:27 | [diff] [blame] | 24 | #include "ui/gl/gl_surface.h" |
j.isorce | 246d1be5 | 2015-12-03 21:53:36 | [diff] [blame] | 25 | #include "ui/gl/gl_version_info.h" |
[email protected] | 7004d7eb | 2011-01-21 00:27:53 | [diff] [blame] | 26 | |
| 27 | namespace { |
| 28 | |
[email protected] | fbe2037 | 2011-06-01 01:46:38 | [diff] [blame] | 29 | scoped_refptr<gfx::GLSurface> InitializeGLSurface() { |
| 30 | scoped_refptr<gfx::GLSurface> surface( |
[email protected] | 772aa83 | 2014-05-30 01:27:47 | [diff] [blame] | 31 | gfx::GLSurface::CreateOffscreenGLSurface(gfx::Size())); |
[email protected] | 7cd76fd | 2013-06-02 21:11:11 | [diff] [blame] | 32 | if (!surface.get()) { |
[email protected] | ffae402 | 2011-05-12 22:54:29 | [diff] [blame] | 33 | LOG(ERROR) << "gfx::GLContext::CreateOffscreenGLSurface failed"; |
[email protected] | 7004d7eb | 2011-01-21 00:27:53 | [diff] [blame] | 34 | return NULL; |
| 35 | } |
[email protected] | ffae402 | 2011-05-12 22:54:29 | [diff] [blame] | 36 | |
[email protected] | fbe2037 | 2011-06-01 01:46:38 | [diff] [blame] | 37 | return surface; |
[email protected] | f62a5ab | 2011-05-23 20:34:15 | [diff] [blame] | 38 | } |
| 39 | |
[email protected] | fbe2037 | 2011-06-01 01:46:38 | [diff] [blame] | 40 | scoped_refptr<gfx::GLContext> InitializeGLContext(gfx::GLSurface* surface) { |
[email protected] | f62a5ab | 2011-05-23 20:34:15 | [diff] [blame] | 41 | |
[email protected] | 7196e01 | 2011-06-16 20:54:53 | [diff] [blame] | 42 | scoped_refptr<gfx::GLContext> context( |
[email protected] | 276f8906 | 2011-10-13 22:55:50 | [diff] [blame] | 43 | gfx::GLContext::CreateGLContext(NULL, |
| 44 | surface, |
[email protected] | 56403c2 | 2012-10-04 18:27:04 | [diff] [blame] | 45 | gfx::PreferIntegratedGpu)); |
[email protected] | 7cd76fd | 2013-06-02 21:11:11 | [diff] [blame] | 46 | if (!context.get()) { |
[email protected] | ffae402 | 2011-05-12 22:54:29 | [diff] [blame] | 47 | LOG(ERROR) << "gfx::GLContext::CreateGLContext failed"; |
| 48 | return NULL; |
| 49 | } |
| 50 | |
[email protected] | f62a5ab | 2011-05-23 20:34:15 | [diff] [blame] | 51 | if (!context->MakeCurrent(surface)) { |
[email protected] | 7004d7eb | 2011-01-21 00:27:53 | [diff] [blame] | 52 | LOG(ERROR) << "gfx::GLContext::MakeCurrent() failed"; |
[email protected] | 7004d7eb | 2011-01-21 00:27:53 | [diff] [blame] | 53 | return NULL; |
| 54 | } |
[email protected] | 7004d7eb | 2011-01-21 00:27:53 | [diff] [blame] | 55 | |
[email protected] | fbe2037 | 2011-06-01 01:46:38 | [diff] [blame] | 56 | return context; |
[email protected] | 7004d7eb | 2011-01-21 00:27:53 | [diff] [blame] | 57 | } |
| 58 | |
| 59 | std::string GetGLString(unsigned int pname) { |
| 60 | const char* gl_string = |
| 61 | reinterpret_cast<const char*>(glGetString(pname)); |
| 62 | if (gl_string) |
| 63 | return std::string(gl_string); |
[email protected] | 007b3f8 | 2013-04-09 08:46:45 | [diff] [blame] | 64 | return std::string(); |
[email protected] | 7004d7eb | 2011-01-21 00:27:53 | [diff] [blame] | 65 | } |
| 66 | |
[email protected] | 6cc8ece6 | 2011-03-14 20:05:47 | [diff] [blame] | 67 | // Return a version string in the format of "major.minor". |
| 68 | std::string GetVersionFromString(const std::string& version_string) { |
[email protected] | 7004d7eb | 2011-01-21 00:27:53 | [diff] [blame] | 69 | size_t begin = version_string.find_first_of("0123456789"); |
| 70 | if (begin != std::string::npos) { |
| 71 | size_t end = version_string.find_first_not_of("01234567890.", begin); |
| 72 | std::string sub_string; |
| 73 | if (end != std::string::npos) |
| 74 | sub_string = version_string.substr(begin, end - begin); |
| 75 | else |
| 76 | sub_string = version_string.substr(begin); |
brettw | 26dab8f0 | 2015-08-08 00:28:47 | [diff] [blame] | 77 | std::vector<std::string> pieces = base::SplitString( |
| 78 | sub_string, ".", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); |
[email protected] | 6cc8ece6 | 2011-03-14 20:05:47 | [diff] [blame] | 79 | if (pieces.size() >= 2) |
| 80 | return pieces[0] + "." + pieces[1]; |
[email protected] | 7004d7eb | 2011-01-21 00:27:53 | [diff] [blame] | 81 | } |
[email protected] | 007b3f8 | 2013-04-09 08:46:45 | [diff] [blame] | 82 | return std::string(); |
[email protected] | 7004d7eb | 2011-01-21 00:27:53 | [diff] [blame] | 83 | } |
| 84 | |
zmo | 7c7ee3e | 2015-12-09 23:00:32 | [diff] [blame] | 85 | // Return the array index of the found name, or return -1. |
| 86 | int StringContainsName( |
| 87 | const std::string& str, const std::string* names, size_t num_names) { |
| 88 | std::vector<std::string> tokens = base::SplitString( |
| 89 | str, " .,()-_", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); |
| 90 | for (size_t ii = 0; ii < tokens.size(); ++ii) { |
| 91 | for (size_t name_index = 0; name_index < num_names; ++name_index) { |
| 92 | if (tokens[ii] == names[name_index]) |
| 93 | return name_index; |
| 94 | } |
| 95 | } |
| 96 | return -1; |
| 97 | } |
| 98 | |
[email protected] | 7004d7eb | 2011-01-21 00:27:53 | [diff] [blame] | 99 | } // namespace anonymous |
| 100 | |
[email protected] | d7b5cc7 | 2013-05-23 20:05:00 | [diff] [blame] | 101 | namespace gpu { |
[email protected] | 7004d7eb | 2011-01-21 00:27:53 | [diff] [blame] | 102 | |
[email protected] | 0e8cac7 | 2014-03-22 00:37:18 | [diff] [blame] | 103 | CollectInfoResult CollectGraphicsInfoGL(GPUInfo* gpu_info) { |
[email protected] | aa328c7 | 2013-05-03 10:55:43 | [diff] [blame] | 104 | TRACE_EVENT0("startup", "gpu_info_collector::CollectGraphicsInfoGL"); |
[email protected] | 9338904 | 2014-02-11 03:46:52 | [diff] [blame] | 105 | DCHECK_NE(gfx::GetGLImplementation(), gfx::kGLImplementationNone); |
[email protected] | f62a5ab | 2011-05-23 20:34:15 | [diff] [blame] | 106 | |
[email protected] | fbe2037 | 2011-06-01 01:46:38 | [diff] [blame] | 107 | scoped_refptr<gfx::GLSurface> surface(InitializeGLSurface()); |
[email protected] | 0e8cac7 | 2014-03-22 00:37:18 | [diff] [blame] | 108 | if (!surface.get()) { |
| 109 | LOG(ERROR) << "Could not create surface for info collection."; |
| 110 | return kCollectInfoFatalFailure; |
| 111 | } |
[email protected] | f62a5ab | 2011-05-23 20:34:15 | [diff] [blame] | 112 | |
[email protected] | fbe2037 | 2011-06-01 01:46:38 | [diff] [blame] | 113 | scoped_refptr<gfx::GLContext> context(InitializeGLContext(surface.get())); |
[email protected] | 0e8cac7 | 2014-03-22 00:37:18 | [diff] [blame] | 114 | if (!context.get()) { |
| 115 | LOG(ERROR) << "Could not create context for info collection."; |
| 116 | return kCollectInfoFatalFailure; |
| 117 | } |
[email protected] | 7004d7eb | 2011-01-21 00:27:53 | [diff] [blame] | 118 | |
[email protected] | a61508e5 | 2011-03-08 17:59:42 | [diff] [blame] | 119 | gpu_info->gl_renderer = GetGLString(GL_RENDERER); |
| 120 | gpu_info->gl_vendor = GetGLString(GL_VENDOR); |
kbr | 53edb99 | 2015-08-06 01:16:29 | [diff] [blame] | 121 | gpu_info->gl_extensions = gfx::GetGLExtensionsFromCurrentContext(); |
[email protected] | 39c54262 | 2014-05-07 22:16:36 | [diff] [blame] | 122 | gpu_info->gl_version = GetGLString(GL_VERSION); |
[email protected] | 4df0884f | 2012-12-17 21:10:09 | [diff] [blame] | 123 | std::string glsl_version_string = GetGLString(GL_SHADING_LANGUAGE_VERSION); |
j.isorce | 246d1be5 | 2015-12-03 21:53:36 | [diff] [blame] | 124 | |
| 125 | gfx::GLVersionInfo gl_info(gpu_info->gl_version.c_str(), |
| 126 | gpu_info->gl_renderer.c_str(), |
| 127 | gpu_info->gl_extensions.c_str()); |
senorblanco | b7a64d5 | 2015-04-08 16:59:02 | [diff] [blame] | 128 | GLint max_samples = 0; |
j.isorce | 246d1be5 | 2015-12-03 21:53:36 | [diff] [blame] | 129 | if (gl_info.IsAtLeastGL(3, 0) || gl_info.IsAtLeastGLES(3, 0) || |
| 130 | gpu_info->gl_extensions.find("GL_ANGLE_framebuffer_multisample") != |
| 131 | std::string::npos || |
| 132 | gpu_info->gl_extensions.find("GL_APPLE_framebuffer_multisample") != |
| 133 | std::string::npos || |
| 134 | gpu_info->gl_extensions.find("GL_EXT_framebuffer_multisample") != |
| 135 | std::string::npos || |
| 136 | gpu_info->gl_extensions.find("GL_EXT_multisampled_render_to_texture") != |
| 137 | std::string::npos || |
| 138 | gpu_info->gl_extensions.find("GL_NV_framebuffer_multisample") != |
| 139 | std::string::npos) { |
| 140 | glGetIntegerv(GL_MAX_SAMPLES, &max_samples); |
| 141 | } |
ricea | a01edead | 2015-07-01 15:56:50 | [diff] [blame] | 142 | gpu_info->max_msaa_samples = base::IntToString(max_samples); |
senorblanco | 930f690f | 2015-09-18 16:18:03 | [diff] [blame] | 143 | UMA_HISTOGRAM_SPARSE_SLOWLY("GPU.MaxMSAASampleCount", max_samples); |
[email protected] | 4589503 | 2013-05-30 17:06:43 | [diff] [blame] | 144 | |
| 145 | gfx::GLWindowSystemBindingInfo window_system_binding_info; |
| 146 | if (GetGLWindowSystemBindingInfo(&window_system_binding_info)) { |
| 147 | gpu_info->gl_ws_vendor = window_system_binding_info.vendor; |
| 148 | gpu_info->gl_ws_version = window_system_binding_info.version; |
| 149 | gpu_info->gl_ws_extensions = window_system_binding_info.extensions; |
[email protected] | 0e8cac7 | 2014-03-22 00:37:18 | [diff] [blame] | 150 | gpu_info->direct_rendering = window_system_binding_info.direct_rendering; |
[email protected] | 4589503 | 2013-05-30 17:06:43 | [diff] [blame] | 151 | } |
| 152 | |
[email protected] | 6c7784e | 2013-08-01 22:41:28 | [diff] [blame] | 153 | bool supports_robustness = |
| 154 | gpu_info->gl_extensions.find("GL_EXT_robustness") != std::string::npos || |
dongseong.hwang | e1cb2aa | 2015-02-11 09:33:33 | [diff] [blame] | 155 | gpu_info->gl_extensions.find("GL_KHR_robustness") != std::string::npos || |
[email protected] | 6c7784e | 2013-08-01 22:41:28 | [diff] [blame] | 156 | gpu_info->gl_extensions.find("GL_ARB_robustness") != std::string::npos; |
| 157 | if (supports_robustness) { |
| 158 | glGetIntegerv(GL_RESET_NOTIFICATION_STRATEGY_ARB, |
| 159 | reinterpret_cast<GLint*>(&gpu_info->gl_reset_notification_strategy)); |
| 160 | } |
| 161 | |
[email protected] | 2436a6b | 2012-04-13 21:08:51 | [diff] [blame] | 162 | // TODO(kbr): remove once the destruction of a current context automatically |
| 163 | // clears the current context. |
| 164 | context->ReleaseCurrent(surface.get()); |
| 165 | |
[email protected] | 6cc8ece6 | 2011-03-14 20:05:47 | [diff] [blame] | 166 | std::string glsl_version = GetVersionFromString(glsl_version_string); |
[email protected] | a61508e5 | 2011-03-08 17:59:42 | [diff] [blame] | 167 | gpu_info->pixel_shader_version = glsl_version; |
| 168 | gpu_info->vertex_shader_version = glsl_version; |
[email protected] | 7004d7eb | 2011-01-21 00:27:53 | [diff] [blame] | 169 | |
zmo | 7c7ee3e | 2015-12-09 23:00:32 | [diff] [blame] | 170 | IdentifyActiveGPU(gpu_info); |
[email protected] | 4df0884f | 2012-12-17 21:10:09 | [diff] [blame] | 171 | return CollectDriverInfoGL(gpu_info); |
| 172 | } |
| 173 | |
[email protected] | d7b5cc7 | 2013-05-23 20:05:00 | [diff] [blame] | 174 | void MergeGPUInfoGL(GPUInfo* basic_gpu_info, |
| 175 | const GPUInfo& context_gpu_info) { |
[email protected] | 4df0884f | 2012-12-17 21:10:09 | [diff] [blame] | 176 | DCHECK(basic_gpu_info); |
zmo | 7c7ee3e | 2015-12-09 23:00:32 | [diff] [blame] | 177 | // Copy over GPUs because which one is active could change. |
| 178 | basic_gpu_info->gpu = context_gpu_info.gpu; |
| 179 | basic_gpu_info->secondary_gpus = context_gpu_info.secondary_gpus; |
| 180 | |
[email protected] | 4df0884f | 2012-12-17 21:10:09 | [diff] [blame] | 181 | basic_gpu_info->gl_renderer = context_gpu_info.gl_renderer; |
| 182 | basic_gpu_info->gl_vendor = context_gpu_info.gl_vendor; |
[email protected] | 4df0884f | 2012-12-17 21:10:09 | [diff] [blame] | 183 | basic_gpu_info->gl_version = context_gpu_info.gl_version; |
[email protected] | 39c54262 | 2014-05-07 22:16:36 | [diff] [blame] | 184 | basic_gpu_info->gl_extensions = context_gpu_info.gl_extensions; |
[email protected] | 4df0884f | 2012-12-17 21:10:09 | [diff] [blame] | 185 | basic_gpu_info->pixel_shader_version = |
| 186 | context_gpu_info.pixel_shader_version; |
| 187 | basic_gpu_info->vertex_shader_version = |
| 188 | context_gpu_info.vertex_shader_version; |
senorblanco | b7a64d5 | 2015-04-08 16:59:02 | [diff] [blame] | 189 | basic_gpu_info->max_msaa_samples = |
| 190 | context_gpu_info.max_msaa_samples; |
[email protected] | 4589503 | 2013-05-30 17:06:43 | [diff] [blame] | 191 | basic_gpu_info->gl_ws_vendor = context_gpu_info.gl_ws_vendor; |
| 192 | basic_gpu_info->gl_ws_version = context_gpu_info.gl_ws_version; |
| 193 | basic_gpu_info->gl_ws_extensions = context_gpu_info.gl_ws_extensions; |
[email protected] | 6c7784e | 2013-08-01 22:41:28 | [diff] [blame] | 194 | basic_gpu_info->gl_reset_notification_strategy = |
| 195 | context_gpu_info.gl_reset_notification_strategy; |
[email protected] | 4df0884f | 2012-12-17 21:10:09 | [diff] [blame] | 196 | |
| 197 | if (!context_gpu_info.driver_vendor.empty()) |
| 198 | basic_gpu_info->driver_vendor = context_gpu_info.driver_vendor; |
| 199 | if (!context_gpu_info.driver_version.empty()) |
| 200 | basic_gpu_info->driver_version = context_gpu_info.driver_version; |
| 201 | |
| 202 | basic_gpu_info->can_lose_context = context_gpu_info.can_lose_context; |
| 203 | basic_gpu_info->sandboxed = context_gpu_info.sandboxed; |
[email protected] | 0e8cac7 | 2014-03-22 00:37:18 | [diff] [blame] | 204 | basic_gpu_info->direct_rendering = context_gpu_info.direct_rendering; |
bajones | e3677b64 | 2015-07-25 00:41:56 | [diff] [blame] | 205 | basic_gpu_info->in_process_gpu = context_gpu_info.in_process_gpu; |
zmo | 84eae5e | 2014-09-05 01:36:23 | [diff] [blame] | 206 | basic_gpu_info->context_info_state = context_gpu_info.context_info_state; |
[email protected] | 4df0884f | 2012-12-17 21:10:09 | [diff] [blame] | 207 | basic_gpu_info->initialization_time = context_gpu_info.initialization_time; |
liberato | 57587790 | 2015-12-10 17:16:26 | [diff] [blame] | 208 | basic_gpu_info->video_decode_accelerator_capabilities = |
| 209 | context_gpu_info.video_decode_accelerator_capabilities; |
wuchengli | 7980832 | 2014-09-23 05:58:14 | [diff] [blame] | 210 | basic_gpu_info->video_encode_accelerator_supported_profiles = |
| 211 | context_gpu_info.video_encode_accelerator_supported_profiles; |
henryhsu | 74f6ef1 | 2015-07-23 08:34:37 | [diff] [blame] | 212 | basic_gpu_info->jpeg_decode_accelerator_supported = |
| 213 | context_gpu_info.jpeg_decode_accelerator_supported; |
[email protected] | 7004d7eb | 2011-01-21 00:27:53 | [diff] [blame] | 214 | } |
| 215 | |
zmo | 7c7ee3e | 2015-12-09 23:00:32 | [diff] [blame] | 216 | void IdentifyActiveGPU(GPUInfo* gpu_info) { |
| 217 | const std::string kNVidiaName = "nvidia"; |
| 218 | const std::string kIntelName = "intel"; |
| 219 | const std::string kAMDName = "amd"; |
| 220 | const std::string kATIName = "ati"; |
| 221 | const std::string kVendorNames[] = { |
| 222 | kNVidiaName, kIntelName, kAMDName, kATIName}; |
| 223 | |
avi | f15d60a | 2015-12-21 17:06:33 | [diff] [blame] | 224 | const uint32_t kNVidiaID = 0x10de; |
| 225 | const uint32_t kIntelID = 0x8086; |
| 226 | const uint32_t kAMDID = 0x1002; |
| 227 | const uint32_t kATIID = 0x1002; |
| 228 | const uint32_t kVendorIDs[] = {kNVidiaID, kIntelID, kAMDID, kATIID}; |
zmo | 7c7ee3e | 2015-12-09 23:00:32 | [diff] [blame] | 229 | |
| 230 | DCHECK(gpu_info); |
| 231 | if (gpu_info->secondary_gpus.size() == 0) |
| 232 | return; |
| 233 | |
avi | f15d60a | 2015-12-21 17:06:33 | [diff] [blame] | 234 | uint32_t active_vendor_id = 0; |
zmo | 7c7ee3e | 2015-12-09 23:00:32 | [diff] [blame] | 235 | if (!gpu_info->gl_vendor.empty()) { |
| 236 | std::string gl_vendor_lower = base::ToLowerASCII(gpu_info->gl_vendor); |
| 237 | int index = StringContainsName( |
| 238 | gl_vendor_lower, kVendorNames, arraysize(kVendorNames)); |
| 239 | if (index >= 0) { |
| 240 | active_vendor_id = kVendorIDs[index]; |
| 241 | } |
| 242 | } |
| 243 | if (active_vendor_id == 0 && !gpu_info->gl_renderer.empty()) { |
| 244 | std::string gl_renderer_lower = base::ToLowerASCII(gpu_info->gl_renderer); |
| 245 | int index = StringContainsName( |
| 246 | gl_renderer_lower, kVendorNames, arraysize(kVendorNames)); |
| 247 | if (index >= 0) { |
| 248 | active_vendor_id = kVendorIDs[index]; |
| 249 | } |
| 250 | } |
| 251 | if (active_vendor_id == 0) { |
| 252 | // We fail to identify the GPU vendor through GL_VENDOR/GL_RENDERER. |
| 253 | return; |
| 254 | } |
| 255 | gpu_info->gpu.active = false; |
| 256 | for (size_t ii = 0; ii < gpu_info->secondary_gpus.size(); ++ii) |
| 257 | gpu_info->secondary_gpus[ii].active = false; |
| 258 | |
| 259 | // TODO(zmo): if two GPUs are from the same vendor, this code will always |
| 260 | // set the first GPU as active, which could be wrong. |
| 261 | if (active_vendor_id == gpu_info->gpu.vendor_id) { |
| 262 | gpu_info->gpu.active = true; |
| 263 | return; |
| 264 | } |
| 265 | for (size_t ii = 0; ii < gpu_info->secondary_gpus.size(); ++ii) { |
| 266 | if (active_vendor_id == gpu_info->secondary_gpus[ii].vendor_id) { |
| 267 | gpu_info->secondary_gpus[ii].active = true; |
| 268 | return; |
| 269 | } |
| 270 | } |
| 271 | } |
| 272 | |
[email protected] | d7b5cc7 | 2013-05-23 20:05:00 | [diff] [blame] | 273 | } // namespace gpu |
[email protected] | 7004d7eb | 2011-01-21 00:27:53 | [diff] [blame] | 274 | |