OLD | NEW |
(Empty) | |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 # This dictionary of GPU information was reformatted from the output |
| 6 # of the webgl_conformance tests run on the win_chromium_rel_ng trybot |
| 7 # (the step run on Windows with AMD GPU). It helps test |
| 8 # telemetry.internal.platform's GPUInfo class, and specifically the |
| 9 # attributes it expects to find in the dictionary; if the code changes |
| 10 # in an incompatible way, tests using this fake GPU info will begin |
| 11 # failing, indicating this fake data must be updated. |
| 12 # |
| 13 # To regenerate this less manually, import pdb in |
| 14 # telemetry/internal/platform/gpu_info.py and add a call to |
| 15 # pdb.set_trace() in GPUInfo.FromDict before the return statement. |
| 16 # Print the attrs dictionary in the debugger and copy/paste the result |
| 17 # on the right-hand side of this assignment. Then run: |
| 18 # |
| 19 # pyformat [this file name] | sed -e "s/'/'/g" |
| 20 # |
| 21 # and put the output into this file. |
| 22 |
| 23 FAKE_GPU_INFO = { |
| 24 'feature_status': |
| 25 { |
| 26 '2d_canvas': 'enabled', |
| 27 'flash_3d': 'enabled', |
| 28 'flash_stage3d': 'enabled', |
| 29 'flash_stage3d_baseline': 'enabled', |
| 30 'gpu_compositing': 'enabled', |
| 31 'multiple_raster_threads': 'enabled_on', |
| 32 'rasterization': 'disabled_software', |
| 33 'video_decode': 'enabled', |
| 34 'video_encode': 'enabled', |
| 35 'webgl': 'enabled' |
| 36 }, |
| 37 'aux_attributes': |
| 38 { |
| 39 'adapter_luid': 0.0, |
| 40 'amd_switchable': False, |
| 41 'basic_info_state': 1, |
| 42 'can_lose_context': False, |
| 43 'context_info_state': 1, |
| 44 'direct_rendering': True, |
| 45 'driver_date': '11-20-2014', |
| 46 'driver_vendor': 'Advanced Micro Devices, Inc.', |
| 47 'driver_version': '14.501.1003.0', |
| 48 'dx_diagnostics_info_state': 0, |
| 49 'gl_extensions': |
| 50 'GL_OES_element_index_uint GL_OES_packed_depth_stencil ' |
| 51 'GL_OES_get_program_binary GL_OES_rgb8_rgba8 ' |
| 52 'GL_EXT_texture_format_BGRA8888 GL_EXT_read_format_bgra ' |
| 53 'GL_NV_pixel_buffer_object GL_OES_mapbuffer ' |
| 54 'GL_EXT_map_buffer_range GL_OES_texture_half_float ' |
| 55 'GL_OES_texture_half_float_linear GL_OES_texture_float ' |
| 56 'GL_OES_texture_float_linear GL_EXT_texture_rg ' |
| 57 'GL_EXT_texture_compression_dxt1 ' |
| 58 'GL_ANGLE_texture_compression_dxt3 ' |
| 59 'GL_ANGLE_texture_compression_dxt5 GL_EXT_sRGB ' |
| 60 'GL_ANGLE_depth_texture GL_EXT_texture_storage ' |
| 61 'GL_OES_texture_npot GL_EXT_draw_buffers ' |
| 62 'GL_EXT_texture_filter_anisotropic ' |
| 63 'GL_EXT_occlusion_query_boolean GL_NV_fence GL_EXT_robustness ' |
| 64 'GL_EXT_blend_minmax GL_ANGLE_framebuffer_blit ' |
| 65 'GL_ANGLE_framebuffer_multisample GL_ANGLE_instanced_arrays ' |
| 66 'GL_ANGLE_pack_reverse_row_order GL_OES_standard_derivatives ' |
| 67 'GL_EXT_shader_texture_lod GL_EXT_frag_depth ' |
| 68 'GL_ANGLE_texture_usage GL_ANGLE_translated_shader_source ' |
| 69 'GL_EXT_debug_marker GL_OES_EGL_image', |
| 70 'gl_renderer': |
| 71 'ANGLE (AMD Radeon HD 6450 Direct3D11 vs_5_0 ps_5_0)', |
| 72 'gl_reset_notification_strategy': 33362, |
| 73 'gl_vendor': 'Google Inc.', |
| 74 'gl_version': 'OpenGL ES 2.0 (ANGLE 2.1.0.c5b2ba53591c)', |
| 75 'gl_ws_extensions': |
| 76 'EGL_EXT_create_context_robustness ' |
| 77 'EGL_ANGLE_d3d_share_handle_client_buffer ' |
| 78 'EGL_ANGLE_surface_d3d_texture_2d_share_handle ' |
| 79 'EGL_ANGLE_query_surface_pointer EGL_ANGLE_window_fixed_size ' |
| 80 'EGL_NV_post_sub_buffer EGL_KHR_create_context ' |
| 81 'EGL_EXT_device_query EGL_KHR_image EGL_KHR_image_base ' |
| 82 'EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image ' |
| 83 'EGL_KHR_gl_renderbuffer_image EGL_KHR_get_all_proc_addresses', |
| 84 'gl_ws_vendor': 'Google Inc. (adapter LUID: 0000000000007924)', |
| 85 'gl_ws_version': '1.4 (ANGLE 2.1.0.c5b2ba53591c)', |
| 86 'in_process_gpu': False, |
| 87 'initialization_time': 2.503214, |
| 88 'jpeg_decode_accelerator_supported': False, |
| 89 'lenovo_dcute': False, |
| 90 'max_msaa_samples': '4', |
| 91 'max_resolution_height': 1088, |
| 92 'max_resolution_width': 1920, |
| 93 'min_resolution_height': 48, |
| 94 'min_resolution_width': 48, |
| 95 'optimus': False, |
| 96 'pixel_shader_version': '5.0', |
| 97 'process_crash_count': 0, |
| 98 'profile': 12, |
| 99 'sandboxed': True, |
| 100 'software_rendering': False, |
| 101 'vertex_shader_version': '5.0' |
| 102 }, |
| 103 'devices': |
| 104 [ |
| 105 { |
| 106 'device_string': '', |
| 107 'vendor_id': 4098.0, |
| 108 'device_id': 26489.0, |
| 109 'vendor_string': '' |
| 110 }, |
| 111 { |
| 112 'device_string': '', |
| 113 'vendor_id': 4139.0, |
| 114 'device_id': 1332.0, |
| 115 'vendor_string': '' |
| 116 }, |
| 117 ], |
| 118 'driver_bug_workarounds': |
| 119 [ |
| 120 'clear_uniforms_before_first_program_use', |
| 121 'exit_on_context_lost', |
| 122 'force_cube_complete', |
| 123 'scalarize_vec_and_mat_constructor_args', |
| 124 'texsubimage_faster_than_teximage' |
| 125 ] |
| 126 } |
OLD | NEW |