Rationalize and fix chromium android linker histogram recording.
[chromium-blink-merge.git] / gpu / config / gpu_driver_bug_list_json.cc
blob61d320bb340e75febd35fbfbc84387bb204924b2
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": "7.6",
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": "Imagination.*",
31 "features": [
32 "use_client_side_arrays_for_stream_buffers"
36 "id": 2,
37 "description": "ARM driver doesn't like uploading lots of buffer data constantly",
38 "os": {
39 "type": "android"
41 "gl_vendor": "ARM.*",
42 "features": [
43 "use_client_side_arrays_for_stream_buffers"
47 "id": 3,
48 "description": "glGenerateMipmap leaks vram without setting texture filters on some Mac drivers",
49 "webkit_bugs": [48489],
50 "cr_bugs": [349137],
51 "os": {
52 "type": "macosx",
53 "version": {
54 "op": "<",
55 "value": "10.9"
58 "features": [
59 "set_texture_filter_before_generating_mipmap"
63 "id": 4,
64 "description": "glReadPixels incorrectly sets alpha to 0 on some drivers from a drawing buffer without alpha channel",
65 "webkit_bugs": [33416],
66 "cr_bugs": [349137],
67 "os": {
68 "type": "macosx",
69 "version": {
70 "op": "<",
71 "value": "10.9"
74 "features": [
75 "clear_alpha_in_readpixels"
79 "id": 5,
80 "description": "Always call glUseProgram after a successful link to avoid a driver bug",
81 "cr_bugs": [349137],
82 "vendor_id": "0x10de",
83 "exceptions": [
85 "os": {
86 "type": "macosx",
87 "version": {
88 "op": ">=",
89 "value": "10.9"
94 "features": [
95 "use_current_program_after_successful_link"
99 "id": 6,
100 "description": "Restore scissor on FBO change with Qualcomm GPUs on older versions of Android",
101 "cr_bugs": [165493, 222018],
102 "os": {
103 "type": "android",
104 "version": {
105 "op": "<",
106 "value": "4.3"
109 "gl_vendor": "Qualcomm.*",
110 "features": [
111 "restore_scissor_on_fbo_change"
115 "id": 7,
116 "cr_bugs": [89557],
117 "description": "Work around a bug in offscreen buffers on NVIDIA GPUs on Macs",
118 "os": {
119 "type": "macosx"
121 "vendor_id": "0x10de",
122 "features": [
123 "needs_offscreen_buffer_workaround"
127 "id": 8,
128 "description": "A few built-in glsl functions on Mac behave incorrectly",
129 "cr_bugs": [349137],
130 "os": {
131 "type": "macosx",
132 "version": {
133 "op": "<",
134 "value": "10.9"
137 "vendor_id": "0x1002",
138 "features": [
139 "needs_glsl_built_in_function_emulation"
143 "id": 9,
144 "description": "AMD drivers get gl_PointCoord backward on OS X 10.8 or earlier",
145 "cr_bugs": [256349],
146 "os": {
147 "type": "macosx",
148 "version": {
149 "op": "<",
150 "value": "10.9"
153 "vendor_id": "0x1002",
154 "features": [
155 "reverse_point_sprite_coord_origin"
159 "id": 10,
160 "description": "Intel drivers get gl_PointCoord backward on OS X 10.8 or earlier",
161 "cr_bugs": [256349],
162 "os": {
163 "type": "macosx",
164 "version": {
165 "op": "<",
166 "value": "10.9"
169 "vendor_id": "0x8086",
170 "features": [
171 "reverse_point_sprite_coord_origin"
175 "id": 11,
176 "description": "Limit max texure size to 4096 on Macs with Intel GPUs",
177 "os": {
178 "type": "macosx"
180 "vendor_id": "0x8086",
181 "features": [
182 "max_texture_size_limit_4096"
186 "id": 12,
187 "description": "Limit max cube map texure size to 1024 on Macs with Intel GPUs",
188 "os": {
189 "type": "macosx"
191 "vendor_id": "0x8086",
192 "features": [
193 "max_cube_map_texture_size_limit_1024"
197 "id": 13,
198 "description": "Limit max cube map texure size to 512 on older Macs with Intel GPUs",
199 "os": {
200 "type": "macosx",
201 "version": {
202 "op": "<",
203 "value": "10.7.3"
206 "vendor_id": "0x8086",
207 "features": [
208 "max_cube_map_texture_size_limit_512"
212 "id": 14,
213 "description": "Limit max texure size and cube map texture size to 4096 on Macs with AMD GPUs",
214 "os": {
215 "type": "macosx"
217 "vendor_id": "0x1002",
218 "features": [
219 "max_texture_size_limit_4096",
220 "max_cube_map_texture_size_limit_4096"
224 "id": 16,
225 "description": "EXT_occlusion_query appears to be buggy with Intel GPUs on Linux",
226 "os": {
227 "type": "linux"
229 "vendor_id": "0x8086",
230 "features": [
231 "disable_ext_occlusion_query"
235 "id": 17,
236 "description": "Some drivers are unable to reset the D3D device in the GPU process sandbox",
237 "os": {
238 "type": "win"
240 "features": [
241 "exit_on_context_lost"
245 "id": 19,
246 "description": "Disable depth textures on Android with Qualcomm GPUs",
247 "os": {
248 "type": "android"
250 "gl_vendor": "Qualcomm.*",
251 "features": [
252 "disable_depth_texture"
256 "id": 20,
257 "description": "Disable EXT_draw_buffers on GeForce GT 650M on Mac OS X due to driver bugs",
258 "os": {
259 "type": "macosx"
261 "vendor_id": "0x10de",
262 "device_id": ["0x0fd5"],
263 "multi_gpu_category": "any",
264 "features": [
265 "disable_ext_draw_buffers"
269 "id": 21,
270 "description": "Vivante GPUs are buggy with context switching",
271 "cr_bugs": [179250, 235935],
272 "os": {
273 "type": "android"
275 "gl_extensions": ".*GL_VIV_shader_binary.*",
276 "features": [
277 "unbind_fbo_on_context_switch"
281 "id": 22,
282 "description": "Imagination drivers are buggy with context switching",
283 "cr_bugs": [230896],
284 "os": {
285 "type": "android"
287 "gl_vendor": "Imagination.*",
288 "features": [
289 "unbind_fbo_on_context_switch"
293 "id": 23,
294 "cr_bugs": [243038],
295 "description": "Disable OES_standard_derivative on Intel Pineview M Gallium drivers",
296 "os": {
297 "type": "chromeos"
299 "vendor_id": "0x8086",
300 "device_id": ["0xa011", "0xa012"],
301 "features": [
302 "disable_oes_standard_derivatives"
306 "id": 24,
307 "cr_bugs": [231082],
308 "description": "Mali-400 drivers throw an error when a buffer object's size is set to 0",
309 "os": {
310 "type": "android"
312 "gl_vendor": "ARM.*",
313 "gl_renderer": ".*Mali-400.*",
314 "features": [
315 "use_non_zero_size_for_client_side_stream_buffers"
319 "id": 25,
320 "cr_bugs": [152225],
321 "description": "PBO + Readpixels don't work on OS X 10.7",
322 "os": {
323 "type": "macosx",
324 "version": {
325 "op": "<",
326 "value": "10.8"
329 "features": [
330 "disable_async_readpixels"
334 "id": 26,
335 "description": "Disable use of Direct3D 11 on Windows Vista and lower",
336 "os": {
337 "type": "win",
338 "version": {
339 "op": "<=",
340 "value": "6.0"
343 "features": [
344 "disable_d3d11"
348 "id": 27,
349 "cr_bugs": [265115],
350 "description": "Async Readpixels with GL_BGRA format is broken on Haswell chipset on Macs",
351 "os": {
352 "type": "macosx"
354 "vendor_id": "0x8086",
355 "device_id": ["0x0402", "0x0406", "0x040a", "0x0412", "0x0416", "0x041a",
356 "0x0a04", "0x0a16", "0x0a22", "0x0a26", "0x0a2a"],
357 "features": [
358 "swizzle_rgba_for_async_readpixels"
362 "id": 30,
363 "cr_bugs": [237931],
364 "description": "Multisampling is buggy on OSX when multiple monitors are connected",
365 "os": {
366 "type": "macosx"
368 "features": [
369 "disable_multimonitor_multisampling"
373 "id": 31,
374 "cr_bugs": [154715, 10068, 269829, 294779, 285292],
375 "description": "The Mali-Txxx driver does not guarantee flush ordering",
376 "gl_vendor": "ARM.*",
377 "gl_renderer": "Mali-T.*",
378 "features": [
379 "use_virtualized_gl_contexts"
383 "id": 32,
384 "cr_bugs": [179815],
385 "description": "Share groups are not working on (older?) Broadcom drivers",
386 "os": {
387 "type": "android"
389 "gl_vendor": "Broadcom.*",
390 "features": [
391 "use_virtualized_gl_contexts"
395 "id": 33,
396 "description": "Share group-related crashes and poor context switching perf on Galaxy Nexus",
397 "os": {
398 "type": "android"
400 "gl_vendor": "Imagination.*",
401 "features": [
402 "use_virtualized_gl_contexts"
406 "id": 34,
407 "cr_bugs": [179250, 229643, 230896],
408 "description": "Share groups are not working on (older?) Vivante drivers",
409 "os": {
410 "type": "android"
412 "gl_extensions": ".*GL_VIV_shader_binary.*",
413 "features": [
414 "use_virtualized_gl_contexts"
418 "id": 35,
419 "cr_bugs": [163464],
420 "description": "Share-group related crashes on older NVIDIA drivers",
421 "os": {
422 "type": "android",
423 "version": {
424 "op": "<",
425 "value": "4.3"
428 "gl_vendor": "NVIDIA.*",
429 "features": [
430 "use_virtualized_gl_contexts"
434 "id": 36,
435 "cr_bugs": [163464, 233612],
436 "description": "Share-group related crashes on Qualcomm drivers",
437 "os": {
438 "type": "android",
439 "version": {
440 "op": "<",
441 "value": "4.3"
444 "gl_vendor": "Qualcomm.*",
445 "features": [
446 "use_virtualized_gl_contexts"
450 "id": 37,
451 "cr_bugs": [286468],
452 "description": "Program link fails in NVIDIA Linux if gl_Position is not set",
453 "os": {
454 "type": "linux"
456 "vendor_id": "0x10de",
457 "features": [
458 "init_gl_position_in_vertex_shader"
462 "id": 38,
463 "cr_bugs": [289461],
464 "description": "Non-virtual contexts on Qualcomm sometimes cause out-of-order frames",
465 "os": {
466 "type": "android"
468 "gl_vendor": "Qualcomm.*",
469 "features": [
470 "use_virtualized_gl_contexts"
474 "id": 39,
475 "cr_bugs": [290391],
476 "description": "Multisampled renderbuffer allocation must be validated on some Macs",
477 "os": {
478 "type": "macosx"
480 "features": [
481 "validate_multisample_buffer_allocation"
485 "id": 40,
486 "cr_bugs": [290876],
487 "description": "Framebuffer discarding causes flickering on old ARM drivers",
488 "os": {
489 "type": "android",
490 "version": {
491 "op": "<",
492 "value": "4.4"
495 "gl_vendor": "ARM.*",
496 "features": [
497 "disable_ext_discard_framebuffer"
501 "id": 42,
502 "cr_bugs": [290876],
503 "description": "Framebuffer discarding causes flickering on older IMG drivers",
504 "os": {
505 "type": "android"
507 "gl_vendor": "Imagination.*",
508 "gl_renderer": "PowerVR SGX 540",
509 "features": [
510 "disable_ext_discard_framebuffer"
514 "id": 43,
515 "cr_bugs": [299494],
516 "description": "Framebuffer discarding doesn't accept trivial attachments on Vivante",
517 "os": {
518 "type": "android"
520 "gl_extensions": ".*GL_VIV_shader_binary.*",
521 "features": [
522 "disable_ext_discard_framebuffer"
526 "id": 44,
527 "cr_bugs": [301988],
528 "description": "Framebuffer discarding causes jumpy scrolling on Mali drivers",
529 "os": {
530 "type": "chromeos"
532 "features": [
533 "disable_ext_discard_framebuffer"
537 "id": 45,
538 "cr_bugs": [307751],
539 "description": "Unfold short circuit on Mac OS X",
540 "os": {
541 "type": "macosx"
543 "features": [
544 "unfold_short_circuit_as_ternary_operation"
548 "id": 48,
549 "description": "Force to use discrete GPU on older MacBookPro models",
550 "cr_bugs": [113703],
551 "os": {
552 "type": "macosx",
553 "version": {
554 "op": ">=",
555 "value": "10.7"
558 "machine_model_name": ["MacBookPro"],
559 "machine_model_version": {
560 "op": "<",
561 "value": "8"
563 "gpu_count": {
564 "op": "=",
565 "value": "2"
567 "features": [
568 "force_discrete_gpu"
572 "id": 49,
573 "cr_bugs": [309734],
574 "description": "The first draw operation from an idle state is slow",
575 "os": {
576 "type": "android"
578 "gl_vendor": "Qualcomm.*",
579 "features": [
580 "wake_up_gpu_before_drawing"
584 "id": 51,
585 "description": "TexSubImage2D() is faster for full uploads on ANGLE",
586 "os": {
587 "type": "win"
589 "gl_renderer": "ANGLE.*",
590 "features": [
591 "texsubimage2d_faster_than_teximage2d"
595 "id": 52,
596 "description": "ES3 MSAA is broken on Qualcomm",
597 "os": {
598 "type": "android"
600 "gl_vendor": "Qualcomm.*",
601 "features": [
602 "disable_multisampling"
606 "id": 54,
607 "cr_bugs": [124764, 349137],
608 "description": "Clear uniforms before first program use on all platforms",
609 "exceptions": [
611 "os": {
612 "type": "macosx",
613 "version": {
614 "op": ">=",
615 "value": "10.9"
620 "features": [
621 "clear_uniforms_before_first_program_use"
625 "id": 55,
626 "cr_bugs": [333885],
627 "description": "Mesa drivers in Linux handle varyings without static use incorrectly",
628 "os": {
629 "type": "linux"
631 "driver_vendor": "Mesa",
632 "features": [
633 "count_all_in_varyings_packing"
637 "id": 56,
638 "cr_bugs": [333885],
639 "description": "Mesa drivers in ChromeOS handle varyings without static use incorrectly",
640 "os": {
641 "type": "chromeos"
643 "driver_vendor": "Mesa",
644 "features": [
645 "count_all_in_varyings_packing"
649 "id": 57,
650 "cr_bugs": [322760],
651 "description": "Mac drivers handle varyings without static use incorrectly",
652 "os": {
653 "type": "macosx"
655 "features": [
656 "init_varyings_without_static_use"
660 "id": 58,
661 "description": "Multisampling is buggy in ATI cards on older Mac OS X",
662 "cr_bugs": [67752, 83153],
663 "os": {
664 "type": "macosx",
665 "version": {
666 "op": "<",
667 "value": "10.7.2"
670 "vendor_id": "0x1002",
671 "features": [
672 "disable_multisampling"
676 "id": 59,
677 "description": "Multisampling is buggy in Intel IvyBridge",
678 "cr_bugs": [116370],
679 "os": {
680 "type": "linux"
682 "vendor_id": "0x8086",
683 "device_id": ["0x0152", "0x0156", "0x015a", "0x0162", "0x0166"],
684 "features": [
685 "disable_multisampling"
689 "id": 60,
690 "description": "Multisampling is buggy on Mac OS X prior to 10.8.3",
691 "cr_bugs": [137303, 162466],
692 "os": {
693 "type": "macosx",
694 "version": {
695 "op": "<",
696 "value": "10.8.3"
699 "features": [
700 "disable_multisampling"
704 "id": 63,
705 "description": "Shaders with sampler arrays indexing for-loop indices cause the GLSL compiler to crash on OS X",
706 "cr_bugs": [348198, 349137],
707 "os": {
708 "type": "macosx",
709 "version": {
710 "op": "<",
711 "value": "10.9"
714 "features": [
715 "unroll_for_loop_with_sampler_array_index"
719 "id": 64,
720 "description": "Linux AMD drivers incorrectly return initial value of 1 for TEXTURE_MAX_ANISOTROPY",
721 "cr_bugs": [348237],
722 "os": {
723 "type": "linux"
725 "vendor_id": "0x1002",
726 "features": [
727 "init_texture_max_anisotropy"
731 "id": 65,
732 "description": "Linux NVIDIA drivers don't have the correct defaults for vertex attributes",
733 "cr_bugs": [351528],
734 "os": {
735 "type": "linux"
737 "vendor_id": "0x10de",
738 "features": [
739 "init_vertex_attributes"
743 "id": 66,
744 "description": "Force glFinish() after compositing on older OS X on Intel GPU",
745 "cr_bugs": [123409],
746 "os": {
747 "type": "macosx",
748 "version": {
749 "op": "<=",
750 "value": "10.7"
753 "vendor_id": "0x8086",
754 "multi_gpu_category": "active",
755 "features": [
756 "force_gl_finish_after_compositing"
760 "id": 68,
761 "description": "Disable partial swaps on linux drivers",
762 "cr_bugs": [339493],
763 "os": {
764 "type": "linux"
766 "driver_vendor": "Mesa",
767 "features": [
768 "disable_post_sub_buffers_for_onscreen_surfaces"
772 "id": 69,
773 "description": "Some shaders in Skia need more than the min available vertex and fragment shader uniform vectors in case of OSMesa",
774 "cr_bugs": [174845],
775 "driver_vendor": "osmesa",
776 "features": [
777 "max_fragment_uniform_vectors_32",
778 "max_varying_vectors_16",
779 "max_vertex_uniform_vectors_256"
783 "id": 70,
784 "description": "Disable D3D11 on older nVidia drivers",
785 "cr_bugs": [349929],
786 "os": {
787 "type": "win"
789 "vendor_id": "0x10de",
790 "driver_version": {
791 "op": "<=",
792 "value": "8.17.12.6973"
794 "features": [
795 "disable_d3d11"
799 "id": 71,
800 "description": "Vivante's support of OES_standard_derivatives is buggy",
801 "cr_bugs": [368005],
802 "os": {
803 "type": "android"
805 "gl_extensions": ".*GL_VIV_shader_binary.*",
806 "features": [
807 "disable_oes_standard_derivatives"
811 "id": 72,
812 "description": "Use virtual contexts on NVIDIA with GLES 3.1",
813 "cr_bugs": [369316],
814 "os": {
815 "type": "android"
817 "gl_type": "gles",
818 "gl_version": {
819 "op": "=",
820 "value": "3.1"
822 "gl_vendor": "NVIDIA.*",
823 "features": [
824 "use_virtualized_gl_contexts"
827 ) // LONG_STRING_CONST macro
828 // Avoid C2026 (string too big) error on VisualStudio.
829 LONG_STRING_CONST(
831 "id": 74,
832 "cr_bugs": [278606, 382686],
833 "description": "Testing EGL sync fences was broken on most Qualcomm drivers",
834 "os": {
835 "type": "android",
836 "version": {
837 "op": "<=",
838 "value": "4.4.4"
841 "gl_vendor": "Qualcomm.*",
842 "features": [
843 "disable_egl_khr_fence_sync"
847 "id": 75,
848 "description": "Mali-400 support of EXT_multisampled_render_to_texture is buggy on Android < 4.3",
849 "cr_bugs": [362435],
850 "os": {
851 "type": "android",
852 "version": {
853 "op": "<",
854 "value": "4.3"
857 "gl_vendor": "ARM.*",
858 "gl_renderer": ".*Mali-400.*",
859 "features": [
860 "disable_multisampling"
864 "id": 76,
865 "cr_bugs": [371530],
866 "description": "Testing EGL sync fences was broken on IMG",
867 "os": {
868 "type": "android",
869 "version": {
870 "op": "<=",
871 "value": "4.4.4"
874 "gl_vendor": "Imagination Technologies.*",
875 "features": [
876 "disable_egl_khr_fence_sync"
880 "id": 77,
881 "cr_bugs": [378691, 373360, 371530, 398964],
882 "description": "Testing fences was broken on Mali ES2 drivers",
883 "os": {
884 "type": "android",
885 "version": {
886 "op": "<=",
887 "value": "4.4.4"
890 "gl_vendor": "ARM.*",
891 "gl_renderer": "Mali.*",
892 "gl_type": "gles",
893 "gl_version": {
894 "op": "<",
895 "value": "3.0"
897 "features": [
898 "disable_egl_khr_fence_sync"
902 "id": 78,
903 "cr_bugs": [378691, 373360, 371530],
904 "description": "Testing fences was broken on Broadcom drivers",
905 "os": {
906 "type": "android",
907 "version": {
908 "op": "<=",
909 "value": "4.4.4"
912 "gl_vendor": "Broadcom.*",
913 "features": [
914 "disable_egl_khr_fence_sync"
918 "id": 79,
919 "cr_bugs": [371530],
920 "description": "Testing ARB sync fences is broken on MacOSX",
921 "os": {
922 "type": "macosx"
924 "features": [
925 "disable_arb_sync"
929 "id": 82,
930 "description": "PBO mappings segfault on certain older Qualcomm drivers",
931 "cr_bugs": [394510],
932 "os": {
933 "type": "android",
934 "version": {
935 "op": "<",
936 "value": "4.3"
939 "gl_vendor": "Qualcomm.*",
940 "features": [
941 "disable_async_readpixels"
945 "id": 86,
946 "description": "Disable use of Direct3D 11 on Matrox video cards",
947 "cr_bugs": [395861],
948 "os": {
949 "type": "win"
951 "vendor_id": "0x102b",
952 "features": [
953 "disable_d3d11"
957 "id": 87,
958 "description": "Disable use of Direct3D 11 on older AMD drivers",
959 "cr_bugs": [402134],
960 "os": {
961 "type": "win"
963 "vendor_id": "0x1002",
964 "driver_date": {
965 "op": "<",
966 "value": "2011.1"
968 "features": [
969 "disable_d3d11"
973 "id": 88,
974 "description": "Always rewrite vec/mat constructors to be consistent",
975 "cr_bugs": [398694],
976 "features": [
977 "scalarize_vec_and_mat_constructor_args"
981 "id": 89,
982 "description": "Mac drivers handle struct scopes incorrectly",
983 "cr_bugs": [403957],
984 "os": {
985 "type": "macosx"
987 "features": [
988 "regenerate_struct_names"
992 "id": 90,
993 "description": "Linux AMD drivers handle struct scopes incorrectly",
994 "cr_bugs": [403957],
995 "os": {
996 "type": "linux"
998 "vendor_id": "0x1002",
999 "features": [
1000 "regenerate_struct_names"
1004 "id": 91,
1005 "cr_bugs": [150500, 414816],
1006 "description": "ETC1 non-power-of-two sized textures crash older IMG drivers",
1007 "os": {
1008 "type": "android"
1010 "gl_vendor": "Imagination.*",
1011 "gl_renderer": "PowerVR SGX 5.*",
1012 "features": [
1013 "etc1_power_of_two_only"
1017 "id": 92,
1018 "description": "Old Intel drivers cannot reliably support D3D11",
1019 "cr_bugs": [363721],
1020 "os": {
1021 "type": "win"
1023 "vendor_id": "0x8086",
1024 "driver_version": {
1025 "op": "<",
1026 "value": "8.16"
1028 "features": [
1029 "disable_d3d11"
1035 ); // LONG_STRING_CONST macro
1037 } // namespace gpu