Add strings for the upcoming Settings API UI on the chrome://settings page.
[chromium-blink-merge.git] / gpu / config / gpu_driver_bug_list_json.cc
blob08febf00757f7e2dba44f0677d785458b1607ebe
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__
15 namespace gpu {
17 const char kGpuDriverBugListJson[] = LONG_STRING_CONST(
20 "name": "gpu driver bug list",
21 // Please update the version number whenever you change this file.
22 "version": "4.8",
23 "entries": [
25 "id": 1,
26 "description": "Imagination driver doesn't like uploading lots of buffer data constantly",
27 "os": {
28 "type": "android"
30 "gl_vendor": {
31 "op": "beginwith",
32 "value": "Imagination"
34 "features": [
35 "use_client_side_arrays_for_stream_buffers"
39 "id": 2,
40 "description": "ARM driver doesn't like uploading lots of buffer data constantly",
41 "os": {
42 "type": "android"
44 "gl_vendor": {
45 "op": "beginwith",
46 "value": "ARM"
48 "features": [
49 "use_client_side_arrays_for_stream_buffers"
53 "id": 3,
54 "description": "glGenerateMipmap leaks vram without setting texture filters on some Mac drivers",
55 "webkit_bugs": [48489],
56 "cr_bugs": [349137],
57 "os": {
58 "type": "macosx",
59 "version": {
60 "op": "<",
61 "value": "10.9"
64 "features": [
65 "set_texture_filter_before_generating_mipmap"
69 "id": 4,
70 "description": "glReadPixels incorrectly sets alpha to 0 on some drivers from a drawing buffer without alpha channel",
71 "webkit_bugs": [33416],
72 "cr_bugs": [349137],
73 "os": {
74 "type": "macosx",
75 "version": {
76 "op": "<",
77 "value": "10.9"
80 "features": [
81 "clear_alpha_in_readpixels"
85 "id": 5,
86 "description": "Always call glUseProgram after a successful link to avoid a driver bug",
87 "cr_bugs": [349137],
88 "vendor_id": "0x10de",
89 "exceptions": [
91 "os": {
92 "type": "macosx",
93 "version": {
94 "op": ">=",
95 "value": "10.9"
100 "features": [
101 "use_current_program_after_successful_link"
105 "id": 6,
106 "description": "Restore scissor on FBO change with Qualcomm GPUs on older versions of Android",
107 "cr_bugs": [165493, 222018],
108 "os": {
109 "type": "android",
110 "version": {
111 "op": "<",
112 "value": "4.3"
115 "gl_vendor": {
116 "op": "beginwith",
117 "value": "Qualcomm"
119 "features": [
120 "restore_scissor_on_fbo_change"
124 "id": 7,
125 "cr_bugs": [89557],
126 "description": "Work around a bug in offscreen buffers on NVIDIA GPUs on Macs",
127 "os": {
128 "type": "macosx"
130 "vendor_id": "0x10de",
131 "features": [
132 "needs_offscreen_buffer_workaround"
136 "id": 8,
137 "description": "A few built-in glsl functions on Mac behave incorrectly",
138 "cr_bugs": [349137],
139 "os": {
140 "type": "macosx",
141 "version": {
142 "op": "<",
143 "value": "10.9"
146 "vendor_id": "0x1002",
147 "features": [
148 "needs_glsl_built_in_function_emulation"
152 "id": 9,
153 "description": "AMD drivers get gl_PointCoord backward on OS X 10.8 or earlier",
154 "cr_bugs": [256349],
155 "os": {
156 "type": "macosx",
157 "version": {
158 "op": "<",
159 "value": "10.9"
162 "vendor_id": "0x1002",
163 "features": [
164 "reverse_point_sprite_coord_origin"
168 "id": 10,
169 "description": "Intel drivers get gl_PointCoord backward on OS X 10.8 or earlier",
170 "cr_bugs": [256349],
171 "os": {
172 "type": "macosx",
173 "version": {
174 "op": "<",
175 "value": "10.9"
178 "vendor_id": "0x8086",
179 "features": [
180 "reverse_point_sprite_coord_origin"
184 "id": 11,
185 "description": "Limit max texure size to 4096 on Macs with Intel GPUs",
186 "os": {
187 "type": "macosx"
189 "vendor_id": "0x8086",
190 "features": [
191 "max_texture_size_limit_4096"
195 "id": 12,
196 "description": "Limit max cube map texure size to 1024 on Macs with Intel GPUs",
197 "os": {
198 "type": "macosx"
200 "vendor_id": "0x8086",
201 "features": [
202 "max_cube_map_texture_size_limit_1024"
206 "id": 13,
207 "description": "Limit max cube map texure size to 512 on older Macs with Intel GPUs",
208 "os": {
209 "type": "macosx",
210 "version": {
211 "op": "<",
212 "value": "10.7.3"
215 "vendor_id": "0x8086",
216 "features": [
217 "max_cube_map_texture_size_limit_512"
221 "id": 14,
222 "description": "Limit max texure size and cube map texture size to 4096 on Macs with AMD GPUs",
223 "os": {
224 "type": "macosx"
226 "vendor_id": "0x1002",
227 "features": [
228 "max_texture_size_limit_4096",
229 "max_cube_map_texture_size_limit_4096"
233 "id": 16,
234 "description": "EXT_occlusion_query appears to be buggy with Intel GPUs on Linux",
235 "os": {
236 "type": "linux"
238 "vendor_id": "0x8086",
239 "features": [
240 "disable_ext_occlusion_query"
244 "id": 17,
245 "description": "Some drivers are unable to reset the D3D device in the GPU process sandbox",
246 "os": {
247 "type": "win"
249 "features": [
250 "exit_on_context_lost"
254 "id": 18,
255 "description": "Everything except async + NPOT + multiple-of-8 textures are brutally slow for Imagination drivers",
256 "os": {
257 "type": "android"
259 "gl_vendor": {
260 "op": "beginwith",
261 "value": "Imagination"
263 "features": [
264 "enable_chromium_fast_npot_mo8_textures"
268 "id": 19,
269 "description": "Disable depth textures on Android with Qualcomm GPUs",
270 "os": {
271 "type": "android"
273 "gl_vendor": {
274 "op": "beginwith",
275 "value": "Qualcomm"
277 "features": [
278 "disable_depth_texture"
282 "id": 20,
283 "description": "Disable EXT_draw_buffers on GeForce GT 650M on Mac OS X due to driver bugs",
284 "os": {
285 "type": "macosx"
287 "vendor_id": "0x10de",
288 "device_id": ["0x0fd5"],
289 "multi_gpu_category": "any",
290 "features": [
291 "disable_ext_draw_buffers"
295 "id": 21,
296 "description": "Vivante GPUs are buggy with context switching",
297 "cr_bugs": [179250, 235935],
298 "os": {
299 "type": "android"
301 "gl_extensions": {
302 "op": "contains",
303 "value": "GL_VIV_shader_binary"
305 "features": [
306 "unbind_fbo_on_context_switch"
310 "id": 22,
311 "description": "Imagination drivers are buggy with context switching",
312 "cr_bugs": [230896],
313 "os": {
314 "type": "android"
316 "gl_vendor": {
317 "op": "beginwith",
318 "value": "Imagination"
320 "features": [
321 "unbind_fbo_on_context_switch"
325 "id": 23,
326 "cr_bugs": [243038],
327 "description": "Disable OES_standard_derivative on Intel Pineview M Gallium drivers",
328 "os": {
329 "type": "chromeos"
331 "vendor_id": "0x8086",
332 "device_id": ["0xa011", "0xa012"],
333 "features": [
334 "disable_oes_standard_derivatives"
338 "id": 24,
339 "cr_bugs": [231082],
340 "description": "Mali-400 drivers throw an error when a buffer object's size is set to 0",
341 "os": {
342 "type": "android"
344 "gl_vendor": {
345 "op": "beginwith",
346 "value": "ARM"
348 "gl_renderer": {
349 "op": "contains",
350 "value": "Mali-400"
352 "features": [
353 "use_non_zero_size_for_client_side_stream_buffers"
357 "id": 25,
358 "cr_bugs": [152225],
359 "description": "PBO + Readpixels don't work on Intel GPUs on OS X 10.7",
360 "os": {
361 "type": "macosx",
362 "version": {
363 "op": "<",
364 "value": "10.8"
367 "vendor_id": "0x8086",
368 "features": [
369 "disable_async_readpixels"
373 "id": 26,
374 "description": "Disable use of Direct3D 11 on Windows Vista and lower",
375 "os": {
376 "type": "win",
377 "version": {
378 "op": "<=",
379 "value": "6.0"
382 "features": [
383 "disable_d3d11"
387 "id": 27,
388 "cr_bugs": [265115],
389 "description": "Async Readpixels with GL_BGRA format is broken on Haswell chipset on Macs",
390 "os": {
391 "type": "macosx"
393 "vendor_id": "0x8086",
394 "device_id": ["0x0402", "0x0406", "0x040a", "0x0412", "0x0416", "0x041a",
395 "0x0a04", "0x0a16", "0x0a22", "0x0a26", "0x0a2a"],
396 "features": [
397 "swizzle_rgba_for_async_readpixels"
401 "id": 29,
402 "cr_bugs": [278606],
403 "description": "Testing fences is broken on Qualcomm.",
404 "os": {
405 "type": "android"
407 "gl_vendor": {
408 "op": "beginwith",
409 "value": "Qualcomm"
411 "features": [
412 "disable_async_readpixels"
416 "id": 30,
417 "cr_bugs": [237931],
418 "description": "Multisampling is buggy on OSX when multiple monitors are connected",
419 "os": {
420 "type": "macosx"
422 "features": [
423 "disable_multimonitor_multisampling"
427 "id": 31,
428 "cr_bugs": [154715, 10068, 269829, 294779, 285292],
429 "description": "The Mali-Txxx driver does not guarantee flush ordering",
430 "gl_vendor": {
431 "op": "beginwith",
432 "value": "ARM"
434 "gl_renderer": {
435 "op": "beginwith",
436 "value": "Mali-T"
438 "features": [
439 "use_virtualized_gl_contexts"
443 "id": 32,
444 "cr_bugs": [179815],
445 "description": "Share groups are not working on (older?) Broadcom drivers",
446 "os": {
447 "type": "android"
449 "gl_vendor": {
450 "op": "beginwith",
451 "value": "Broadcom"
453 "features": [
454 "use_virtualized_gl_contexts"
458 "id": 33,
459 "description": "Share group-related crashes and poor context switching perf on Galaxy Nexus",
460 "os": {
461 "type": "android"
463 "gl_vendor": {
464 "op": "beginwith",
465 "value": "Imagination"
467 "features": [
468 "use_virtualized_gl_contexts"
472 "id": 34,
473 "cr_bugs": [179250, 229643, 230896],
474 "description": "Share groups are not working on (older?) Vivante drivers",
475 "os": {
476 "type": "android"
478 "gl_extensions": {
479 "op": "contains",
480 "value": "GL_VIV_shader_binary"
482 "features": [
483 "use_virtualized_gl_contexts"
487 "id": 35,
488 "cr_bugs": [163464],
489 "description": "Share-group related crashes on older NVIDIA drivers",
490 "os": {
491 "type": "android",
492 "version": {
493 "op": "<",
494 "value": "4.3"
497 "gl_vendor": {
498 "op": "beginwith",
499 "value": "NVIDIA"
501 "features": [
502 "use_virtualized_gl_contexts"
506 "id": 36,
507 "cr_bugs": [163464, 233612],
508 "description": "Share-group related crashes on Qualcomm drivers",
509 "os": {
510 "type": "android",
511 "version": {
512 "op": "<",
513 "value": "4.3"
516 "gl_vendor": {
517 "op": "beginwith",
518 "value": "Qualcomm"
520 "features": [
521 "use_virtualized_gl_contexts"
525 "id": 37,
526 "cr_bugs": [286468],
527 "description": "Program link fails in NVIDIA Linux if gl_Position is not set",
528 "os": {
529 "type": "linux"
531 "vendor_id": "0x10de",
532 "features": [
533 "init_gl_position_in_vertex_shader"
537 "id": 38,
538 "cr_bugs": [289461],
539 "description": "Non-virtual contexts on Qualcomm sometimes cause out-of-order frames",
540 "os": {
541 "type": "android"
543 "gl_vendor": {
544 "op": "beginwith",
545 "value": "Qualcomm"
547 "features": [
548 "use_virtualized_gl_contexts"
552 "id": 39,
553 "cr_bugs": [290391],
554 "description": "Multisampled renderbuffer allocation must be validated on some Macs",
555 "os": {
556 "type": "macosx"
558 "features": [
559 "validate_multisample_buffer_allocation"
563 "id": 40,
564 "cr_bugs": [290876],
565 "description": "Framebuffer discarding causes flickering on old ARM drivers",
566 "os": {
567 "type": "android",
568 "version": {
569 "op": "<",
570 "value": "4.4"
573 "gl_vendor": {
574 "op": "beginwith",
575 "value": "ARM"
577 "features": [
578 "disable_ext_discard_framebuffer"
582 "id": 42,
583 "cr_bugs": [290876],
584 "description": "Framebuffer discarding causes flickering on older IMG drivers",
585 "os": {
586 "type": "android"
588 "gl_vendor": {
589 "op": "beginwith",
590 "value": "Imagination"
592 "gl_renderer": {
593 "op": "=",
594 "value": "PowerVR SGX 540"
596 "features": [
597 "disable_ext_discard_framebuffer"
601 "id": 43,
602 "cr_bugs": [299494],
603 "description": "Framebuffer discarding doesn't accept trivial attachments on Vivante",
604 "os": {
605 "type": "android"
607 "gl_extensions": {
608 "op": "contains",
609 "value": "GL_VIV_shader_binary"
611 "features": [
612 "disable_ext_discard_framebuffer"
616 "id": 44,
617 "cr_bugs": [301988],
618 "description": "Framebuffer discarding causes jumpy scrolling on Mali drivers",
619 "os": {
620 "type": "chromeos"
622 "features": [
623 "disable_ext_discard_framebuffer"
627 "id": 45,
628 "cr_bugs": [307751],
629 "description": "Unfold short circuit on Mac OS X",
630 "os": {
631 "type": "macosx"
633 "features": [
634 "unfold_short_circuit_as_ternary_operation"
638 "id": 46,
639 "description": "Using D3D11 causes browser crashes on certain Intel GPUs",
640 "cr_bugs": [310808],
641 "os": {
642 "type": "win"
644 "vendor_id": "0x8086",
645 "features": [
646 "disable_d3d11"
650 "id": 48,
651 "description": "Force to use discrete GPU on older MacBookPro models",
652 "cr_bugs": [113703],
653 "os": {
654 "type": "macosx",
655 "version": {
656 "op": ">=",
657 "value": "10.7"
660 "machine_model": {
661 "name": {
662 "op": "=",
663 "value": "MacBookPro"
665 "version": {
666 "op": "<",
667 "value": "8"
670 "gpu_count": {
671 "op": "=",
672 "value": "2"
674 "features": [
675 "force_discrete_gpu"
679 "id": 49,
680 "cr_bugs": [309734],
681 "description": "The first draw operation from an idle state is slow",
682 "os": {
683 "type": "android"
685 "gl_vendor": {
686 "op": "beginwith",
687 "value": "Qualcomm"
689 "features": [
690 "wake_up_gpu_before_drawing"
694 "id": 50,
695 "description": "NVIDIA driver requires unbinding a GpuMemoryBuffer from the texture before mapping it to main memory",
696 "os": {
697 "type": "android"
699 "gl_vendor": {
700 "op": "beginwith",
701 "value": "NVIDIA"
703 "features": [
704 "release_image_after_use"
708 "id": 51,
709 "description": "TexSubImage2D() is faster for full uploads on ANGLE",
710 "os": {
711 "type": "win"
713 "gl_renderer": {
714 "op": "beginwith",
715 "value": "ANGLE"
717 "features": [
718 "texsubimage2d_faster_than_teximage2d"
722 "id": 52,
723 "description": "ES3 MSAA is broken on Qualcomm",
724 "os": {
725 "type": "android"
727 "gl_vendor": {
728 "op": "beginwith",
729 "value": "Qualcomm"
731 "features": [
732 "disable_multisampling"
736 "id": 54,
737 "cr_bugs": [124764, 349137],
738 "description": "Clear uniforms before first program use on all platforms",
739 "exceptions": [
741 "os": {
742 "type": "macosx",
743 "version": {
744 "op": ">=",
745 "value": "10.9"
750 "features": [
751 "clear_uniforms_before_first_program_use"
755 "id": 55,
756 "cr_bugs": [333885],
757 "description": "Mesa drivers in Linux handle varyings without static use incorrectly",
758 "os": {
759 "type": "linux"
761 "driver_vendor": {
762 "op": "=",
763 "value": "Mesa"
765 "features": [
766 "count_all_in_varyings_packing"
770 "id": 56,
771 "cr_bugs": [333885],
772 "description": "Mesa drivers in ChromeOS handle varyings without static use incorrectly",
773 "os": {
774 "type": "chromeos"
776 "driver_vendor": {
777 "op": "=",
778 "value": "Mesa"
780 "features": [
781 "count_all_in_varyings_packing"
785 "id": 57,
786 "cr_bugs": [322760],
787 "description": "Mac drivers handle varyings without static use incorrectly",
788 "os": {
789 "type": "macosx"
791 "features": [
792 "init_varyings_without_static_use"
796 "id": 58,
797 "description": "Multisampling is buggy in ATI cards on older Mac OS X",
798 "cr_bugs": [67752, 83153],
799 "os": {
800 "type": "macosx",
801 "version": {
802 "op": "<",
803 "value": "10.7.2"
806 "vendor_id": "0x1002",
807 "features": [
808 "disable_multisampling"
812 "id": 59,
813 "description": "Multisampling is buggy in Intel IvyBridge",
814 "cr_bugs": [116370],
815 "os": {
816 "type": "linux"
818 "vendor_id": "0x8086",
819 "device_id": ["0x0152", "0x0156", "0x015a", "0x0162", "0x0166"],
820 "features": [
821 "disable_multisampling"
825 "id": 60,
826 "description": "Multisampling is buggy on Mac OS X prior to 10.8.3",
827 "cr_bugs": [137303, 162466],
828 "os": {
829 "type": "macosx",
830 "version": {
831 "op": "<",
832 "value": "10.8.3"
835 "features": [
836 "disable_multisampling"
840 "id": 63,
841 "description": "Shaders with sampler arrays indexing for-loop indices cause the GLSL compiler to crash on OS X",
842 "cr_bugs": [348198, 349137],
843 "os": {
844 "type": "macosx",
845 "version": {
846 "op": "<",
847 "value": "10.9"
850 "features": [
851 "unroll_for_loop_with_sampler_array_index"
855 "id": 64,
856 "description": "Linux AMD drivers incorrectly return initial value of 1 for TEXTURE_MAX_ANISOTROPY",
857 "cr_bugs": [348237],
858 "os": {
859 "type": "linux"
861 "vendor_id": "0x1002",
862 "features": [
863 "init_texture_max_anisotropy"
867 "id": 65,
868 "description": "Linux NVIDIA drivers don't have the correct defaults for vertex attributes",
869 "cr_bugs": [351528],
870 "os": {
871 "type": "linux"
873 "vendor_id": "0x10de",
874 "features": [
875 "init_vertex_attributes"
879 "id": 66,
880 "description": "Force glFinish() after compositing on older OS X",
881 "cr_bugs": [123409],
882 "os": {
883 "type": "macosx",
884 "version": {
885 "op": "<=",
886 "value": "10.7"
889 "vendor_id": "0x8086",
890 "multi_gpu_category": "any",
891 "features": [
892 "force_gl_finish_after_compositing"
896 "id": 67,
897 "description": "Force glFinish() after compositing on Mavericks with Retina MacBook Pro",
898 // TODO(ccameron): Get rid of this when we move to CoreAnimation.
899 "cr_bugs": [318877],
900 "os": {
901 "type": "macosx",
902 "version": {
903 "op": ">=",
904 "value": "10.9"
907 "multi_gpu_style": "optimus",
908 "features": [
909 "force_gl_finish_after_compositing"
913 "id": 68,
914 "description": "Disable partial swaps on linux drivers",
915 "cr_bugs": [339493],
916 "os": {
917 "type": "linux"
919 "features": [
920 "disable_post_sub_buffers_for_onscreen_surfaces"
926 ); // LONG_STRING_CONST macro
928 } // namespace gpu