Cleanup a couple of consts left un-renamed.
[chromium-blink-merge.git] / gpu / config / gpu_driver_bug_list_json.cc
blobbf699f6cf45d54b54922f312fe2ce0424533315e
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": "5.3",
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 OS X 10.7",
360 "os": {
361 "type": "macosx",
362 "version": {
363 "op": "<",
364 "value": "10.8"
367 "features": [
368 "disable_async_readpixels"
372 "id": 26,
373 "description": "Disable use of Direct3D 11 on Windows Vista and lower",
374 "os": {
375 "type": "win",
376 "version": {
377 "op": "<=",
378 "value": "6.0"
381 "features": [
382 "disable_d3d11"
386 "id": 27,
387 "cr_bugs": [265115],
388 "description": "Async Readpixels with GL_BGRA format is broken on Haswell chipset on Macs",
389 "os": {
390 "type": "macosx"
392 "vendor_id": "0x8086",
393 "device_id": ["0x0402", "0x0406", "0x040a", "0x0412", "0x0416", "0x041a",
394 "0x0a04", "0x0a16", "0x0a22", "0x0a26", "0x0a2a"],
395 "features": [
396 "swizzle_rgba_for_async_readpixels"
400 "id": 29,
401 "cr_bugs": [278606],
402 "description": "Testing fences is broken on Qualcomm.",
403 "os": {
404 "type": "android"
406 "gl_vendor": {
407 "op": "beginwith",
408 "value": "Qualcomm"
410 "features": [
411 "disable_async_readpixels"
415 "id": 30,
416 "cr_bugs": [237931],
417 "description": "Multisampling is buggy on OSX when multiple monitors are connected",
418 "os": {
419 "type": "macosx"
421 "features": [
422 "disable_multimonitor_multisampling"
426 "id": 31,
427 "cr_bugs": [154715, 10068, 269829, 294779, 285292],
428 "description": "The Mali-Txxx driver does not guarantee flush ordering",
429 "gl_vendor": {
430 "op": "beginwith",
431 "value": "ARM"
433 "gl_renderer": {
434 "op": "beginwith",
435 "value": "Mali-T"
437 "features": [
438 "use_virtualized_gl_contexts"
442 "id": 32,
443 "cr_bugs": [179815],
444 "description": "Share groups are not working on (older?) Broadcom drivers",
445 "os": {
446 "type": "android"
448 "gl_vendor": {
449 "op": "beginwith",
450 "value": "Broadcom"
452 "features": [
453 "use_virtualized_gl_contexts"
457 "id": 33,
458 "description": "Share group-related crashes and poor context switching perf on Galaxy Nexus",
459 "os": {
460 "type": "android"
462 "gl_vendor": {
463 "op": "beginwith",
464 "value": "Imagination"
466 "features": [
467 "use_virtualized_gl_contexts"
471 "id": 34,
472 "cr_bugs": [179250, 229643, 230896],
473 "description": "Share groups are not working on (older?) Vivante drivers",
474 "os": {
475 "type": "android"
477 "gl_extensions": {
478 "op": "contains",
479 "value": "GL_VIV_shader_binary"
481 "features": [
482 "use_virtualized_gl_contexts"
486 "id": 35,
487 "cr_bugs": [163464],
488 "description": "Share-group related crashes on older NVIDIA drivers",
489 "os": {
490 "type": "android",
491 "version": {
492 "op": "<",
493 "value": "4.3"
496 "gl_vendor": {
497 "op": "beginwith",
498 "value": "NVIDIA"
500 "features": [
501 "use_virtualized_gl_contexts"
505 "id": 36,
506 "cr_bugs": [163464, 233612],
507 "description": "Share-group related crashes on Qualcomm drivers",
508 "os": {
509 "type": "android",
510 "version": {
511 "op": "<",
512 "value": "4.3"
515 "gl_vendor": {
516 "op": "beginwith",
517 "value": "Qualcomm"
519 "features": [
520 "use_virtualized_gl_contexts"
524 "id": 37,
525 "cr_bugs": [286468],
526 "description": "Program link fails in NVIDIA Linux if gl_Position is not set",
527 "os": {
528 "type": "linux"
530 "vendor_id": "0x10de",
531 "features": [
532 "init_gl_position_in_vertex_shader"
536 "id": 38,
537 "cr_bugs": [289461],
538 "description": "Non-virtual contexts on Qualcomm sometimes cause out-of-order frames",
539 "os": {
540 "type": "android"
542 "gl_vendor": {
543 "op": "beginwith",
544 "value": "Qualcomm"
546 "features": [
547 "use_virtualized_gl_contexts"
551 "id": 39,
552 "cr_bugs": [290391],
553 "description": "Multisampled renderbuffer allocation must be validated on some Macs",
554 "os": {
555 "type": "macosx"
557 "features": [
558 "validate_multisample_buffer_allocation"
562 "id": 40,
563 "cr_bugs": [290876],
564 "description": "Framebuffer discarding causes flickering on old ARM drivers",
565 "os": {
566 "type": "android",
567 "version": {
568 "op": "<",
569 "value": "4.4"
572 "gl_vendor": {
573 "op": "beginwith",
574 "value": "ARM"
576 "features": [
577 "disable_ext_discard_framebuffer"
581 "id": 42,
582 "cr_bugs": [290876],
583 "description": "Framebuffer discarding causes flickering on older IMG drivers",
584 "os": {
585 "type": "android"
587 "gl_vendor": {
588 "op": "beginwith",
589 "value": "Imagination"
591 "gl_renderer": {
592 "op": "=",
593 "value": "PowerVR SGX 540"
595 "features": [
596 "disable_ext_discard_framebuffer"
600 "id": 43,
601 "cr_bugs": [299494],
602 "description": "Framebuffer discarding doesn't accept trivial attachments on Vivante",
603 "os": {
604 "type": "android"
606 "gl_extensions": {
607 "op": "contains",
608 "value": "GL_VIV_shader_binary"
610 "features": [
611 "disable_ext_discard_framebuffer"
615 "id": 44,
616 "cr_bugs": [301988],
617 "description": "Framebuffer discarding causes jumpy scrolling on Mali drivers",
618 "os": {
619 "type": "chromeos"
621 "features": [
622 "disable_ext_discard_framebuffer"
626 "id": 45,
627 "cr_bugs": [307751],
628 "description": "Unfold short circuit on Mac OS X",
629 "os": {
630 "type": "macosx"
632 "features": [
633 "unfold_short_circuit_as_ternary_operation"
637 "id": 48,
638 "description": "Force to use discrete GPU on older MacBookPro models",
639 "cr_bugs": [113703],
640 "os": {
641 "type": "macosx",
642 "version": {
643 "op": ">=",
644 "value": "10.7"
647 "machine_model_name": ["MacBookPro"],
648 "machine_model_version": {
649 "op": "<",
650 "value": "8"
652 "gpu_count": {
653 "op": "=",
654 "value": "2"
656 "features": [
657 "force_discrete_gpu"
661 "id": 49,
662 "cr_bugs": [309734],
663 "description": "The first draw operation from an idle state is slow",
664 "os": {
665 "type": "android"
667 "gl_vendor": {
668 "op": "beginwith",
669 "value": "Qualcomm"
671 "features": [
672 "wake_up_gpu_before_drawing"
676 "id": 50,
677 "description": "NVIDIA driver requires unbinding a GpuMemoryBuffer from the texture before mapping it to main memory",
678 "os": {
679 "type": "android"
681 "gl_vendor": {
682 "op": "beginwith",
683 "value": "NVIDIA"
685 "features": [
686 "release_image_after_use"
690 "id": 51,
691 "description": "TexSubImage2D() is faster for full uploads on ANGLE",
692 "os": {
693 "type": "win"
695 "gl_renderer": {
696 "op": "beginwith",
697 "value": "ANGLE"
699 "features": [
700 "texsubimage2d_faster_than_teximage2d"
704 "id": 52,
705 "description": "ES3 MSAA is broken on Qualcomm",
706 "os": {
707 "type": "android"
709 "gl_vendor": {
710 "op": "beginwith",
711 "value": "Qualcomm"
713 "features": [
714 "disable_multisampling"
718 "id": 54,
719 "cr_bugs": [124764, 349137],
720 "description": "Clear uniforms before first program use on all platforms",
721 "exceptions": [
723 "os": {
724 "type": "macosx",
725 "version": {
726 "op": ">=",
727 "value": "10.9"
732 "features": [
733 "clear_uniforms_before_first_program_use"
737 "id": 55,
738 "cr_bugs": [333885],
739 "description": "Mesa drivers in Linux handle varyings without static use incorrectly",
740 "os": {
741 "type": "linux"
743 "driver_vendor": {
744 "op": "=",
745 "value": "Mesa"
747 "features": [
748 "count_all_in_varyings_packing"
752 "id": 56,
753 "cr_bugs": [333885],
754 "description": "Mesa drivers in ChromeOS handle varyings without static use incorrectly",
755 "os": {
756 "type": "chromeos"
758 "driver_vendor": {
759 "op": "=",
760 "value": "Mesa"
762 "features": [
763 "count_all_in_varyings_packing"
767 "id": 57,
768 "cr_bugs": [322760],
769 "description": "Mac drivers handle varyings without static use incorrectly",
770 "os": {
771 "type": "macosx"
773 "features": [
774 "init_varyings_without_static_use"
778 "id": 58,
779 "description": "Multisampling is buggy in ATI cards on older Mac OS X",
780 "cr_bugs": [67752, 83153],
781 "os": {
782 "type": "macosx",
783 "version": {
784 "op": "<",
785 "value": "10.7.2"
788 "vendor_id": "0x1002",
789 "features": [
790 "disable_multisampling"
794 "id": 59,
795 "description": "Multisampling is buggy in Intel IvyBridge",
796 "cr_bugs": [116370],
797 "os": {
798 "type": "linux"
800 "vendor_id": "0x8086",
801 "device_id": ["0x0152", "0x0156", "0x015a", "0x0162", "0x0166"],
802 "features": [
803 "disable_multisampling"
807 "id": 60,
808 "description": "Multisampling is buggy on Mac OS X prior to 10.8.3",
809 "cr_bugs": [137303, 162466],
810 "os": {
811 "type": "macosx",
812 "version": {
813 "op": "<",
814 "value": "10.8.3"
817 "features": [
818 "disable_multisampling"
822 "id": 63,
823 "description": "Shaders with sampler arrays indexing for-loop indices cause the GLSL compiler to crash on OS X",
824 "cr_bugs": [348198, 349137],
825 "os": {
826 "type": "macosx",
827 "version": {
828 "op": "<",
829 "value": "10.9"
832 "features": [
833 "unroll_for_loop_with_sampler_array_index"
837 "id": 64,
838 "description": "Linux AMD drivers incorrectly return initial value of 1 for TEXTURE_MAX_ANISOTROPY",
839 "cr_bugs": [348237],
840 "os": {
841 "type": "linux"
843 "vendor_id": "0x1002",
844 "features": [
845 "init_texture_max_anisotropy"
849 "id": 65,
850 "description": "Linux NVIDIA drivers don't have the correct defaults for vertex attributes",
851 "cr_bugs": [351528],
852 "os": {
853 "type": "linux"
855 "vendor_id": "0x10de",
856 "features": [
857 "init_vertex_attributes"
861 "id": 66,
862 "description": "Force glFinish() after compositing on older OS X on Intel GPU",
863 "cr_bugs": [123409],
864 "os": {
865 "type": "macosx",
866 "version": {
867 "op": "<=",
868 "value": "10.7"
871 "vendor_id": "0x8086",
872 "multi_gpu_category": "active",
873 "features": [
874 "force_gl_finish_after_compositing"
878 "id": 67,
879 "description": "Force glFinish() after compositing on Mavericks on Intel GPU",
880 // TODO(ccameron): Get rid of this when we move to CoreAnimation.
881 "cr_bugs": [318877],
882 "os": {
883 "type": "macosx",
884 "version": {
885 "op": ">=",
886 "value": "10.9"
889 "vendor_id": "0x8086",
890 "multi_gpu_category": "active",
891 "features": [
892 "force_gl_finish_after_compositing"
896 "id": 68,
897 "description": "Disable partial swaps on linux drivers",
898 "cr_bugs": [339493],
899 "os": {
900 "type": "linux"
902 "features": [
903 "disable_post_sub_buffers_for_onscreen_surfaces"
907 "id": 69,
908 "description": "Some shaders in Skia need more than the min available vertex and fragment shader uniform vectors in case of OSMesa",
909 "cr_bugs": [174845],
910 "driver_vendor": {
911 "op": "=",
912 "value": "osmesa"
914 "features": [
915 "max_fragment_uniform_vectors_32",
916 "max_varying_vectors_16",
917 "max_vertex_uniform_vectors_256"
921 "id": 70,
922 "description": "Disable D3D11 on older nVidia drivers",
923 "cr_bugs": [349929],
924 "os": {
925 "type": "win"
927 "vendor_id": "0x10de",
928 "driver_version": {
929 "op": "<=",
930 "value": "8.17.12.6973"
932 "features": [
933 "disable_d3d11"
937 "id": 71,
938 "description": "Vivante's support of OES_standard_derivatives is buggy",
939 "cr_bugs": [368005],
940 "os": {
941 "type": "android"
943 "gl_extensions": {
944 "op": "contains",
945 "value": "GL_VIV_shader_binary"
947 "features": [
948 "disable_oes_standard_derivatives"
952 "id": 72,
953 "description": "Use virtual contexts on NVIDIA with GLES 3.1",
954 "cr_bugs": [369316],
955 "os": {
956 "type": "android"
958 "gl_type": "gles",
959 "gl_version": {
960 "op": "=",
961 "value": "3.1"
963 "gl_vendor": {
964 "op": "beginwith",
965 "value": "NVidia"
967 "features": [
968 "use_virtualized_gl_contexts"
974 ); // LONG_STRING_CONST macro
976 } // namespace gpu