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 Intel GPUs on OS X 10.7",
367 "vendor_id": "0x8086",
369 "disable_async_readpixels"
374 "description": "Disable use of Direct3D 11 on Windows Vista and lower",
389 "description": "Async Readpixels with GL_BGRA format is broken on Haswell chipset on Macs",
393 "vendor_id": "0x8086",
394 "device_id": ["0x0402", "0x0406", "0x040a", "0x0412", "0x0416", "0x041a",
395 "0x0a04", "0x0a16", "0x0a22", "0x0a26", "0x0a2a"],
397 "swizzle_rgba_for_async_readpixels"
403 "description": "Testing fences is broken on Qualcomm.",
412 "disable_async_readpixels"
418 "description": "Multisampling is buggy on OSX when multiple monitors are connected",
423 "disable_multimonitor_multisampling"
428 "cr_bugs": [154715, 10068, 269829, 294779, 285292],
429 "description": "The Mali-Txxx driver does not guarantee flush ordering",
439 "use_virtualized_gl_contexts"
445 "description": "Share groups are not working on (older?) Broadcom drivers",
454 "use_virtualized_gl_contexts"
459 "description": "Share group-related crashes and poor context switching perf on Galaxy Nexus",
465 "value": "Imagination"
468 "use_virtualized_gl_contexts"
473 "cr_bugs": [179250, 229643, 230896],
474 "description": "Share groups are not working on (older?) Vivante drivers",
480 "value": "GL_VIV_shader_binary"
483 "use_virtualized_gl_contexts"
489 "description": "Share-group related crashes on older NVIDIA drivers",
502 "use_virtualized_gl_contexts"
507 "cr_bugs": [163464, 233612],
508 "description": "Share-group related crashes on Qualcomm drivers",
521 "use_virtualized_gl_contexts"
527 "description": "Program link fails in NVIDIA Linux if gl_Position is not set",
531 "vendor_id": "0x10de",
533 "init_gl_position_in_vertex_shader"
539 "description": "Non-virtual contexts on Qualcomm sometimes cause out-of-order frames",
548 "use_virtualized_gl_contexts"
554 "description": "Multisampled renderbuffer allocation must be validated on some Macs",
559 "validate_multisample_buffer_allocation"
565 "description": "Framebuffer discarding causes flickering on old ARM drivers",
578 "disable_ext_discard_framebuffer"
584 "description": "Framebuffer discarding causes flickering on older IMG drivers",
590 "value": "Imagination"
594 "value": "PowerVR SGX 540"
597 "disable_ext_discard_framebuffer"
603 "description": "Framebuffer discarding doesn't accept trivial attachments on Vivante",
609 "value": "GL_VIV_shader_binary"
612 "disable_ext_discard_framebuffer"
618 "description": "Framebuffer discarding causes jumpy scrolling on Mali drivers",
623 "disable_ext_discard_framebuffer"
629 "description": "Unfold short circuit on Mac OS X",
634 "unfold_short_circuit_as_ternary_operation"
639 "description": "Using D3D11 causes browser crashes on certain Intel GPUs",
644 "vendor_id": "0x8086",
651 "description": "Force to use discrete GPU on older MacBookPro models",
663 "value": "MacBookPro"
681 "description": "The first draw operation from an idle state is slow",
690 "wake_up_gpu_before_drawing"
695 "description": "NVIDIA driver requires unbinding a GpuMemoryBuffer from the texture before mapping it to main memory",
704 "release_image_after_use"
709 "description": "TexSubImage2D() is faster for full uploads on ANGLE",
718 "texsubimage2d_faster_than_teximage2d"
723 "description": "ES3 MSAA is broken on Qualcomm",
732 "disable_multisampling"
737 "cr_bugs": [124764, 349137],
738 "description": "Clear uniforms before first program use on all platforms",
751 "clear_uniforms_before_first_program_use"
757 "description": "Mesa drivers in Linux handle varyings without static use incorrectly",
766 "count_all_in_varyings_packing"
772 "description": "Mesa drivers in ChromeOS handle varyings without static use incorrectly",
781 "count_all_in_varyings_packing"
787 "description": "Mac drivers handle varyings without static use incorrectly",
792 "init_varyings_without_static_use"
797 "description": "Multisampling is buggy in ATI cards on older Mac OS X",
798 "cr_bugs": [67752, 83153],
806 "vendor_id": "0x1002",
808 "disable_multisampling"
813 "description": "Multisampling is buggy in Intel IvyBridge",
818 "vendor_id": "0x8086",
819 "device_id": ["0x0152", "0x0156", "0x015a", "0x0162", "0x0166"],
821 "disable_multisampling"
826 "description": "Multisampling is buggy on Mac OS X prior to 10.8.3",
827 "cr_bugs": [137303, 162466],
836 "disable_multisampling"
841 "description": "Shaders with sampler arrays indexing for-loop indices cause the GLSL compiler to crash on OS X",
842 "cr_bugs": [348198, 349137],
851 "unroll_for_loop_with_sampler_array_index"
856 "description": "Linux AMD drivers incorrectly return initial value of 1 for TEXTURE_MAX_ANISOTROPY",
861 "vendor_id": "0x1002",
863 "init_texture_max_anisotropy"
868 "description": "Linux NVIDIA drivers don't have the correct defaults for vertex attributes",
873 "vendor_id": "0x10de",
875 "init_vertex_attributes"
880 "description": "Force glFinish() after compositing on older OS X",
889 "vendor_id": "0x8086",
890 "multi_gpu_category": "any",
892 "force_gl_finish_after_compositing"
897 "description": "Force glFinish() after compositing on Mavericks with Retina MacBook Pro",
898 // TODO(ccameron): Get rid of this when we move to CoreAnimation.
907 "multi_gpu_style": "optimus",
909 "force_gl_finish_after_compositing"
914 "description": "Disable partial swaps on linux drivers",
920 "disable_post_sub_buffers_for_onscreen_surfaces"
926 ); // LONG_STRING_CONST macro