[SyncFS] Build indexes from FileTracker entries on disk.
[chromium-blink-merge.git] / gpu / config / gpu_driver_bug_list_json.cc
blob9aa33102134b418617e6f268e319dadb1a339fee
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": "6.4",
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": 19,
255 "description": "Disable depth textures on Android with Qualcomm GPUs",
256 "os": {
257 "type": "android"
259 "gl_vendor": {
260 "op": "beginwith",
261 "value": "Qualcomm"
263 "features": [
264 "disable_depth_texture"
268 "id": 20,
269 "description": "Disable EXT_draw_buffers on GeForce GT 650M on Mac OS X due to driver bugs",
270 "os": {
271 "type": "macosx"
273 "vendor_id": "0x10de",
274 "device_id": ["0x0fd5"],
275 "multi_gpu_category": "any",
276 "features": [
277 "disable_ext_draw_buffers"
281 "id": 21,
282 "description": "Vivante GPUs are buggy with context switching",
283 "cr_bugs": [179250, 235935],
284 "os": {
285 "type": "android"
287 "gl_extensions": {
288 "op": "contains",
289 "value": "GL_VIV_shader_binary"
291 "features": [
292 "unbind_fbo_on_context_switch"
296 "id": 22,
297 "description": "Imagination drivers are buggy with context switching",
298 "cr_bugs": [230896],
299 "os": {
300 "type": "android"
302 "gl_vendor": {
303 "op": "beginwith",
304 "value": "Imagination"
306 "features": [
307 "unbind_fbo_on_context_switch"
311 "id": 23,
312 "cr_bugs": [243038],
313 "description": "Disable OES_standard_derivative on Intel Pineview M Gallium drivers",
314 "os": {
315 "type": "chromeos"
317 "vendor_id": "0x8086",
318 "device_id": ["0xa011", "0xa012"],
319 "features": [
320 "disable_oes_standard_derivatives"
324 "id": 24,
325 "cr_bugs": [231082],
326 "description": "Mali-400 drivers throw an error when a buffer object's size is set to 0",
327 "os": {
328 "type": "android"
330 "gl_vendor": {
331 "op": "beginwith",
332 "value": "ARM"
334 "gl_renderer": {
335 "op": "contains",
336 "value": "Mali-400"
338 "features": [
339 "use_non_zero_size_for_client_side_stream_buffers"
343 "id": 25,
344 "cr_bugs": [152225],
345 "description": "PBO + Readpixels don't work on OS X 10.7",
346 "os": {
347 "type": "macosx",
348 "version": {
349 "op": "<",
350 "value": "10.8"
353 "features": [
354 "disable_async_readpixels"
358 "id": 26,
359 "description": "Disable use of Direct3D 11 on Windows Vista and lower",
360 "os": {
361 "type": "win",
362 "version": {
363 "op": "<=",
364 "value": "6.0"
367 "features": [
368 "disable_d3d11"
372 "id": 27,
373 "cr_bugs": [265115],
374 "description": "Async Readpixels with GL_BGRA format is broken on Haswell chipset on Macs",
375 "os": {
376 "type": "macosx"
378 "vendor_id": "0x8086",
379 "device_id": ["0x0402", "0x0406", "0x040a", "0x0412", "0x0416", "0x041a",
380 "0x0a04", "0x0a16", "0x0a22", "0x0a26", "0x0a2a"],
381 "features": [
382 "swizzle_rgba_for_async_readpixels"
386 "id": 30,
387 "cr_bugs": [237931],
388 "description": "Multisampling is buggy on OSX when multiple monitors are connected",
389 "os": {
390 "type": "macosx"
392 "features": [
393 "disable_multimonitor_multisampling"
397 "id": 31,
398 "cr_bugs": [154715, 10068, 269829, 294779, 285292],
399 "description": "The Mali-Txxx driver does not guarantee flush ordering",
400 "gl_vendor": {
401 "op": "beginwith",
402 "value": "ARM"
404 "gl_renderer": {
405 "op": "beginwith",
406 "value": "Mali-T"
408 "features": [
409 "use_virtualized_gl_contexts"
413 "id": 32,
414 "cr_bugs": [179815],
415 "description": "Share groups are not working on (older?) Broadcom drivers",
416 "os": {
417 "type": "android"
419 "gl_vendor": {
420 "op": "beginwith",
421 "value": "Broadcom"
423 "features": [
424 "use_virtualized_gl_contexts"
428 "id": 33,
429 "description": "Share group-related crashes and poor context switching perf on Galaxy Nexus",
430 "os": {
431 "type": "android"
433 "gl_vendor": {
434 "op": "beginwith",
435 "value": "Imagination"
437 "features": [
438 "use_virtualized_gl_contexts"
442 "id": 34,
443 "cr_bugs": [179250, 229643, 230896],
444 "description": "Share groups are not working on (older?) Vivante drivers",
445 "os": {
446 "type": "android"
448 "gl_extensions": {
449 "op": "contains",
450 "value": "GL_VIV_shader_binary"
452 "features": [
453 "use_virtualized_gl_contexts"
457 "id": 35,
458 "cr_bugs": [163464],
459 "description": "Share-group related crashes on older NVIDIA drivers",
460 "os": {
461 "type": "android",
462 "version": {
463 "op": "<",
464 "value": "4.3"
467 "gl_vendor": {
468 "op": "beginwith",
469 "value": "NVIDIA"
471 "features": [
472 "use_virtualized_gl_contexts"
476 "id": 36,
477 "cr_bugs": [163464, 233612],
478 "description": "Share-group related crashes on Qualcomm drivers",
479 "os": {
480 "type": "android",
481 "version": {
482 "op": "<",
483 "value": "4.3"
486 "gl_vendor": {
487 "op": "beginwith",
488 "value": "Qualcomm"
490 "features": [
491 "use_virtualized_gl_contexts"
495 "id": 37,
496 "cr_bugs": [286468],
497 "description": "Program link fails in NVIDIA Linux if gl_Position is not set",
498 "os": {
499 "type": "linux"
501 "vendor_id": "0x10de",
502 "features": [
503 "init_gl_position_in_vertex_shader"
507 "id": 38,
508 "cr_bugs": [289461],
509 "description": "Non-virtual contexts on Qualcomm sometimes cause out-of-order frames",
510 "os": {
511 "type": "android"
513 "gl_vendor": {
514 "op": "beginwith",
515 "value": "Qualcomm"
517 "features": [
518 "use_virtualized_gl_contexts"
522 "id": 39,
523 "cr_bugs": [290391],
524 "description": "Multisampled renderbuffer allocation must be validated on some Macs",
525 "os": {
526 "type": "macosx"
528 "features": [
529 "validate_multisample_buffer_allocation"
533 "id": 40,
534 "cr_bugs": [290876],
535 "description": "Framebuffer discarding causes flickering on old ARM drivers",
536 "os": {
537 "type": "android",
538 "version": {
539 "op": "<",
540 "value": "4.4"
543 "gl_vendor": {
544 "op": "beginwith",
545 "value": "ARM"
547 "features": [
548 "disable_ext_discard_framebuffer"
552 "id": 42,
553 "cr_bugs": [290876],
554 "description": "Framebuffer discarding causes flickering on older IMG drivers",
555 "os": {
556 "type": "android"
558 "gl_vendor": {
559 "op": "beginwith",
560 "value": "Imagination"
562 "gl_renderer": {
563 "op": "=",
564 "value": "PowerVR SGX 540"
566 "features": [
567 "disable_ext_discard_framebuffer"
571 "id": 43,
572 "cr_bugs": [299494],
573 "description": "Framebuffer discarding doesn't accept trivial attachments on Vivante",
574 "os": {
575 "type": "android"
577 "gl_extensions": {
578 "op": "contains",
579 "value": "GL_VIV_shader_binary"
581 "features": [
582 "disable_ext_discard_framebuffer"
586 "id": 44,
587 "cr_bugs": [301988],
588 "description": "Framebuffer discarding causes jumpy scrolling on Mali drivers",
589 "os": {
590 "type": "chromeos"
592 "features": [
593 "disable_ext_discard_framebuffer"
597 "id": 45,
598 "cr_bugs": [307751],
599 "description": "Unfold short circuit on Mac OS X",
600 "os": {
601 "type": "macosx"
603 "features": [
604 "unfold_short_circuit_as_ternary_operation"
608 "id": 48,
609 "description": "Force to use discrete GPU on older MacBookPro models",
610 "cr_bugs": [113703],
611 "os": {
612 "type": "macosx",
613 "version": {
614 "op": ">=",
615 "value": "10.7"
618 "machine_model_name": ["MacBookPro"],
619 "machine_model_version": {
620 "op": "<",
621 "value": "8"
623 "gpu_count": {
624 "op": "=",
625 "value": "2"
627 "features": [
628 "force_discrete_gpu"
632 "id": 49,
633 "cr_bugs": [309734],
634 "description": "The first draw operation from an idle state is slow",
635 "os": {
636 "type": "android"
638 "gl_vendor": {
639 "op": "beginwith",
640 "value": "Qualcomm"
642 "features": [
643 "wake_up_gpu_before_drawing"
647 "id": 50,
648 "description": "NVIDIA driver requires unbinding a GpuMemoryBuffer from the texture before mapping it to main memory",
649 "os": {
650 "type": "android"
652 "gl_vendor": {
653 "op": "beginwith",
654 "value": "NVIDIA"
656 "features": [
657 "release_image_after_use"
661 "id": 51,
662 "description": "TexSubImage2D() is faster for full uploads on ANGLE",
663 "os": {
664 "type": "win"
666 "gl_renderer": {
667 "op": "beginwith",
668 "value": "ANGLE"
670 "features": [
671 "texsubimage2d_faster_than_teximage2d"
675 "id": 52,
676 "description": "ES3 MSAA is broken on Qualcomm",
677 "os": {
678 "type": "android"
680 "gl_vendor": {
681 "op": "beginwith",
682 "value": "Qualcomm"
684 "features": [
685 "disable_multisampling"
689 "id": 54,
690 "cr_bugs": [124764, 349137],
691 "description": "Clear uniforms before first program use on all platforms",
692 "exceptions": [
694 "os": {
695 "type": "macosx",
696 "version": {
697 "op": ">=",
698 "value": "10.9"
703 "features": [
704 "clear_uniforms_before_first_program_use"
708 "id": 55,
709 "cr_bugs": [333885],
710 "description": "Mesa drivers in Linux handle varyings without static use incorrectly",
711 "os": {
712 "type": "linux"
714 "driver_vendor": {
715 "op": "=",
716 "value": "Mesa"
718 "features": [
719 "count_all_in_varyings_packing"
723 "id": 56,
724 "cr_bugs": [333885],
725 "description": "Mesa drivers in ChromeOS handle varyings without static use incorrectly",
726 "os": {
727 "type": "chromeos"
729 "driver_vendor": {
730 "op": "=",
731 "value": "Mesa"
733 "features": [
734 "count_all_in_varyings_packing"
738 "id": 57,
739 "cr_bugs": [322760],
740 "description": "Mac drivers handle varyings without static use incorrectly",
741 "os": {
742 "type": "macosx"
744 "features": [
745 "init_varyings_without_static_use"
749 "id": 58,
750 "description": "Multisampling is buggy in ATI cards on older Mac OS X",
751 "cr_bugs": [67752, 83153],
752 "os": {
753 "type": "macosx",
754 "version": {
755 "op": "<",
756 "value": "10.7.2"
759 "vendor_id": "0x1002",
760 "features": [
761 "disable_multisampling"
765 "id": 59,
766 "description": "Multisampling is buggy in Intel IvyBridge",
767 "cr_bugs": [116370],
768 "os": {
769 "type": "linux"
771 "vendor_id": "0x8086",
772 "device_id": ["0x0152", "0x0156", "0x015a", "0x0162", "0x0166"],
773 "features": [
774 "disable_multisampling"
778 "id": 60,
779 "description": "Multisampling is buggy on Mac OS X prior to 10.8.3",
780 "cr_bugs": [137303, 162466],
781 "os": {
782 "type": "macosx",
783 "version": {
784 "op": "<",
785 "value": "10.8.3"
788 "features": [
789 "disable_multisampling"
793 "id": 63,
794 "description": "Shaders with sampler arrays indexing for-loop indices cause the GLSL compiler to crash on OS X",
795 "cr_bugs": [348198, 349137],
796 "os": {
797 "type": "macosx",
798 "version": {
799 "op": "<",
800 "value": "10.9"
803 "features": [
804 "unroll_for_loop_with_sampler_array_index"
808 "id": 64,
809 "description": "Linux AMD drivers incorrectly return initial value of 1 for TEXTURE_MAX_ANISOTROPY",
810 "cr_bugs": [348237],
811 "os": {
812 "type": "linux"
814 "vendor_id": "0x1002",
815 "features": [
816 "init_texture_max_anisotropy"
820 "id": 65,
821 "description": "Linux NVIDIA drivers don't have the correct defaults for vertex attributes",
822 "cr_bugs": [351528],
823 "os": {
824 "type": "linux"
826 "vendor_id": "0x10de",
827 "features": [
828 "init_vertex_attributes"
832 "id": 66,
833 "description": "Force glFinish() after compositing on older OS X on Intel GPU",
834 "cr_bugs": [123409],
835 "os": {
836 "type": "macosx",
837 "version": {
838 "op": "<=",
839 "value": "10.7"
842 "vendor_id": "0x8086",
843 "multi_gpu_category": "active",
844 "features": [
845 "force_gl_finish_after_compositing"
849 "id": 68,
850 "description": "Disable partial swaps on linux drivers",
851 "cr_bugs": [339493],
852 "os": {
853 "type": "linux"
855 "features": [
856 "disable_post_sub_buffers_for_onscreen_surfaces"
860 "id": 69,
861 "description": "Some shaders in Skia need more than the min available vertex and fragment shader uniform vectors in case of OSMesa",
862 "cr_bugs": [174845],
863 "driver_vendor": {
864 "op": "=",
865 "value": "osmesa"
867 "features": [
868 "max_fragment_uniform_vectors_32",
869 "max_varying_vectors_16",
870 "max_vertex_uniform_vectors_256"
874 "id": 70,
875 "description": "Disable D3D11 on older nVidia drivers",
876 "cr_bugs": [349929],
877 "os": {
878 "type": "win"
880 "vendor_id": "0x10de",
881 "driver_version": {
882 "op": "<=",
883 "value": "8.17.12.6973"
885 "features": [
886 "disable_d3d11"
890 "id": 71,
891 "description": "Vivante's support of OES_standard_derivatives is buggy",
892 "cr_bugs": [368005],
893 "os": {
894 "type": "android"
896 "gl_extensions": {
897 "op": "contains",
898 "value": "GL_VIV_shader_binary"
900 "features": [
901 "disable_oes_standard_derivatives"
905 "id": 72,
906 "description": "Use virtual contexts on NVIDIA with GLES 3.1",
907 "cr_bugs": [369316],
908 "os": {
909 "type": "android"
911 "gl_type": "gles",
912 "gl_version": {
913 "op": "=",
914 "value": "3.1"
916 "gl_vendor": {
917 "op": "beginwith",
918 "value": "NVidia"
920 "features": [
921 "use_virtualized_gl_contexts"
925 "id": 73,
926 "description": "Using D3D11 causes browser crashes on certain Intel GPUs",
927 "cr_bugs": [310808],
928 "os": {
929 "type": "win"
931 "vendor_id": "0x8086",
932 "features": [
933 "disable_d3d11"
936 ) // LONG_STRING_CONST macro
937 // Avoid C2026 (string too big) error on VisualStudio.
938 LONG_STRING_CONST(
940 "id": 74,
941 "cr_bugs": [278606, 382686],
942 "description": "Testing EGL sync fences was broken on most Qualcomm drivers",
943 "os": {
944 "type": "android",
945 "version": {
946 "op": "<=",
947 "value": "4.4.4"
950 "gl_vendor": {
951 "op": "beginwith",
952 "value": "Qualcomm"
954 "features": [
955 "disable_egl_khr_fence_sync"
959 "id": 75,
960 "description": "Mali-400 support of EXT_multisampled_render_to_texture is buggy on Android < 4.3",
961 "cr_bugs": [362435],
962 "os": {
963 "type": "android",
964 "version": {
965 "op": "<",
966 "value": "4.3"
969 "gl_vendor": {
970 "op": "beginwith",
971 "value": "ARM"
973 "gl_renderer": {
974 "op": "contains",
975 "value": "Mali-400"
977 "features": [
978 "disable_multisampling"
982 "id": 76,
983 "cr_bugs": [371530],
984 "description": "Testing EGL sync fences was broken on IMG",
985 "os": {
986 "type": "android",
987 "version": {
988 "op": "<=",
989 "value": "4.4.4"
992 "gl_vendor": {
993 "op": "beginwith",
994 "value": "Imagination Technologies"
996 "features": [
997 "disable_egl_khr_fence_sync"
1001 "id": 77,
1002 "cr_bugs": [378691, 373360, 371530],
1003 "description": "Testing fences was broken on Mali-400 MP drivers",
1004 "os": {
1005 "type": "android",
1006 "version": {
1007 "op": "<=",
1008 "value": "4.4.4"
1011 "gl_vendor": {
1012 "op": "beginwith",
1013 "value": "ARM"
1015 "gl_renderer": {
1016 "op": "beginwith",
1017 "value": "Mali-400 MP"
1019 "features": [
1020 "disable_egl_khr_fence_sync"
1024 "id": 78,
1025 "cr_bugs": [378691, 373360, 371530],
1026 "description": "Testing fences was broken on Broadcom drivers",
1027 "os": {
1028 "type": "android",
1029 "version": {
1030 "op": "<=",
1031 "value": "4.4.4"
1034 "gl_vendor": {
1035 "op": "beginwith",
1036 "value": "Broadcom"
1038 "features": [
1039 "disable_egl_khr_fence_sync"
1043 "id": 79,
1044 "cr_bugs": [371530],
1045 "description": "Testing ARB sync fences is broken on MacOSX",
1046 "os": {
1047 "type": "macosx"
1049 "features": [
1050 "disable_arb_sync"
1056 ); // LONG_STRING_CONST macro
1058 } // namespace gpu