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": "Disable depth textures on Android with Qualcomm GPUs",
264 "disable_depth_texture"
269 "description": "Disable EXT_draw_buffers on GeForce GT 650M on Mac OS X due to driver bugs",
273 "vendor_id": "0x10de",
274 "device_id": ["0x0fd5"],
275 "multi_gpu_category": "any",
277 "disable_ext_draw_buffers"
282 "description": "Vivante GPUs are buggy with context switching",
283 "cr_bugs": [179250, 235935],
289 "value": "GL_VIV_shader_binary"
292 "unbind_fbo_on_context_switch"
297 "description": "Imagination drivers are buggy with context switching",
304 "value": "Imagination"
307 "unbind_fbo_on_context_switch"
313 "description": "Disable OES_standard_derivative on Intel Pineview M Gallium drivers",
317 "vendor_id": "0x8086",
318 "device_id": ["0xa011", "0xa012"],
320 "disable_oes_standard_derivatives"
326 "description": "Mali-400 drivers throw an error when a buffer object's size is set to 0",
339 "use_non_zero_size_for_client_side_stream_buffers"
345 "description": "PBO + Readpixels don't work on OS X 10.7",
354 "disable_async_readpixels"
359 "description": "Disable use of Direct3D 11 on Windows Vista and lower",
374 "description": "Async Readpixels with GL_BGRA format is broken on Haswell chipset on Macs",
378 "vendor_id": "0x8086",
379 "device_id": ["0x0402", "0x0406", "0x040a", "0x0412", "0x0416", "0x041a",
380 "0x0a04", "0x0a16", "0x0a22", "0x0a26", "0x0a2a"],
382 "swizzle_rgba_for_async_readpixels"
388 "description": "Multisampling is buggy on OSX when multiple monitors are connected",
393 "disable_multimonitor_multisampling"
398 "cr_bugs": [154715, 10068, 269829, 294779, 285292],
399 "description": "The Mali-Txxx driver does not guarantee flush ordering",
409 "use_virtualized_gl_contexts"
415 "description": "Share groups are not working on (older?) Broadcom drivers",
424 "use_virtualized_gl_contexts"
429 "description": "Share group-related crashes and poor context switching perf on Galaxy Nexus",
435 "value": "Imagination"
438 "use_virtualized_gl_contexts"
443 "cr_bugs": [179250, 229643, 230896],
444 "description": "Share groups are not working on (older?) Vivante drivers",
450 "value": "GL_VIV_shader_binary"
453 "use_virtualized_gl_contexts"
459 "description": "Share-group related crashes on older NVIDIA drivers",
472 "use_virtualized_gl_contexts"
477 "cr_bugs": [163464, 233612],
478 "description": "Share-group related crashes on Qualcomm drivers",
491 "use_virtualized_gl_contexts"
497 "description": "Program link fails in NVIDIA Linux if gl_Position is not set",
501 "vendor_id": "0x10de",
503 "init_gl_position_in_vertex_shader"
509 "description": "Non-virtual contexts on Qualcomm sometimes cause out-of-order frames",
518 "use_virtualized_gl_contexts"
524 "description": "Multisampled renderbuffer allocation must be validated on some Macs",
529 "validate_multisample_buffer_allocation"
535 "description": "Framebuffer discarding causes flickering on old ARM drivers",
548 "disable_ext_discard_framebuffer"
554 "description": "Framebuffer discarding causes flickering on older IMG drivers",
560 "value": "Imagination"
564 "value": "PowerVR SGX 540"
567 "disable_ext_discard_framebuffer"
573 "description": "Framebuffer discarding doesn't accept trivial attachments on Vivante",
579 "value": "GL_VIV_shader_binary"
582 "disable_ext_discard_framebuffer"
588 "description": "Framebuffer discarding causes jumpy scrolling on Mali drivers",
593 "disable_ext_discard_framebuffer"
599 "description": "Unfold short circuit on Mac OS X",
604 "unfold_short_circuit_as_ternary_operation"
609 "description": "Force to use discrete GPU on older MacBookPro models",
618 "machine_model_name": ["MacBookPro"],
619 "machine_model_version": {
634 "description": "The first draw operation from an idle state is slow",
643 "wake_up_gpu_before_drawing"
648 "description": "NVIDIA driver requires unbinding a GpuMemoryBuffer from the texture before mapping it to main memory",
657 "release_image_after_use"
662 "description": "TexSubImage2D() is faster for full uploads on ANGLE",
671 "texsubimage2d_faster_than_teximage2d"
676 "description": "ES3 MSAA is broken on Qualcomm",
685 "disable_multisampling"
690 "cr_bugs": [124764, 349137],
691 "description": "Clear uniforms before first program use on all platforms",
704 "clear_uniforms_before_first_program_use"
710 "description": "Mesa drivers in Linux handle varyings without static use incorrectly",
719 "count_all_in_varyings_packing"
725 "description": "Mesa drivers in ChromeOS handle varyings without static use incorrectly",
734 "count_all_in_varyings_packing"
740 "description": "Mac drivers handle varyings without static use incorrectly",
745 "init_varyings_without_static_use"
750 "description": "Multisampling is buggy in ATI cards on older Mac OS X",
751 "cr_bugs": [67752, 83153],
759 "vendor_id": "0x1002",
761 "disable_multisampling"
766 "description": "Multisampling is buggy in Intel IvyBridge",
771 "vendor_id": "0x8086",
772 "device_id": ["0x0152", "0x0156", "0x015a", "0x0162", "0x0166"],
774 "disable_multisampling"
779 "description": "Multisampling is buggy on Mac OS X prior to 10.8.3",
780 "cr_bugs": [137303, 162466],
789 "disable_multisampling"
794 "description": "Shaders with sampler arrays indexing for-loop indices cause the GLSL compiler to crash on OS X",
795 "cr_bugs": [348198, 349137],
804 "unroll_for_loop_with_sampler_array_index"
809 "description": "Linux AMD drivers incorrectly return initial value of 1 for TEXTURE_MAX_ANISOTROPY",
814 "vendor_id": "0x1002",
816 "init_texture_max_anisotropy"
821 "description": "Linux NVIDIA drivers don't have the correct defaults for vertex attributes",
826 "vendor_id": "0x10de",
828 "init_vertex_attributes"
833 "description": "Force glFinish() after compositing on older OS X on Intel GPU",
842 "vendor_id": "0x8086",
843 "multi_gpu_category": "active",
845 "force_gl_finish_after_compositing"
850 "description": "Disable partial swaps on linux drivers",
856 "disable_post_sub_buffers_for_onscreen_surfaces"
861 "description": "Some shaders in Skia need more than the min available vertex and fragment shader uniform vectors in case of OSMesa",
868 "max_fragment_uniform_vectors_32",
869 "max_varying_vectors_16",
870 "max_vertex_uniform_vectors_256"
875 "description": "Disable D3D11 on older nVidia drivers",
880 "vendor_id": "0x10de",
883 "value": "8.17.12.6973"
891 "description": "Vivante's support of OES_standard_derivatives is buggy",
898 "value": "GL_VIV_shader_binary"
901 "disable_oes_standard_derivatives"
906 "description": "Use virtual contexts on NVIDIA with GLES 3.1",
921 "use_virtualized_gl_contexts"
926 "description": "Using D3D11 causes browser crashes on certain Intel GPUs",
931 "vendor_id": "0x8086",
936 ) // LONG_STRING_CONST macro
937 // Avoid C2026 (string too big) error on VisualStudio.
941 "cr_bugs": [278606, 382686],
942 "description": "Testing EGL sync fences was broken on most Qualcomm drivers",
955 "disable_egl_khr_fence_sync"
960 "description": "Mali-400 support of EXT_multisampled_render_to_texture is buggy on Android < 4.3",
978 "disable_multisampling"
984 "description": "Testing EGL sync fences was broken on IMG",
994 "value": "Imagination Technologies"
997 "disable_egl_khr_fence_sync"
1002 "cr_bugs": [378691, 373360, 371530],
1003 "description": "Testing fences was broken on Mali-400 MP drivers",
1017 "value": "Mali-400 MP"
1020 "disable_egl_khr_fence_sync"
1025 "cr_bugs": [378691, 373360, 371530],
1026 "description": "Testing fences was broken on Broadcom drivers",
1039 "disable_egl_khr_fence_sync"
1044 "cr_bugs": [371530],
1045 "description": "Testing ARB sync fences is broken on MacOSX",
1056 ); // LONG_STRING_CONST macro