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": "NVIDIA driver requires unbinding a GpuMemoryBuffer from the texture before mapping it to main memory",
594 "gl_vendor": "NVIDIA.*",
596 "release_image_after_use"
601 "description": "TexSubImage2D() is faster for full uploads on ANGLE",
605 "gl_renderer": "ANGLE.*",
607 "texsubimage2d_faster_than_teximage2d"
612 "description": "ES3 MSAA is broken on Qualcomm",
616 "gl_vendor": "Qualcomm.*",
618 "disable_multisampling"
623 "cr_bugs": [124764, 349137],
624 "description": "Clear uniforms before first program use on all platforms",
637 "clear_uniforms_before_first_program_use"
643 "description": "Mesa drivers in Linux handle varyings without static use incorrectly",
647 "driver_vendor": "Mesa",
649 "count_all_in_varyings_packing"
655 "description": "Mesa drivers in ChromeOS handle varyings without static use incorrectly",
659 "driver_vendor": "Mesa",
661 "count_all_in_varyings_packing"
667 "description": "Mac drivers handle varyings without static use incorrectly",
672 "init_varyings_without_static_use"
677 "description": "Multisampling is buggy in ATI cards on older Mac OS X",
678 "cr_bugs": [67752, 83153],
686 "vendor_id": "0x1002",
688 "disable_multisampling"
693 "description": "Multisampling is buggy in Intel IvyBridge",
698 "vendor_id": "0x8086",
699 "device_id": ["0x0152", "0x0156", "0x015a", "0x0162", "0x0166"],
701 "disable_multisampling"
706 "description": "Multisampling is buggy on Mac OS X prior to 10.8.3",
707 "cr_bugs": [137303, 162466],
716 "disable_multisampling"
721 "description": "Shaders with sampler arrays indexing for-loop indices cause the GLSL compiler to crash on OS X",
722 "cr_bugs": [348198, 349137],
731 "unroll_for_loop_with_sampler_array_index"
736 "description": "Linux AMD drivers incorrectly return initial value of 1 for TEXTURE_MAX_ANISOTROPY",
741 "vendor_id": "0x1002",
743 "init_texture_max_anisotropy"
748 "description": "Linux NVIDIA drivers don't have the correct defaults for vertex attributes",
753 "vendor_id": "0x10de",
755 "init_vertex_attributes"
760 "description": "Force glFinish() after compositing on older OS X on Intel GPU",
769 "vendor_id": "0x8086",
770 "multi_gpu_category": "active",
772 "force_gl_finish_after_compositing"
777 "description": "Disable partial swaps on linux drivers",
783 "disable_post_sub_buffers_for_onscreen_surfaces"
788 "description": "Some shaders in Skia need more than the min available vertex and fragment shader uniform vectors in case of OSMesa",
790 "driver_vendor": "osmesa",
792 "max_fragment_uniform_vectors_32",
793 "max_varying_vectors_16",
794 "max_vertex_uniform_vectors_256"
799 "description": "Disable D3D11 on older nVidia drivers",
804 "vendor_id": "0x10de",
807 "value": "8.17.12.6973"
815 "description": "Vivante's support of OES_standard_derivatives is buggy",
820 "gl_extensions": ".*GL_VIV_shader_binary.*",
822 "disable_oes_standard_derivatives"
827 "description": "Use virtual contexts on NVIDIA with GLES 3.1",
837 "gl_vendor": "NVIDIA.*",
839 "use_virtualized_gl_contexts"
844 "description": "Using D3D11 causes browser crashes on certain Intel GPUs",
849 "vendor_id": "0x8086",
854 ) // LONG_STRING_CONST macro
855 // Avoid C2026 (string too big) error on VisualStudio.
859 "cr_bugs": [278606, 382686],
860 "description": "Testing EGL sync fences was broken on most Qualcomm drivers",
868 "gl_vendor": "Qualcomm.*",
870 "disable_egl_khr_fence_sync"
875 "description": "Mali-400 support of EXT_multisampled_render_to_texture is buggy on Android < 4.3",
884 "gl_vendor": "ARM.*",
885 "gl_renderer": ".*Mali-400.*",
887 "disable_multisampling"
893 "description": "Testing EGL sync fences was broken on IMG",
901 "gl_vendor": "Imagination Technologies.*",
903 "disable_egl_khr_fence_sync"
908 "cr_bugs": [378691, 373360, 371530, 398964],
909 "description": "Testing fences was broken on Mali ES2 drivers",
917 "gl_vendor": "ARM.*",
918 "gl_renderer": "Mali.*",
925 "disable_egl_khr_fence_sync"
930 "cr_bugs": [378691, 373360, 371530],
931 "description": "Testing fences was broken on Broadcom drivers",
939 "gl_vendor": "Broadcom.*",
941 "disable_egl_khr_fence_sync"
947 "description": "Testing ARB sync fences is broken on MacOSX",
957 "description": "PBO mappings segfault on certain older Qualcomm drivers",
966 "gl_vendor": "Qualcomm.*",
968 "disable_async_readpixels"
973 "description": "Disable use of Direct3D 11 on Matrox video cards",
978 "vendor_id": "0x102b",
985 "description": "Disable use of Direct3D 11 on older AMD drivers",
990 "vendor_id": "0x1002",
1001 "description": "Always rewrite vec/mat constructors to be consistent",
1002 "cr_bugs": [398694],
1004 "scalarize_vec_and_mat_constructor_args"
1009 "description": "Mac drivers handle struct scopes incorrectly",
1010 "cr_bugs": [403957],
1015 "regenerate_struct_names"
1020 "description": "Linux AMD drivers handle struct scopes incorrectly",
1021 "cr_bugs": [403957],
1025 "vendor_id": "0x1002",
1027 "regenerate_struct_names"
1032 "cr_bugs": [150500],
1033 "description": "ETC1 non-power-of-two sized textures crash older IMG drivers",
1037 "gl_vendor": "Imagination.*",
1038 "gl_renderer": "PowerVR SGX 540.*",
1040 "etc1_power_of_two_only"
1046 ); // LONG_STRING_CONST macro