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": "Testing fences is broken on Qualcomm.",
411 "disable_async_readpixels"
417 "description": "Multisampling is buggy on OSX when multiple monitors are connected",
422 "disable_multimonitor_multisampling"
427 "cr_bugs": [154715, 10068, 269829, 294779, 285292],
428 "description": "The Mali-Txxx driver does not guarantee flush ordering",
438 "use_virtualized_gl_contexts"
444 "description": "Share groups are not working on (older?) Broadcom drivers",
453 "use_virtualized_gl_contexts"
458 "description": "Share group-related crashes and poor context switching perf on Galaxy Nexus",
464 "value": "Imagination"
467 "use_virtualized_gl_contexts"
472 "cr_bugs": [179250, 229643, 230896],
473 "description": "Share groups are not working on (older?) Vivante drivers",
479 "value": "GL_VIV_shader_binary"
482 "use_virtualized_gl_contexts"
488 "description": "Share-group related crashes on older NVIDIA drivers",
501 "use_virtualized_gl_contexts"
506 "cr_bugs": [163464, 233612],
507 "description": "Share-group related crashes on Qualcomm drivers",
520 "use_virtualized_gl_contexts"
526 "description": "Program link fails in NVIDIA Linux if gl_Position is not set",
530 "vendor_id": "0x10de",
532 "init_gl_position_in_vertex_shader"
538 "description": "Non-virtual contexts on Qualcomm sometimes cause out-of-order frames",
547 "use_virtualized_gl_contexts"
553 "description": "Multisampled renderbuffer allocation must be validated on some Macs",
558 "validate_multisample_buffer_allocation"
564 "description": "Framebuffer discarding causes flickering on old ARM drivers",
577 "disable_ext_discard_framebuffer"
583 "description": "Framebuffer discarding causes flickering on older IMG drivers",
589 "value": "Imagination"
593 "value": "PowerVR SGX 540"
596 "disable_ext_discard_framebuffer"
602 "description": "Framebuffer discarding doesn't accept trivial attachments on Vivante",
608 "value": "GL_VIV_shader_binary"
611 "disable_ext_discard_framebuffer"
617 "description": "Framebuffer discarding causes jumpy scrolling on Mali drivers",
622 "disable_ext_discard_framebuffer"
628 "description": "Unfold short circuit on Mac OS X",
633 "unfold_short_circuit_as_ternary_operation"
638 "description": "Force to use discrete GPU on older MacBookPro models",
647 "machine_model_name": ["MacBookPro"],
648 "machine_model_version": {
663 "description": "The first draw operation from an idle state is slow",
672 "wake_up_gpu_before_drawing"
677 "description": "NVIDIA driver requires unbinding a GpuMemoryBuffer from the texture before mapping it to main memory",
686 "release_image_after_use"
691 "description": "TexSubImage2D() is faster for full uploads on ANGLE",
700 "texsubimage2d_faster_than_teximage2d"
705 "description": "ES3 MSAA is broken on Qualcomm",
714 "disable_multisampling"
719 "cr_bugs": [124764, 349137],
720 "description": "Clear uniforms before first program use on all platforms",
733 "clear_uniforms_before_first_program_use"
739 "description": "Mesa drivers in Linux handle varyings without static use incorrectly",
748 "count_all_in_varyings_packing"
754 "description": "Mesa drivers in ChromeOS handle varyings without static use incorrectly",
763 "count_all_in_varyings_packing"
769 "description": "Mac drivers handle varyings without static use incorrectly",
774 "init_varyings_without_static_use"
779 "description": "Multisampling is buggy in ATI cards on older Mac OS X",
780 "cr_bugs": [67752, 83153],
788 "vendor_id": "0x1002",
790 "disable_multisampling"
795 "description": "Multisampling is buggy in Intel IvyBridge",
800 "vendor_id": "0x8086",
801 "device_id": ["0x0152", "0x0156", "0x015a", "0x0162", "0x0166"],
803 "disable_multisampling"
808 "description": "Multisampling is buggy on Mac OS X prior to 10.8.3",
809 "cr_bugs": [137303, 162466],
818 "disable_multisampling"
823 "description": "Shaders with sampler arrays indexing for-loop indices cause the GLSL compiler to crash on OS X",
824 "cr_bugs": [348198, 349137],
833 "unroll_for_loop_with_sampler_array_index"
838 "description": "Linux AMD drivers incorrectly return initial value of 1 for TEXTURE_MAX_ANISOTROPY",
843 "vendor_id": "0x1002",
845 "init_texture_max_anisotropy"
850 "description": "Linux NVIDIA drivers don't have the correct defaults for vertex attributes",
855 "vendor_id": "0x10de",
857 "init_vertex_attributes"
862 "description": "Force glFinish() after compositing on older OS X on Intel GPU",
871 "vendor_id": "0x8086",
872 "multi_gpu_category": "active",
874 "force_gl_finish_after_compositing"
879 "description": "Force glFinish() after compositing on Mavericks on Intel GPU",
880 // TODO(ccameron): Get rid of this when we move to CoreAnimation.
889 "vendor_id": "0x8086",
890 "multi_gpu_category": "active",
892 "force_gl_finish_after_compositing"
897 "description": "Disable partial swaps on linux drivers",
903 "disable_post_sub_buffers_for_onscreen_surfaces"
908 "description": "Some shaders in Skia need more than the min available vertex and fragment shader uniform vectors in case of OSMesa",
915 "max_fragment_uniform_vectors_32",
916 "max_varying_vectors_16",
917 "max_vertex_uniform_vectors_256"
922 "description": "Disable D3D11 on older nVidia drivers",
927 "vendor_id": "0x10de",
930 "value": "8.17.12.6973"
938 "description": "Vivante's support of OES_standard_derivatives is buggy",
945 "value": "GL_VIV_shader_binary"
948 "disable_oes_standard_derivatives"
953 "description": "Use virtual contexts on NVIDIA with GLES 3.1",
968 "use_virtualized_gl_contexts"
974 ); // LONG_STRING_CONST macro