Upstream version 7.35.139.0
[platform/framework/web/crosswalk.git] / src / gpu / config / gpu_driver_bug_list_json.cc
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.
4
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>.
10
11 #include "gpu/config/gpu_control_list_jsons.h"
12
13 #define LONG_STRING_CONST(...) #__VA_ARGS__
14
15 namespace gpu {
16
17 const char kGpuDriverBugListJson[] = LONG_STRING_CONST(
18
19 {
20   "name": "gpu driver bug list",
21   // Please update the version number whenever you change this file.
22   "version": "4.9",
23   "entries": [
24     {
25       "id": 1,
26       "description": "Imagination driver doesn't like uploading lots of buffer data constantly",
27       "os": {
28         "type": "android"
29       },
30       "gl_vendor": {
31         "op": "beginwith",
32         "value": "Imagination"
33       },
34       "features": [
35         "use_client_side_arrays_for_stream_buffers"
36       ]
37     },
38     {
39       "id": 2,
40       "description": "ARM driver doesn't like uploading lots of buffer data constantly",
41       "os": {
42         "type": "android"
43       },
44       "gl_vendor": {
45         "op": "beginwith",
46         "value": "ARM"
47       },
48       "features": [
49         "use_client_side_arrays_for_stream_buffers"
50       ]
51     },
52     {
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"
62         }
63       },
64       "features": [
65         "set_texture_filter_before_generating_mipmap"
66       ]
67     },
68     {
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"
78         }
79       },
80       "features": [
81         "clear_alpha_in_readpixels"
82       ]
83     },
84     {
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": [
90         {
91           "os": {
92             "type": "macosx",
93             "version": {
94               "op": ">=",
95               "value": "10.9"
96             }
97           }
98         }
99       ],
100       "features": [
101         "use_current_program_after_successful_link"
102       ]
103     },
104     {
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"
113         }
114       },
115       "gl_vendor": {
116         "op": "beginwith",
117         "value": "Qualcomm"
118       },
119       "features": [
120         "restore_scissor_on_fbo_change"
121       ]
122     },
123     {
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"
129       },
130       "vendor_id": "0x10de",
131       "features": [
132         "needs_offscreen_buffer_workaround"
133       ]
134     },
135     {
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"
144         }
145       },
146       "vendor_id": "0x1002",
147       "features": [
148         "needs_glsl_built_in_function_emulation"
149       ]
150     },
151     {
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"
160         }
161       },
162       "vendor_id": "0x1002",
163       "features": [
164         "reverse_point_sprite_coord_origin"
165       ]
166     },
167     {
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"
176         }
177       },
178       "vendor_id": "0x8086",
179       "features": [
180         "reverse_point_sprite_coord_origin"
181       ]
182     },
183     {
184       "id": 11,
185       "description": "Limit max texure size to 4096 on Macs with Intel GPUs",
186       "os": {
187         "type": "macosx"
188       },
189       "vendor_id": "0x8086",
190       "features": [
191         "max_texture_size_limit_4096"
192       ]
193     },
194     {
195       "id": 12,
196       "description": "Limit max cube map texure size to 1024 on Macs with Intel GPUs",
197       "os": {
198         "type": "macosx"
199       },
200       "vendor_id": "0x8086",
201       "features": [
202         "max_cube_map_texture_size_limit_1024"
203       ]
204     },
205     {
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"
213         }
214       },
215       "vendor_id": "0x8086",
216       "features": [
217         "max_cube_map_texture_size_limit_512"
218       ]
219     },
220     {
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"
225       },
226       "vendor_id": "0x1002",
227       "features": [
228         "max_texture_size_limit_4096",
229         "max_cube_map_texture_size_limit_4096"
230       ]
231     },
232     {
233       "id": 16,
234       "description": "EXT_occlusion_query appears to be buggy with Intel GPUs on Linux",
235       "os": {
236         "type": "linux"
237       },
238       "vendor_id": "0x8086",
239       "features": [
240         "disable_ext_occlusion_query"
241       ]
242     },
243     {
244       "id": 17,
245       "description": "Some drivers are unable to reset the D3D device in the GPU process sandbox",
246       "os": {
247         "type": "win"
248       },
249       "features": [
250         "exit_on_context_lost"
251       ]
252     },
253     {
254       "id": 18,
255       "description": "Everything except async + NPOT + multiple-of-8 textures are brutally slow for Imagination drivers",
256       "os": {
257         "type": "android"
258       },
259       "gl_vendor": {
260         "op": "beginwith",
261         "value": "Imagination"
262       },
263       "features": [
264         "enable_chromium_fast_npot_mo8_textures"
265       ]
266     },
267     {
268       "id": 19,
269       "description": "Disable depth textures on Android with Qualcomm GPUs",
270       "os": {
271         "type": "android"
272       },
273       "gl_vendor": {
274         "op": "beginwith",
275         "value": "Qualcomm"
276       },
277       "features": [
278         "disable_depth_texture"
279       ]
280     },
281     {
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"
286       },
287       "vendor_id": "0x10de",
288       "device_id": ["0x0fd5"],
289       "multi_gpu_category": "any",
290       "features": [
291         "disable_ext_draw_buffers"
292       ]
293     },
294     {
295       "id": 21,
296       "description": "Vivante GPUs are buggy with context switching",
297       "cr_bugs": [179250, 235935],
298       "os": {
299         "type": "android"
300       },
301       "gl_extensions": {
302         "op": "contains",
303         "value": "GL_VIV_shader_binary"
304       },
305       "features": [
306         "unbind_fbo_on_context_switch"
307       ]
308     },
309     {
310       "id": 22,
311       "description": "Imagination drivers are buggy with context switching",
312       "cr_bugs": [230896],
313       "os": {
314         "type": "android"
315       },
316       "gl_vendor": {
317         "op": "beginwith",
318         "value": "Imagination"
319       },
320       "features": [
321         "unbind_fbo_on_context_switch"
322       ]
323     },
324     {
325       "id": 23,
326       "cr_bugs": [243038],
327       "description": "Disable OES_standard_derivative on Intel Pineview M Gallium drivers",
328       "os": {
329         "type": "chromeos"
330       },
331       "vendor_id": "0x8086",
332       "device_id": ["0xa011", "0xa012"],
333       "features": [
334         "disable_oes_standard_derivatives"
335       ]
336     },
337     {
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"
343       },
344       "gl_vendor": {
345         "op": "beginwith",
346         "value": "ARM"
347       },
348       "gl_renderer": {
349         "op": "contains",
350         "value": "Mali-400"
351       },
352       "features": [
353         "use_non_zero_size_for_client_side_stream_buffers"
354       ]
355     },
356     {
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"
365         }
366       },
367       "vendor_id": "0x8086",
368       "features": [
369         "disable_async_readpixels"
370       ]
371     },
372     {
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"
380         }
381       },
382       "features": [
383         "disable_d3d11"
384       ]
385     },
386     {
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"
392       },
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"
398       ]
399     },
400     {
401       "id": 29,
402       "cr_bugs": [278606],
403       "description": "Testing fences is broken on Qualcomm.",
404       "os": {
405         "type": "android"
406       },
407       "gl_vendor": {
408         "op": "beginwith",
409         "value": "Qualcomm"
410       },
411       "features": [
412         "disable_async_readpixels"
413       ]
414     },
415     {
416       "id": 30,
417       "cr_bugs": [237931],
418       "description": "Multisampling is buggy on OSX when multiple monitors are connected",
419       "os": {
420         "type": "macosx"
421       },
422       "features": [
423         "disable_multimonitor_multisampling"
424       ]
425     },
426     {
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"
433       },
434       "gl_renderer": {
435         "op": "beginwith",
436         "value": "Mali-T"
437       },
438       "features": [
439         "use_virtualized_gl_contexts"
440       ]
441     },
442     {
443       "id": 32,
444       "cr_bugs": [179815],
445       "description": "Share groups are not working on (older?) Broadcom drivers",
446       "os": {
447         "type": "android"
448       },
449       "gl_vendor": {
450         "op": "beginwith",
451         "value": "Broadcom"
452       },
453       "features": [
454         "use_virtualized_gl_contexts"
455       ]
456     },
457     {
458       "id": 33,
459       "description": "Share group-related crashes and poor context switching perf on Galaxy Nexus",
460       "os": {
461         "type": "android"
462       },
463       "gl_vendor": {
464         "op": "beginwith",
465         "value": "Imagination"
466       },
467       "features": [
468         "use_virtualized_gl_contexts"
469       ]
470     },
471     {
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"
477       },
478       "gl_extensions": {
479         "op": "contains",
480         "value": "GL_VIV_shader_binary"
481       },
482       "features": [
483         "use_virtualized_gl_contexts"
484       ]
485     },
486     {
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"
495         }
496       },
497       "gl_vendor": {
498         "op": "beginwith",
499         "value": "NVIDIA"
500       },
501       "features": [
502         "use_virtualized_gl_contexts"
503       ]
504     },
505     {
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"
514         }
515       },
516       "gl_vendor": {
517         "op": "beginwith",
518         "value": "Qualcomm"
519       },
520       "features": [
521         "use_virtualized_gl_contexts"
522       ]
523     },
524     {
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"
530       },
531       "vendor_id": "0x10de",
532       "features": [
533         "init_gl_position_in_vertex_shader"
534       ]
535     },
536     {
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"
542       },
543       "gl_vendor": {
544         "op": "beginwith",
545         "value": "Qualcomm"
546       },
547       "features": [
548         "use_virtualized_gl_contexts"
549       ]
550     },
551     {
552       "id": 39,
553       "cr_bugs": [290391],
554       "description": "Multisampled renderbuffer allocation must be validated on some Macs",
555       "os": {
556         "type": "macosx"
557       },
558       "features": [
559         "validate_multisample_buffer_allocation"
560       ]
561     },
562     {
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"
571         }
572       },
573       "gl_vendor": {
574         "op": "beginwith",
575         "value": "ARM"
576       },
577       "features": [
578         "disable_ext_discard_framebuffer"
579       ]
580     },
581     {
582       "id": 42,
583       "cr_bugs": [290876],
584       "description": "Framebuffer discarding causes flickering on older IMG drivers",
585       "os": {
586         "type": "android"
587       },
588       "gl_vendor": {
589         "op": "beginwith",
590         "value": "Imagination"
591       },
592       "gl_renderer": {
593         "op": "=",
594         "value": "PowerVR SGX 540"
595       },
596       "features": [
597         "disable_ext_discard_framebuffer"
598       ]
599     },
600     {
601       "id": 43,
602       "cr_bugs": [299494],
603       "description": "Framebuffer discarding doesn't accept trivial attachments on Vivante",
604       "os": {
605         "type": "android"
606       },
607       "gl_extensions": {
608         "op": "contains",
609         "value": "GL_VIV_shader_binary"
610       },
611       "features": [
612         "disable_ext_discard_framebuffer"
613       ]
614     },
615     {
616       "id": 44,
617       "cr_bugs": [301988],
618       "description": "Framebuffer discarding causes jumpy scrolling on Mali drivers",
619       "os": {
620         "type": "chromeos"
621       },
622       "features": [
623         "disable_ext_discard_framebuffer"
624       ]
625     },
626     {
627       "id": 45,
628       "cr_bugs": [307751],
629       "description": "Unfold short circuit on Mac OS X",
630       "os": {
631         "type": "macosx"
632       },
633       "features": [
634         "unfold_short_circuit_as_ternary_operation"
635       ]
636     },
637     {
638       "id": 46,
639       "description": "Using D3D11 causes browser crashes on certain Intel GPUs",
640       "cr_bugs": [310808],
641       "os": {
642         "type": "win"
643       },
644       "vendor_id": "0x8086",
645       "features": [
646         "disable_d3d11"
647       ]
648     },
649     {
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"
658         }
659       },
660       "machine_model": {
661         "name": {
662           "op": "=",
663           "value": "MacBookPro"
664         },
665         "version": {
666           "op": "<",
667           "value": "8"
668         }
669       },
670       "gpu_count": {
671         "op": "=",
672         "value": "2"
673       },
674       "features": [
675         "force_discrete_gpu"
676       ]
677     },
678     {
679       "id": 49,
680       "cr_bugs": [309734],
681       "description": "The first draw operation from an idle state is slow",
682       "os": {
683         "type": "android"
684       },
685       "gl_vendor": {
686         "op": "beginwith",
687         "value": "Qualcomm"
688       },
689       "features": [
690         "wake_up_gpu_before_drawing"
691       ]
692     },
693     {
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"
698       },
699       "gl_vendor": {
700         "op": "beginwith",
701         "value": "NVIDIA"
702       },
703       "features": [
704         "release_image_after_use"
705       ]
706     },
707     {
708       "id": 51,
709       "description": "TexSubImage2D() is faster for full uploads on ANGLE",
710       "os": {
711         "type": "win"
712       },
713       "gl_renderer": {
714         "op": "beginwith",
715         "value": "ANGLE"
716       },
717       "features": [
718         "texsubimage2d_faster_than_teximage2d"
719       ]
720     },
721     {
722       "id": 52,
723       "description": "ES3 MSAA is broken on Qualcomm",
724       "os": {
725         "type": "android"
726       },
727       "gl_vendor": {
728         "op": "beginwith",
729         "value": "Qualcomm"
730       },
731       "features": [
732         "disable_multisampling"
733       ]
734     },
735     {
736       "id": 54,
737       "cr_bugs": [124764, 349137],
738       "description": "Clear uniforms before first program use on all platforms",
739       "exceptions": [
740         {
741           "os": {
742             "type": "macosx",
743             "version": {
744               "op": ">=",
745               "value": "10.9"
746             }
747           }
748         }
749       ],
750       "features": [
751         "clear_uniforms_before_first_program_use"
752       ]
753     },
754     {
755       "id": 55,
756       "cr_bugs": [333885],
757       "description": "Mesa drivers in Linux handle varyings without static use incorrectly",
758       "os": {
759         "type": "linux"
760       },
761       "driver_vendor": {
762         "op": "=",
763         "value": "Mesa"
764       },
765       "features": [
766         "count_all_in_varyings_packing"
767       ]
768     },
769     {
770       "id": 56,
771       "cr_bugs": [333885],
772       "description": "Mesa drivers in ChromeOS handle varyings without static use incorrectly",
773       "os": {
774         "type": "chromeos"
775       },
776       "driver_vendor": {
777         "op": "=",
778         "value": "Mesa"
779       },
780       "features": [
781         "count_all_in_varyings_packing"
782       ]
783     },
784     {
785       "id": 57,
786       "cr_bugs": [322760],
787       "description": "Mac drivers handle varyings without static use incorrectly",
788       "os": {
789         "type": "macosx"
790       },
791       "features": [
792         "init_varyings_without_static_use"
793       ]
794     },
795     {
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"
804         }
805       },
806       "vendor_id": "0x1002",
807       "features": [
808         "disable_multisampling"
809       ]
810     },
811     {
812       "id": 59,
813       "description": "Multisampling is buggy in Intel IvyBridge",
814       "cr_bugs": [116370],
815       "os": {
816         "type": "linux"
817       },
818       "vendor_id": "0x8086",
819       "device_id": ["0x0152", "0x0156", "0x015a", "0x0162", "0x0166"],
820       "features": [
821         "disable_multisampling"
822       ]
823     },
824     {
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"
833         }
834       },
835       "features": [
836         "disable_multisampling"
837       ]
838     },
839     {
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"
848         }
849       },
850       "features": [
851         "unroll_for_loop_with_sampler_array_index"
852       ]
853     },
854     {
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"
860       },
861       "vendor_id": "0x1002",
862       "features": [
863         "init_texture_max_anisotropy"
864       ]
865     },
866     {
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"
872       },
873       "vendor_id": "0x10de",
874       "features": [
875         "init_vertex_attributes"
876       ]
877     },
878     {
879       "id": 66,
880       "description": "Force glFinish() after compositing on older OS X on Intel GPU",
881       "cr_bugs": [123409],
882       "os": {
883         "type": "macosx",
884         "version": {
885           "op": "<=",
886           "value": "10.7"
887         }
888       },
889       "vendor_id": "0x8086",
890       "multi_gpu_category": "active",
891       "features": [
892         "force_gl_finish_after_compositing"
893       ]
894     },
895     {
896       "id": 67,
897       "description": "Force glFinish() after compositing on Mavericks on Intel GPU",
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"
905         }
906       },
907       "vendor_id": "0x8086",
908       "multi_gpu_category": "active",
909       "features": [
910         "force_gl_finish_after_compositing"
911       ]
912     },
913     {
914       "id": 68,
915       "description": "Disable partial swaps on linux drivers",
916       "cr_bugs": [339493],
917       "os": {
918         "type": "linux"
919       },
920       "features": [
921         "disable_post_sub_buffers_for_onscreen_surfaces"
922       ]
923     },
924     {
925       "id": 71,
926       "description": "Vivante's support of OES_standard_derivatives is buggy",
927       "cr_bugs": [368005],
928       "os": {
929         "type": "android"
930       },
931       "gl_extensions": {
932         "op": "contains",
933         "value": "GL_VIV_shader_binary"
934       },
935       "features": [
936         "disable_oes_standard_derivatives"
937       ]
938     }
939   ]
940 }
941
942 );  // LONG_STRING_CONST macro
943
944 }  // namespace gpu