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",
30 "gl_vendor": "Imagination.*",
32 "use_client_side_arrays_for_stream_buffers"
37 "description": "ARM driver doesn't like uploading lots of buffer data constantly",
43 "use_client_side_arrays_for_stream_buffers"
48 "description": "glGenerateMipmap leaks vram without setting texture filters on some Mac drivers",
49 "webkit_bugs": [48489],
59 "set_texture_filter_before_generating_mipmap"
64 "description": "glReadPixels incorrectly sets alpha to 0 on some drivers from a drawing buffer without alpha channel",
65 "webkit_bugs": [33416],
75 "clear_alpha_in_readpixels"
80 "description": "Always call glUseProgram after a successful link to avoid a driver bug",
82 "vendor_id": "0x10de",
95 "use_current_program_after_successful_link"
100 "description": "Restore scissor on FBO change with Qualcomm GPUs on older versions of Android",
101 "cr_bugs": [165493, 222018],
109 "gl_vendor": "Qualcomm.*",
111 "restore_scissor_on_fbo_change"
117 "description": "Work around a bug in offscreen buffers on NVIDIA GPUs on Macs",
121 "vendor_id": "0x10de",
123 "needs_offscreen_buffer_workaround"
128 "description": "A few built-in glsl functions on Mac behave incorrectly",
137 "vendor_id": "0x1002",
139 "needs_glsl_built_in_function_emulation"
144 "description": "AMD drivers get gl_PointCoord backward on OS X 10.8 or earlier",
153 "vendor_id": "0x1002",
155 "reverse_point_sprite_coord_origin"
160 "description": "Intel drivers get gl_PointCoord backward on OS X 10.8 or earlier",
169 "vendor_id": "0x8086",
171 "reverse_point_sprite_coord_origin"
176 "description": "Limit max texure size to 4096 on Macs with Intel GPUs",
180 "vendor_id": "0x8086",
182 "max_texture_size_limit_4096"
187 "description": "Limit max cube map texure size to 1024 on Macs with Intel GPUs",
191 "vendor_id": "0x8086",
193 "max_cube_map_texture_size_limit_1024"
198 "description": "Limit max cube map texure size to 512 on older Macs with Intel GPUs",
206 "vendor_id": "0x8086",
208 "max_cube_map_texture_size_limit_512"
213 "description": "Limit max texure size and cube map texture size to 4096 on Macs with AMD GPUs",
217 "vendor_id": "0x1002",
219 "max_texture_size_limit_4096",
220 "max_cube_map_texture_size_limit_4096"
225 "description": "EXT_occlusion_query appears to be buggy with Intel GPUs on Linux",
229 "vendor_id": "0x8086",
231 "disable_ext_occlusion_query"
236 "description": "Some drivers are unable to reset the D3D device in the GPU process sandbox",
241 "exit_on_context_lost"
246 "description": "Disable depth textures on Android with Qualcomm GPUs",
250 "gl_vendor": "Qualcomm.*",
252 "disable_depth_texture"
257 "description": "Disable EXT_draw_buffers on GeForce GT 650M on Mac OS X due to driver bugs",
261 "vendor_id": "0x10de",
262 "device_id": ["0x0fd5"],
263 "multi_gpu_category": "any",
265 "disable_ext_draw_buffers"
270 "description": "Vivante GPUs are buggy with context switching",
271 "cr_bugs": [179250, 235935],
275 "gl_extensions": ".*GL_VIV_shader_binary.*",
277 "unbind_fbo_on_context_switch"
282 "description": "Imagination drivers are buggy with context switching",
287 "gl_vendor": "Imagination.*",
289 "unbind_fbo_on_context_switch"
295 "description": "Disable OES_standard_derivative on Intel Pineview M Gallium drivers",
299 "vendor_id": "0x8086",
300 "device_id": ["0xa011", "0xa012"],
302 "disable_oes_standard_derivatives"
308 "description": "Mali-400 drivers throw an error when a buffer object's size is set to 0",
312 "gl_vendor": "ARM.*",
313 "gl_renderer": ".*Mali-400.*",
315 "use_non_zero_size_for_client_side_stream_buffers"
321 "description": "PBO + Readpixels don't work on OS X 10.7",
330 "disable_async_readpixels"
335 "description": "Disable use of Direct3D 11 on Windows Vista and lower",
350 "description": "Async Readpixels with GL_BGRA format is broken on Haswell chipset on Macs",
354 "vendor_id": "0x8086",
355 "device_id": ["0x0402", "0x0406", "0x040a", "0x0412", "0x0416", "0x041a",
356 "0x0a04", "0x0a16", "0x0a22", "0x0a26", "0x0a2a"],
358 "swizzle_rgba_for_async_readpixels"
364 "description": "Multisampling is buggy on OSX when multiple monitors are connected",
369 "disable_multimonitor_multisampling"
374 "cr_bugs": [154715, 10068, 269829, 294779, 285292],
375 "description": "The Mali-Txxx driver does not guarantee flush ordering",
376 "gl_vendor": "ARM.*",
377 "gl_renderer": "Mali-T.*",
379 "use_virtualized_gl_contexts"
385 "description": "Share groups are not working on (older?) Broadcom drivers",
389 "gl_vendor": "Broadcom.*",
391 "use_virtualized_gl_contexts"
396 "description": "Share group-related crashes and poor context switching perf on Galaxy Nexus",
400 "gl_vendor": "Imagination.*",
402 "use_virtualized_gl_contexts"
407 "cr_bugs": [179250, 229643, 230896],
408 "description": "Share groups are not working on (older?) Vivante drivers",
412 "gl_extensions": ".*GL_VIV_shader_binary.*",
414 "use_virtualized_gl_contexts"
420 "description": "Share-group related crashes on older NVIDIA drivers",
428 "gl_vendor": "NVIDIA.*",
430 "use_virtualized_gl_contexts"
435 "cr_bugs": [163464, 233612],
436 "description": "Share-group related crashes on Qualcomm drivers",
444 "gl_vendor": "Qualcomm.*",
446 "use_virtualized_gl_contexts"
452 "description": "Program link fails in NVIDIA Linux if gl_Position is not set",
456 "vendor_id": "0x10de",
458 "init_gl_position_in_vertex_shader"
464 "description": "Non-virtual contexts on Qualcomm sometimes cause out-of-order frames",
468 "gl_vendor": "Qualcomm.*",
470 "use_virtualized_gl_contexts"
476 "description": "Multisampled renderbuffer allocation must be validated on some Macs",
481 "validate_multisample_buffer_allocation"
487 "description": "Framebuffer discarding causes flickering on old ARM drivers",
495 "gl_vendor": "ARM.*",
497 "disable_ext_discard_framebuffer"
503 "description": "Framebuffer discarding causes flickering on older IMG drivers",
507 "gl_vendor": "Imagination.*",
508 "gl_renderer": "PowerVR SGX 540",
510 "disable_ext_discard_framebuffer"
516 "description": "Framebuffer discarding doesn't accept trivial attachments on Vivante",
520 "gl_extensions": ".*GL_VIV_shader_binary.*",
522 "disable_ext_discard_framebuffer"
528 "description": "Framebuffer discarding causes jumpy scrolling on Mali drivers",
533 "disable_ext_discard_framebuffer"
539 "description": "Unfold short circuit on Mac OS X",
544 "unfold_short_circuit_as_ternary_operation"
549 "description": "Force to use discrete GPU on older MacBookPro models",
558 "machine_model_name": ["MacBookPro"],
559 "machine_model_version": {
574 "description": "The first draw operation from an idle state is slow",
578 "gl_vendor": "Qualcomm.*",
580 "wake_up_gpu_before_drawing"
585 "description": "TexSubImage2D() is faster for full uploads on ANGLE",
589 "gl_renderer": "ANGLE.*",
591 "texsubimage2d_faster_than_teximage2d"
596 "description": "ES3 MSAA is broken on Qualcomm",
600 "gl_vendor": "Qualcomm.*",
602 "disable_multisampling"
607 "cr_bugs": [124764, 349137],
608 "description": "Clear uniforms before first program use on all platforms",
621 "clear_uniforms_before_first_program_use"
627 "description": "Mesa drivers in Linux handle varyings without static use incorrectly",
631 "driver_vendor": "Mesa",
633 "count_all_in_varyings_packing"
639 "description": "Mesa drivers in ChromeOS handle varyings without static use incorrectly",
643 "driver_vendor": "Mesa",
645 "count_all_in_varyings_packing"
651 "description": "Mac drivers handle varyings without static use incorrectly",
656 "init_varyings_without_static_use"
661 "description": "Multisampling is buggy in ATI cards on older Mac OS X",
662 "cr_bugs": [67752, 83153],
670 "vendor_id": "0x1002",
672 "disable_multisampling"
677 "description": "Multisampling is buggy in Intel IvyBridge",
682 "vendor_id": "0x8086",
683 "device_id": ["0x0152", "0x0156", "0x015a", "0x0162", "0x0166"],
685 "disable_multisampling"
690 "description": "Multisampling is buggy on Mac OS X prior to 10.8.3",
691 "cr_bugs": [137303, 162466],
700 "disable_multisampling"
705 "description": "Shaders with sampler arrays indexing for-loop indices cause the GLSL compiler to crash on OS X",
706 "cr_bugs": [348198, 349137],
715 "unroll_for_loop_with_sampler_array_index"
720 "description": "Linux AMD drivers incorrectly return initial value of 1 for TEXTURE_MAX_ANISOTROPY",
725 "vendor_id": "0x1002",
727 "init_texture_max_anisotropy"
732 "description": "Linux NVIDIA drivers don't have the correct defaults for vertex attributes",
737 "vendor_id": "0x10de",
739 "init_vertex_attributes"
744 "description": "Force glFinish() after compositing on older OS X on Intel GPU",
753 "vendor_id": "0x8086",
754 "multi_gpu_category": "active",
756 "force_gl_finish_after_compositing"
761 "description": "Disable partial swaps on linux drivers",
766 "driver_vendor": "Mesa",
768 "disable_post_sub_buffers_for_onscreen_surfaces"
773 "description": "Some shaders in Skia need more than the min available vertex and fragment shader uniform vectors in case of OSMesa",
775 "driver_vendor": "osmesa",
777 "max_fragment_uniform_vectors_32",
778 "max_varying_vectors_16",
779 "max_vertex_uniform_vectors_256"
784 "description": "Disable D3D11 on older nVidia drivers",
789 "vendor_id": "0x10de",
792 "value": "8.17.12.6973"
800 "description": "Vivante's support of OES_standard_derivatives is buggy",
805 "gl_extensions": ".*GL_VIV_shader_binary.*",
807 "disable_oes_standard_derivatives"
812 "description": "Use virtual contexts on NVIDIA with GLES 3.1",
822 "gl_vendor": "NVIDIA.*",
824 "use_virtualized_gl_contexts"
827 ) // LONG_STRING_CONST macro
828 // Avoid C2026 (string too big) error on VisualStudio.
832 "cr_bugs": [278606, 382686],
833 "description": "Testing EGL sync fences was broken on most Qualcomm drivers",
841 "gl_vendor": "Qualcomm.*",
843 "disable_egl_khr_fence_sync"
848 "description": "Mali-400 support of EXT_multisampled_render_to_texture is buggy on Android < 4.3",
857 "gl_vendor": "ARM.*",
858 "gl_renderer": ".*Mali-400.*",
860 "disable_multisampling"
866 "description": "Testing EGL sync fences was broken on IMG",
874 "gl_vendor": "Imagination Technologies.*",
876 "disable_egl_khr_fence_sync"
881 "cr_bugs": [378691, 373360, 371530, 398964],
882 "description": "Testing fences was broken on Mali ES2 drivers",
890 "gl_vendor": "ARM.*",
891 "gl_renderer": "Mali.*",
898 "disable_egl_khr_fence_sync"
903 "cr_bugs": [378691, 373360, 371530],
904 "description": "Testing fences was broken on Broadcom drivers",
912 "gl_vendor": "Broadcom.*",
914 "disable_egl_khr_fence_sync"
920 "description": "Testing ARB sync fences is broken on MacOSX",
930 "description": "PBO mappings segfault on certain older Qualcomm drivers",
939 "gl_vendor": "Qualcomm.*",
941 "disable_async_readpixels"
946 "description": "Disable use of Direct3D 11 on Matrox video cards",
951 "vendor_id": "0x102b",
958 "description": "Disable use of Direct3D 11 on older AMD drivers",
963 "vendor_id": "0x1002",
974 "description": "Always rewrite vec/mat constructors to be consistent",
977 "scalarize_vec_and_mat_constructor_args"
982 "description": "Mac drivers handle struct scopes incorrectly",
988 "regenerate_struct_names"
993 "description": "Linux AMD drivers handle struct scopes incorrectly",
998 "vendor_id": "0x1002",
1000 "regenerate_struct_names"
1005 "cr_bugs": [150500, 414816],
1006 "description": "ETC1 non-power-of-two sized textures crash older IMG drivers",
1010 "gl_vendor": "Imagination.*",
1011 "gl_renderer": "PowerVR SGX 5.*",
1013 "etc1_power_of_two_only"
1018 "description": "Old Intel drivers cannot reliably support D3D11",
1019 "cr_bugs": [363721],
1023 "vendor_id": "0x8086",
1034 "description": "The GL implementation on the Android emulator has problems with PBOs.",
1035 "cr_bugs": [340882],
1039 "gl_vendor": "VMware.*",
1040 "gl_renderer": "Gallium.*",
1047 "disable_async_readpixels"
1052 "description": "Disable EGL_KHR_wait_sync on NVIDIA with GLES 3.1",
1053 "cr_bugs": [433057],
1061 "gl_vendor": "NVIDIA.*",
1068 "disable_egl_khr_wait_sync"
1074 ); // LONG_STRING_CONST macro