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"
54 "description": "glGenerateMipmap leaks vram without setting texture filters on some Mac drivers",
55 "webkit_bugs": [48489],
65 "set_texture_filter_before_generating_mipmap"
70 "description": "glReadPixels incorrectly sets alpha to 0 on some drivers from a drawing buffer without alpha channel",
71 "webkit_bugs": [33416],
81 "clear_alpha_in_readpixels"
86 "description": "Always call glUseProgram after a successful link to avoid a driver bug",
88 "vendor_id": "0x10de",
101 "use_current_program_after_successful_link"
106 "description": "Restore scissor on FBO change with Qualcomm GPUs on older versions of Android",
107 "cr_bugs": [165493, 222018],
120 "restore_scissor_on_fbo_change"
126 "description": "Work around a bug in offscreen buffers on NVIDIA GPUs on Macs",
130 "vendor_id": "0x10de",
132 "needs_offscreen_buffer_workaround"
137 "description": "A few built-in glsl functions on Mac behave incorrectly",
146 "vendor_id": "0x1002",
148 "needs_glsl_built_in_function_emulation"
153 "description": "AMD drivers get gl_PointCoord backward on OS X 10.8 or earlier",
162 "vendor_id": "0x1002",
164 "reverse_point_sprite_coord_origin"
169 "description": "Intel drivers get gl_PointCoord backward on OS X 10.8 or earlier",
178 "vendor_id": "0x8086",
180 "reverse_point_sprite_coord_origin"
185 "description": "Limit max texure size to 4096 on Macs with Intel GPUs",
189 "vendor_id": "0x8086",
191 "max_texture_size_limit_4096"
196 "description": "Limit max cube map texure size to 1024 on Macs with Intel GPUs",
200 "vendor_id": "0x8086",
202 "max_cube_map_texture_size_limit_1024"
207 "description": "Limit max cube map texure size to 512 on older Macs with Intel GPUs",
215 "vendor_id": "0x8086",
217 "max_cube_map_texture_size_limit_512"
222 "description": "Limit max texure size and cube map texture size to 4096 on Macs with AMD GPUs",
226 "vendor_id": "0x1002",
228 "max_texture_size_limit_4096",
229 "max_cube_map_texture_size_limit_4096"
234 "description": "EXT_occlusion_query appears to be buggy with Intel GPUs on Linux",
238 "vendor_id": "0x8086",
240 "disable_ext_occlusion_query"
245 "description": "Some drivers are unable to reset the D3D device in the GPU process sandbox",
250 "exit_on_context_lost"
255 "description": "Everything except async + NPOT + multiple-of-8 textures are brutally slow for Imagination drivers",
261 "value": "Imagination"
264 "enable_chromium_fast_npot_mo8_textures"
269 "description": "Disable depth textures on Android with Qualcomm GPUs",
278 "disable_depth_texture"
283 "description": "Disable EXT_draw_buffers on GeForce GT 650M on Mac OS X due to driver bugs",
287 "vendor_id": "0x10de",
288 "device_id": ["0x0fd5"],
289 "multi_gpu_category": "any",
291 "disable_ext_draw_buffers"
296 "description": "Vivante GPUs are buggy with context switching",
297 "cr_bugs": [179250, 235935],
303 "value": "GL_VIV_shader_binary"
306 "unbind_fbo_on_context_switch"
311 "description": "Imagination drivers are buggy with context switching",
318 "value": "Imagination"
321 "unbind_fbo_on_context_switch"
327 "description": "Disable OES_standard_derivative on Intel Pineview M Gallium drivers",
331 "vendor_id": "0x8086",
332 "device_id": ["0xa011", "0xa012"],
334 "disable_oes_standard_derivatives"
340 "description": "Mali-400 drivers throw an error when a buffer object's size is set to 0",
353 "use_non_zero_size_for_client_side_stream_buffers"
359 "description": "PBO + Readpixels don't work on OS X 10.7",
368 "disable_async_readpixels"
373 "description": "Disable use of Direct3D 11 on Windows Vista and lower",
388 "description": "Async Readpixels with GL_BGRA format is broken on Haswell chipset on Macs",
392 "vendor_id": "0x8086",
393 "device_id": ["0x0402", "0x0406", "0x040a", "0x0412", "0x0416", "0x041a",
394 "0x0a04", "0x0a16", "0x0a22", "0x0a26", "0x0a2a"],
396 "swizzle_rgba_for_async_readpixels"
402 "description": "Multisampling is buggy on OSX when multiple monitors are connected",
407 "disable_multimonitor_multisampling"
412 "cr_bugs": [154715, 10068, 269829, 294779, 285292],
413 "description": "The Mali-Txxx driver does not guarantee flush ordering",
423 "use_virtualized_gl_contexts"
429 "description": "Share groups are not working on (older?) Broadcom drivers",
438 "use_virtualized_gl_contexts"
443 "description": "Share group-related crashes and poor context switching perf on Galaxy Nexus",
449 "value": "Imagination"
452 "use_virtualized_gl_contexts"
457 "cr_bugs": [179250, 229643, 230896],
458 "description": "Share groups are not working on (older?) Vivante drivers",
464 "value": "GL_VIV_shader_binary"
467 "use_virtualized_gl_contexts"
473 "description": "Share-group related crashes on older NVIDIA drivers",
486 "use_virtualized_gl_contexts"
491 "cr_bugs": [163464, 233612],
492 "description": "Share-group related crashes on Qualcomm drivers",
505 "use_virtualized_gl_contexts"
511 "description": "Program link fails in NVIDIA Linux if gl_Position is not set",
515 "vendor_id": "0x10de",
517 "init_gl_position_in_vertex_shader"
523 "description": "Non-virtual contexts on Qualcomm sometimes cause out-of-order frames",
532 "use_virtualized_gl_contexts"
538 "description": "Multisampled renderbuffer allocation must be validated on some Macs",
543 "validate_multisample_buffer_allocation"
549 "description": "Framebuffer discarding causes flickering on old ARM drivers",
562 "disable_ext_discard_framebuffer"
568 "description": "Framebuffer discarding causes flickering on older IMG drivers",
574 "value": "Imagination"
578 "value": "PowerVR SGX 540"
581 "disable_ext_discard_framebuffer"
587 "description": "Framebuffer discarding doesn't accept trivial attachments on Vivante",
593 "value": "GL_VIV_shader_binary"
596 "disable_ext_discard_framebuffer"
602 "description": "Framebuffer discarding causes jumpy scrolling on Mali drivers",
607 "disable_ext_discard_framebuffer"
613 "description": "Unfold short circuit on Mac OS X",
618 "unfold_short_circuit_as_ternary_operation"
623 "description": "Force to use discrete GPU on older MacBookPro models",
632 "machine_model_name": ["MacBookPro"],
633 "machine_model_version": {
648 "description": "The first draw operation from an idle state is slow",
657 "wake_up_gpu_before_drawing"
662 "description": "NVIDIA driver requires unbinding a GpuMemoryBuffer from the texture before mapping it to main memory",
671 "release_image_after_use"
676 "description": "TexSubImage2D() is faster for full uploads on ANGLE",
685 "texsubimage2d_faster_than_teximage2d"
690 "description": "ES3 MSAA is broken on Qualcomm",
699 "disable_multisampling"
704 "cr_bugs": [124764, 349137],
705 "description": "Clear uniforms before first program use on all platforms",
718 "clear_uniforms_before_first_program_use"
724 "description": "Mesa drivers in Linux handle varyings without static use incorrectly",
733 "count_all_in_varyings_packing"
739 "description": "Mesa drivers in ChromeOS handle varyings without static use incorrectly",
748 "count_all_in_varyings_packing"
754 "description": "Mac drivers handle varyings without static use incorrectly",
759 "init_varyings_without_static_use"
764 "description": "Multisampling is buggy in ATI cards on older Mac OS X",
765 "cr_bugs": [67752, 83153],
773 "vendor_id": "0x1002",
775 "disable_multisampling"
780 "description": "Multisampling is buggy in Intel IvyBridge",
785 "vendor_id": "0x8086",
786 "device_id": ["0x0152", "0x0156", "0x015a", "0x0162", "0x0166"],
788 "disable_multisampling"
793 "description": "Multisampling is buggy on Mac OS X prior to 10.8.3",
794 "cr_bugs": [137303, 162466],
803 "disable_multisampling"
808 "description": "Shaders with sampler arrays indexing for-loop indices cause the GLSL compiler to crash on OS X",
809 "cr_bugs": [348198, 349137],
818 "unroll_for_loop_with_sampler_array_index"
823 "description": "Linux AMD drivers incorrectly return initial value of 1 for TEXTURE_MAX_ANISOTROPY",
828 "vendor_id": "0x1002",
830 "init_texture_max_anisotropy"
835 "description": "Linux NVIDIA drivers don't have the correct defaults for vertex attributes",
840 "vendor_id": "0x10de",
842 "init_vertex_attributes"
847 "description": "Force glFinish() after compositing on older OS X on Intel GPU",
856 "vendor_id": "0x8086",
857 "multi_gpu_category": "active",
859 "force_gl_finish_after_compositing"
864 "description": "Disable partial swaps on linux drivers",
870 "disable_post_sub_buffers_for_onscreen_surfaces"
875 "description": "Some shaders in Skia need more than the min available vertex and fragment shader uniform vectors in case of OSMesa",
882 "max_fragment_uniform_vectors_32",
883 "max_varying_vectors_16",
884 "max_vertex_uniform_vectors_256"
889 "description": "Disable D3D11 on older nVidia drivers",
894 "vendor_id": "0x10de",
897 "value": "8.17.12.6973"
905 "description": "Vivante's support of OES_standard_derivatives is buggy",
912 "value": "GL_VIV_shader_binary"
915 "disable_oes_standard_derivatives"
920 "description": "Use virtual contexts on NVIDIA with GLES 3.1",
935 "use_virtualized_gl_contexts"
940 "description": "Using D3D11 causes browser crashes on certain Intel GPUs",
945 "vendor_id": "0x8086",
950 ) // LONG_STRING_CONST macro
951 // Avoid C2026 (string too big) error on VisualStudio.
955 "cr_bugs": [278606, 382686],
956 "description": "Testing EGL sync fences was broken on most Qualcomm drivers",
969 "disable_egl_khr_fence_sync"
974 "description": "Mali-400 support of EXT_multisampled_render_to_texture is buggy on Android < 4.3",
992 "disable_multisampling"
998 "description": "Testing EGL sync fences was broken on IMG",
1008 "value": "Imagination Technologies"
1011 "disable_egl_khr_fence_sync"
1016 "cr_bugs": [378691, 373360, 371530],
1017 "description": "Testing fences was broken on Mali-400 MP drivers",
1031 "value": "Mali-400 MP"
1034 "disable_egl_khr_fence_sync"
1039 "cr_bugs": [378691, 373360, 371530],
1040 "description": "Testing fences was broken on Broadcom drivers",
1053 "disable_egl_khr_fence_sync"
1058 "cr_bugs": [371530],
1059 "description": "Testing ARB sync fences is broken on MacOSX",
1070 ); // LONG_STRING_CONST macro