1 // Copyright (c) 2013 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.
5 // Determines whether a certain driver bug exists in the current system.
6 // The format of a valid gpu_driver_bug_list.json file is defined in
7 // <gpu/config/gpu_control_list_format.txt>.
8 // The supported "features" can be found in
9 // <gpu/config/gpu_driver_bug_workaround_type.h>.
11 #include "gpu/config/gpu_control_list_jsons.h"
13 #define LONG_STRING_CONST(...) #__VA_ARGS__
17 const char kGpuDriverBugListJson[] = LONG_STRING_CONST(
20 "name": "gpu driver bug list",
21 // Please update the version number whenever you change this file.
26 "description": "Imagination driver doesn't like uploading lots of buffer data constantly",
32 "value": "Imagination"
35 "use_client_side_arrays_for_stream_buffers"
40 "description": "ARM driver doesn't like uploading lots of buffer data constantly",
49 "use_client_side_arrays_for_stream_buffers"
55 "set_texture_filter_before_generating_mipmap"
60 "description": "Need to set the alpha to 255",
62 "clear_alpha_in_readpixels"
67 "vendor_id": "0x10de",
69 "use_current_program_after_successful_link"
74 "cr_bugs": [165493, 222018],
87 "restore_scissor_on_fbo_change"
96 "vendor_id": "0x10de",
98 "needs_offscreen_buffer_workaround"
106 "vendor_id": "0x1002",
108 "needs_glsl_built_in_function_emulation"
113 "description": "Mac AMD drivers get gl_PointCoord backward on OSX 10.8 or earlier",
122 "vendor_id": "0x1002",
124 "reverse_point_sprite_coord_origin"
129 "description": "Mac Intel drivers get gl_PointCoord backward on OSX 10.8 or earlier",
138 "vendor_id": "0x8086",
140 "reverse_point_sprite_coord_origin"
148 "vendor_id": "0x8086",
150 "max_texture_size_limit_4096"
158 "vendor_id": "0x8086",
160 "max_cube_map_texture_size_limit_1024"
172 "vendor_id": "0x8086",
174 "max_cube_map_texture_size_limit_512"
182 "vendor_id": "0x1002",
184 "max_texture_size_limit_4096",
185 "max_cube_map_texture_size_limit_4096"
190 "description": "Intel drivers on Linux appear to be buggy",
194 "vendor_id": "0x8086",
196 "disable_ext_occlusion_query"
201 "description": "Some drivers are unable to reset the D3D device in the GPU process sandbox",
206 "exit_on_context_lost"
211 "description": "Everything except async + NPOT + multiple-of-8 textures are brutally slow for Imagination drivers",
217 "value": "Imagination"
220 "enable_chromium_fast_npot_mo8_textures"
233 "disable_depth_texture"
238 "description": "Disable EXT_draw_buffers on GeForce GT 650M on Mac OS X due to driver bugs.",
242 "vendor_id": "0x10de",
243 "device_id": ["0x0fd5"],
244 "multi_gpu_category": "any",
246 "disable_ext_draw_buffers"
251 "description": "Vivante GPUs are buggy with context switching.",
252 "cr_bugs": [179250, 235935],
258 "value": "GL_VIV_shader_binary"
261 "unbind_fbo_on_context_switch"
266 "description": "Imagination drivers are buggy with context switching.",
273 "value": "Imagination"
276 "unbind_fbo_on_context_switch"
282 "description": "Disable OES_standard_derivative on Intel Pineview M Gallium drivers.",
286 "vendor_id": "0x8086",
287 "device_id": ["0xa011", "0xa012"],
289 "disable_oes_standard_derivatives"
295 "description": "Mali-400 drivers throw an error when a buffer object's size is set to 0.",
308 "use_non_zero_size_for_client_side_stream_buffers"
315 "PBO + Readpixels + intel gpu doesn't work on OSX 10.7.",
323 "vendor_id": "0x8086",
325 "disable_async_readpixels"
330 "description": "Disable use of Direct3D 11 on Windows Vista and lower.",
345 "description": "Async Readpixels with GL_BGRA format is broken on Haswell chipset on Mac.",
349 "vendor_id": "0x8086",
350 "device_id": ["0x0402", "0x0406", "0x040a", "0x0412", "0x0416", "0x041a",
351 "0x0a04", "0x0a16", "0x0a22", "0x0a26", "0x0a2a"],
353 "swizzle_rgba_for_async_readpixels"
359 "description": "Testing fences is broken on QualComm.",
372 "disable_async_readpixels"
378 "description": "Multisampling is buggy on OSX when multiple monitors are connected",
383 "disable_multimonitor_multisampling"
388 "cr_bugs": [154715, 10068, 269829, 294779, 285292],
389 "description": "The Mali-Txxx driver does not guarantee flush ordering.",
399 "use_virtualized_gl_contexts"
405 "description": "Share groups are not working on (older?) Broadcom drivers.",
414 "use_virtualized_gl_contexts"
419 "description": "Share group-related crashes and poor context switching perf on Galaxy Nexus.",
425 "value": "Imagination"
428 "use_virtualized_gl_contexts"
433 "cr_bugs": [179250, 229643, 230896],
434 "description": "Share groups are not working on (older?) Vivante drivers.",
440 "value": "GL_VIV_shader_binary"
443 "use_virtualized_gl_contexts"
449 "description": "Share-group related crashes on older NVIDIA drivers.",
462 "use_virtualized_gl_contexts"
467 "cr_bugs": [163464, 233612],
468 "description": "Share-group related crashes on Qualcomm drivers.",
481 "use_virtualized_gl_contexts"
487 "description": "Program link fails in NVIDIA Linux if gl_Position is not set",
491 "vendor_id": "0x10de",
493 "init_gl_position_in_vertex_shader"
499 "description": "Non-virtual contexts on Qualcomm sometimes cause out-of-order frames",
508 "use_virtualized_gl_contexts"
514 "description": "Multisampled renderbuffer allocation must be validated on some Macs",
519 "validate_multisample_buffer_allocation"
525 "description": "Framebuffer discarding causes flickering on old ARM drivers",
538 "disable_ext_discard_framebuffer"
544 "description": "Framebuffer discarding causes flickering on older IMG drivers.",
550 "value": "Imagination"
554 "value": "PowerVR SGX 540"
557 "disable_ext_discard_framebuffer"
563 "description": "Framebuffer discarding doesn't accept trivial attachments on Vivante.",
569 "value": "GL_VIV_shader_binary"
572 "disable_ext_discard_framebuffer"
578 "description": "Framebuffer discarding causes jumpy scrolling on Mali drivers",
583 "disable_ext_discard_framebuffer"
589 "description": "Unfold short circuit on MacOSX.",
594 "unfold_short_circuit_as_ternary_operation"
599 "description": "Using D3D11 causes browser crashes on certain Intel GPUs.",
604 "vendor_id": "0x8086",
611 "description": "Force to use discrete GPU on older MacBookPro models.",
623 "value": "MacBookPro"
641 "description": "The first draw operation from an idle state is slow.",
650 "wake_up_gpu_before_drawing"
655 "description": "NVIDIA driver requires unbinding a GpuMemoryBuffer from the texture before mapping it to main memory",
664 "release_image_after_use"
669 "description": "TexSubImage2D() is faster for full uploads on ANGLE.",
678 "texsubimage2d_faster_than_teximage2d"
683 "description": "ES3 MSAA is broken on Qualcomm.",
692 "disable_multisampling"
698 "description": "ES3 multisampling is too slow to be usable on Mali.",
708 "disable_multisampling"
714 "description": "Clear uniforms before first program use on all platforms",
716 "clear_uniforms_before_first_program_use"
722 "description": "Mesa drivers in Linux handle varyings without static use incorrectly",
731 "count_all_in_varyings_packing"
737 "description": "Mesa drivers in ChromeOS handle varyings without static use incorrectly",
746 "count_all_in_varyings_packing"
752 "description": "Mac drivers handle varyings without static use incorrectly",
757 "init_varyings_without_static_use"
762 "description": "Multisampling is buggy in ATI cards on older MacOSX",
763 "cr_bugs": [67752, 83153],
771 "vendor_id": "0x1002",
773 "disable_multisampling"
778 "description": "Multisampling is buggy in Intel IvyBridge",
783 "vendor_id": "0x8086",
784 "device_id": ["0x0152", "0x0156", "0x015a", "0x0162", "0x0166"],
786 "disable_multisampling"
791 "description": "Multisampling is buggy on Mac with NVIDIA gpu prior to 10.8.3",
800 "vendor_id": "0x10de",
802 "disable_multisampling"
807 "description": "Multisampling is buggy on Mac with Intel gpu prior to 10.8.3",
816 "vendor_id": "0x8086",
818 "disable_multisampling"
823 "description": "Multisampling is buggy on Mac with AMD gpu prior to 10.8.3",
832 "vendor_id": "0x1002",
834 "disable_multisampling"
840 ); // LONG_STRING_CONST macro