• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{
2    "description": [
3        "Copyright 2022 The ANGLE Project Authors. All rights reserved.",
4        "Use of this source code is governed by a BSD-style license that can be",
5        "found in the LICENSE file.",
6        "",
7        "gl_features.json: angle::Features and workarounds for GL driver bugs and other issues."
8    ],
9    "features": [
10        {
11            "name": "avoid_1_bit_alpha_texture_formats",
12            "category": "Workarounds",
13            "description": [
14                "Issue with 1-bit alpha framebuffer formats"
15            ]
16        },
17        {
18            "name": "RGBA4_is_not_supported_for_color_rendering",
19            "category": "Workarounds",
20            "description": [
21                "GL_RGBA4 is not color renderable"
22            ]
23        },
24        {
25            "name": "allow_ETC_formats",
26            "category": "Workarounds",
27            "description": [
28                "Enable ETC2/EAC on desktop OpenGL"
29            ]
30        },
31        {
32            "name": "allow_astc_formats",
33            "category": "Workarounds",
34            "description": [
35                "Enable ASTC on desktop OpenGL"
36            ]
37        },
38        {
39            "name": "does_SRGB_clears_on_linear_framebuffer_attachments",
40            "category": "Workarounds",
41            "description": [
42                "Issue clearing framebuffers with linear attachments when GL_FRAMEBUFFER_SRGB is enabled"
43            ]
44        },
45        {
46            "name": "do_while_GLSL_causes_GPU_hang",
47            "category": "Workarounds",
48            "description": [
49                "Some GLSL constructs involving do-while loops cause GPU hangs"
50            ],
51            "issue": "http://crbug.com/644669"
52        },
53        {
54            "name": "vertex_ID_does_not_include_base_vertex",
55            "category": "Workarounds",
56            "description": [
57                "gl_VertexID in GLSL vertex shader doesn't include base vertex value"
58            ]
59        },
60        {
61            "name": "finish_does_not_cause_queries_to_be_available",
62            "category": "Workarounds",
63            "description": [
64                "glFinish doesn't cause all queries to report available result"
65            ]
66        },
67        {
68            "name": "always_call_use_program_after_link",
69            "category": "Workarounds",
70            "description": [
71                "Always call useProgram after a successful link to avoid a driver bug"
72            ],
73            "issue": "http://crbug.com/110263"
74        },
75        {
76            "name": "unpack_overlapping_rows_separately_unpack_buffer",
77            "category": "Workarounds",
78            "description": [
79                "In the case of unpacking from a pixel unpack buffer, unpack overlapping rows row by row"
80            ]
81        },
82        {
83            "name": "pack_overlapping_rows_separately_pack_buffer",
84            "category": "Workarounds",
85            "description": [
86                "In the case of packing to a pixel pack buffer, pack overlapping rows row by row"
87            ]
88        },
89        {
90            "name": "initialize_current_vertex_attributes",
91            "category": "Workarounds",
92            "description": [
93                "During initialization, assign the current vertex attributes to the spec-mandated defaults"
94            ]
95        },
96        {
97            "name": "emulate_abs_int_function",
98            "category": "Workarounds",
99            "description": [
100                "abs(i) where i is an integer returns unexpected result"
101            ],
102            "issue": "http://crbug.com/642227"
103        },
104        {
105            "name": "add_and_true_to_loop_condition",
106            "category": "Workarounds",
107            "description": [
108                "Calculation of loop conditions in for and while loop has bug"
109            ]
110        },
111        {
112            "name": "unpack_last_row_separately_for_padding_inclusion",
113            "category": "Workarounds",
114            "description": [
115                "When uploading textures from an unpack buffer, some drivers count an extra row padding"
116            ],
117            "issue": "http://anglebug.com/1512"
118        },
119        {
120            "name": "pack_last_row_separately_for_padding_inclusion",
121            "category": "Workarounds",
122            "description": [
123                "When uploading textures from an pack buffer, some drivers count an extra row padding"
124            ],
125            "issue": "http://anglebug.com/1512"
126        },
127        {
128            "name": "emulate_isnan_float",
129            "category": "Workarounds",
130            "description": [
131                "Using isnan() on highp float will get wrong answer"
132            ],
133            "issue": "http://crbug.com/650547"
134        },
135        {
136            "name": "use_unused_blocks_with_standard_or_shared_layout",
137            "category": "Workarounds",
138            "description": [
139                "Unused std140 or shared uniform blocks will be treated as inactive"
140            ]
141        },
142        {
143            "name": "remove_invariant_and_centroid_for_ESSL3",
144            "category": "Workarounds",
145            "description": [
146                "Fix spec difference between GLSL 4.1 or lower and ESSL3"
147            ]
148        },
149        {
150            "name": "rewrite_float_unary_minus_operator",
151            "category": "Workarounds",
152            "description": [
153                "Using '-<float>' will get wrong answer"
154            ],
155            "issue": "http://crbug.com/308366"
156        },
157        {
158            "name": "emulate_atan_2_float",
159            "category": "Workarounds",
160            "description": [
161                "atan(y, x) may return a wrong answer"
162            ],
163            "issue": "http://crbug.com/672380"
164        },
165        {
166            "name": "reapply_UBO_bindings_after_using_binary_program",
167            "category": "Workarounds",
168            "description": [
169                "Some drivers forget about UBO bindings when using program binaries"
170            ],
171            "issue": "http://anglebug.com/1637"
172        },
173        {
174            "name": "emulate_max_vertex_attrib_stride",
175            "category": "Workarounds",
176            "description": [
177                "Some drivers return 0 when MAX_VERTEX_ATTRIB_STRIED queried"
178            ],
179            "issue": "http://anglebug.com/1936"
180        },
181        {
182            "name": "dont_initialize_uninitialized_locals",
183            "category": "Workarounds",
184            "description": [
185                "Initializing uninitialized locals caused odd behavior in a few WebGL 2 tests"
186            ],
187            "issue": "http://anglebug.com/2046"
188        },
189        {
190            "name": "clamp_point_size",
191            "category": "Workarounds",
192            "description": [
193                "The point size range reported from the API is inconsistent with the actual behavior"
194            ]
195        },
196        {
197            "name": "dont_use_loops_to_initialize_variables",
198            "category": "Workarounds",
199            "description": [
200                "For loops used to initialize variables hit native GLSL compiler bugs"
201            ],
202            "issue": "http://crbug.com/809422"
203        },
204        {
205            "name": "clamp_frag_depth",
206            "category": "Workarounds",
207            "description": [
208                "gl_FragDepth is not clamped correctly when rendering to a floating point depth buffer"
209            ]
210        },
211        {
212            "name": "rewrite_repeated_assign_to_swizzled",
213            "category": "Workarounds",
214            "description": [
215                "Repeated assignment to swizzled values inside a ",
216                "GLSL user-defined function have incorrect results"
217            ]
218        },
219        {
220            "name": "disable_blend_func_extended",
221            "category": "Workarounds",
222            "description": [
223                "ARB_blend_func_extended does not pass the tests"
224            ],
225            "issue": "http://anglebug.com/1085"
226        },
227        {
228            "name": "unsized_SRGB_read_pixels_doesnt_transform",
229            "category": "Workarounds",
230            "description": [
231                "Drivers returning raw sRGB values instead of linearized values when calling glReadPixels ",
232                "on unsized sRGB texture formats"
233            ],
234            "issue": "http://crbug.com/550292 http://crbug.com/565179"
235        },
236        {
237            "name": "query_counter_bits_generates_errors",
238            "category": "Workarounds",
239            "description": [
240                "Drivers generate errors when querying the number of bits in timer queries"
241            ],
242            "issue": "http://anglebug.com/3027"
243        },
244        {
245            "name": "dont_relink_programs_in_parallel",
246            "category": "Workarounds",
247            "description": [
248                "Relinking a program in parallel is buggy"
249            ],
250            "issue": "http://anglebug.com/3045"
251        },
252        {
253            "name": "disable_worker_contexts",
254            "category": "Workarounds",
255            "description": [
256                "Some tests have been seen to fail using worker contexts"
257            ],
258            "issue": "http://crbug.com/849576"
259        },
260        {
261            "name": "limit_webgl_max_texture_size_to_4096",
262            "category": "Workarounds",
263            "description": [
264                "Limit webgl max texture size to 4096 to avoid frequent ",
265                "out-of-memory errors"
266            ],
267            "issue": "http://crbug.com/927470"
268        },
269        {
270            "name": "limit_max_MSAA_samples_to_4",
271            "category": "Workarounds",
272            "description": [
273                "Various rendering bugs have been observed when using higher MSAA counts"
274            ],
275            "issue": "http://crbug.com/797243"
276        },
277        {
278            "name": "allow_clear_for_robust_resource_init",
279            "category": "Workarounds",
280            "description": [
281                "Using glClear for robust resource initialization is buggy on some drivers and leads to ",
282                "texture corruption. Default to data uploads except on MacOS where it is very slow."
283            ],
284            "issue": "https://crbug.com/848952 http://crbug.com/883276"
285        },
286        {
287            "name": "clamp_array_access",
288            "category": "Workarounds",
289            "description": [
290                "Clamp uniform array access to avoid reading invalid memory."
291            ],
292            "issue": "http://anglebug.com/2978"
293        },
294        {
295            "name": "reset_TexImage2D_base_level",
296            "category": "Workarounds",
297            "description": [
298                "Reset texture base level before calling glTexImage2D to ",
299                "work around pixel comparison failure."
300            ],
301            "issue": "https://crbug.com/705865"
302        },
303        {
304            "name": "clear_to_zero_or_one_broken",
305            "category": "Workarounds",
306            "description": [
307                "Clears when the clear color is all zeros or ones do not work."
308            ],
309            "issue": "https://crbug.com/710443"
310        },
311        {
312            "name": "limit_max_3d_array_texture_size_to_1024",
313            "category": "Workarounds",
314            "description": [
315                "Limit max 3d texture size and max array texture layers to 1024 to avoid system hang"
316            ],
317            "issue": "http://crbug.com/927470"
318        },
319        {
320            "name": "adjust_src_dst_region_for_BlitFramebuffer",
321            "category": "Workarounds",
322            "description": [
323                "Many platforms have issues with blitFramebuffer when the parameters are large."
324            ],
325            "issue": "http://crbug.com/830046"
326        },
327        {
328            "name": "clip_src_region_for_BlitFramebuffer",
329            "category": "Workarounds",
330            "description": [
331                "Issues with blitFramebuffer when the parameters don't match the framebuffer size."
332            ],
333            "issue": "http://crbug.com/830046"
334        },
335        {
336            "name": "RGB_DXT1_textures_sample_zero_alpha",
337            "category": "Workarounds",
338            "description": [
339                "Sampling BLACK texels from RGB DXT1 textures returns transparent black on Mac."
340            ],
341            "issue": "http://anglebug.com/3729"
342        },
343        {
344            "name": "unfold_short_circuits",
345            "category": "Workarounds",
346            "description": [
347                "Mac incorrectly executes both sides of && and || expressions when they should ",
348                "short-circuit."
349            ],
350            "issue": "http://anglebug.com/482"
351        },
352        {
353            "name": "emulate_primitive_restart_fixed_index",
354            "category": "Workarounds",
355            "description": [
356                "When GL_PRIMITIVE_RESTART_FIXED_INDEX is not available, emulate it with ",
357                "GL_PRIMITIVE_RESTART and glPrimitiveRestartIndex."
358            ],
359            "issue": "http://anglebug.com/3997"
360        },
361        {
362            "name": "set_primitive_restart_fixed_index_for_draw_arrays",
363            "category": "Workarounds",
364            "description": [
365                "Some drivers discard vertex data in DrawArrays calls when the fixed primitive restart ",
366                "index is within the number of primitives being drawn."
367            ],
368            "issue": "http://anglebug.com/3997"
369        },
370        {
371            "name": "remove_dynamic_indexing_of_swizzled_vector",
372            "category": "Workarounds",
373            "description": [
374                "Dynamic indexing of swizzled l-values doesn't work correctly on various platforms."
375            ],
376            "issue": "http://crbug.com/709351"
377        },
378        {
379            "name": "pre_add_texel_fetch_offsets",
380            "category": "Workarounds",
381            "description": [
382                "Intel Mac drivers mistakenly consider the parameter position of nagative vaule as invalid ",
383                "even if the sum of position and offset is in range, so we need to add workarounds by ",
384                "rewriting texelFetchOffset(sampler, position, lod, offset) into texelFetch(sampler, ",
385                "position + offset, lod)."
386            ],
387            "issue": "http://crbug.com/642605"
388        },
389        {
390            "name": "regenerate_struct_names",
391            "category": "Workarounds",
392            "description": [
393                "All Mac drivers do not handle struct scopes correctly. This workaround overwrites a struct",
394                "name with a unique prefix."
395            ],
396            "issue": "http://crbug.com/403957"
397        },
398        {
399            "name": "read_pixels_using_implementation_color_read_format_for_norm16",
400            "category": "Workarounds",
401            "description": [
402                "Quite some OpenGL ES drivers don't implement readPixels for RGBA/UNSIGNED_SHORT from ",
403                "EXT_texture_norm16 correctly"
404            ],
405            "issue": "http://anglebug.com/4214"
406        },
407        {
408            "name": "flush_before_delete_texture_if_copied_to",
409            "category": "Workarounds",
410            "description": [
411                "Some drivers track CopyTex{Sub}Image texture dependencies incorrectly. Flush",
412                " before glDeleteTextures in this case"
413            ],
414            "issue": "http://anglebug.com/4267"
415        },
416        {
417            "name": "rewrite_row_major_matrices",
418            "category": "Workarounds",
419            "description": [
420                "Rewrite row major matrices in shaders as column major as a driver bug workaround"
421            ],
422            "issue": "http://anglebug.com/2273"
423        },
424        {
425            "name": "disable_draw_buffers_indexed",
426            "category": "Workarounds",
427            "description": [
428                "Disable OES_draw_buffers_indexed extension."
429            ]
430        },
431        {
432            "name": "disable_semaphore_fd",
433            "category": "Workarounds",
434            "description": [
435                "Disable GL_EXT_semaphore_fd extension"
436            ],
437            "issue": "https://crbug.com/1046462"
438        },
439        {
440            "name": "disable_timestamp_queries",
441            "category": "Workarounds",
442            "description": [
443                "Disable GL_EXT_disjoint_timer_query extension"
444            ],
445            "issue": "https://crbug.com/811661"
446        },
447        {
448            "name": "decode_encode_SRGB_for_GenerateMipmap",
449            "category": "Workarounds",
450            "description": [
451                "Decode and encode before generateMipmap for srgb format textures."
452            ],
453            "issue": "http://anglebug.com/4646"
454        },
455        {
456            "name": "emulate_CopyTexImage2D",
457            "category": "Workarounds",
458            "description": [
459                "Replace CopyTexImage2D with TexImage2D + CopyTexSubImage2D."
460            ]
461        },
462        {
463            "name": "emulate_CopyTexImage2D_from_renderbuffers",
464            "category": "Workarounds",
465            "description": [
466                "CopyTexImage2D spuriously returns errors on iOS when copying from renderbuffers."
467            ],
468            "issue": "https://anglebug.com/4674"
469        },
470        {
471            "name": "disable_GPU_switching_support",
472            "category": "Workarounds",
473            "description": [
474                "Disable GPU switching support (use only the low-power GPU) on older MacBook Pros."
475            ],
476            "issue": "https://crbug.com/1091824"
477        },
478        {
479            "name": "disable_native_parallel_compile",
480            "category": "Workarounds",
481            "description": [
482                "Do not use native KHR_parallel_shader_compile even when available."
483            ],
484            "issue": "http://crbug.com/1094869"
485        },
486        {
487            "name": "emulate_pack_skip_rows_and_pack_skip_pixels",
488            "category": "Workarounds",
489            "description": [
490                "GL_PACK_SKIP_ROWS and GL_PACK_SKIP_PIXELS are ignored in Apple's OpenGL driver."
491            ],
492            "issue": "https://anglebug.com/4849"
493        },
494        {
495            "name": "clamp_msc_rate",
496            "category": "Workarounds",
497            "description": [
498                "Some drivers return bogus values for GetMscRate, so we clamp it to 30Hz"
499            ],
500            "issue": "https://crbug.com/1042393"
501        },
502        {
503            "name": "bind_transform_feedback_buffer_before_bind_buffer_range",
504            "category": "Workarounds",
505            "description": [
506                "Bind transform feedback buffers to the generic binding point before calling ",
507                "glBindBufferBase or glBindBufferRange."
508            ],
509            "issue": "https://anglebug.com/5140"
510        },
511        {
512            "name": "disable_sync_control_support",
513            "category": "Workarounds",
514            "description": [
515                "Speculative fix for issues on Linux/Wayland where exposing GLX_OML_sync_control renders ",
516                "Chrome unusable"
517            ],
518            "issue": "https://crbug.com/1137851"
519        },
520        {
521            "name": "keep_buffer_shadow_copy",
522            "category": "Workarounds",
523            "description": [
524                "Maintain a shadow copy of buffer data when the GL API does not permit reading data back."
525            ]
526        },
527        {
528            "name": "set_zero_level_before_GenerateMipmap",
529            "category": "Workarounds",
530            "description": [
531                "glGenerateMipmap fails if the zero texture level is not set on some Mac drivers."
532            ]
533        },
534        {
535            "name": "promote_packed_formats_to_8_bit_per_channel",
536            "category": "Workarounds",
537            "description": [
538                "Packed color formats are buggy on Macs with AMD GPUs"
539            ],
540            "issue": "http://anglebug.com/5469"
541        },
542        {
543            "name": "init_fragment_output_variables",
544            "category": "Workarounds",
545            "description": [
546                "No init gl_FragColor causes context lost"
547            ],
548            "issue": "http://crbug.com/1171371"
549        },
550        {
551            "name": "shift_instanced_array_data_with_offset",
552            "category": "Workarounds",
553            "description": [
554                "glDrawArraysInstanced is buggy on certain new Mac Intel GPUs"
555            ],
556            "issue": "http://crbug.com/1144207"
557        },
558        {
559            "name": "sync_vertex_arrays_to_default",
560            "category": "Workarounds",
561            "description": [
562                "Only use the default VAO because of missing support or driver bugs"
563            ],
564            "issue": "http://anglebug.com/5577"
565        },
566        {
567            "name": "sanitize_AMDGPU_renderer_string",
568            "category": "Workarounds",
569            "description": [
570                "Strip precise kernel and DRM version information from amdgpu renderer strings."
571            ],
572            "issue": "http://crbug.com/1181193"
573        },
574        {
575            "name": "unbind_FBO_before_switching_context",
576            "category": "Workarounds",
577            "description": [
578                "Imagination GL drivers are buggy with context switching."
579            ],
580            "issue": "http://crbug.com/1181193"
581        },
582        {
583            "name": "flush_on_framebuffer_change",
584            "category": "Workarounds",
585            "description": [
586                "Switching framebuffers without a flush can lead to ",
587                "crashes on Intel 9th Generation GPU Macs."
588            ],
589            "issue": "http://crbug.com/1181068"
590        },
591        {
592            "name": "disable_multisampled_render_to_texture",
593            "category": "Workarounds",
594            "description": [
595                "Many drivers have bugs when using GL_EXT_multisampled_render_to_texture"
596            ],
597            "issue": "http://anglebug.com/2894"
598        },
599        {
600            "name": "upload_texture_data_in_chunks",
601            "category": "Workarounds",
602            "description": [
603                "Upload texture data in <120kb chunks to work around Mac driver hangs and crashes."
604            ],
605            "issue": "http://crbug.com/1181068"
606        },
607        {
608            "name": "emulate_immutable_compressed_texture_3D",
609            "category": "Workarounds",
610            "description": [
611                "Use non-immutable texture allocation to work around a driver bug."
612            ],
613            "issue": "https://crbug.com/1060012"
614        },
615        {
616            "name": "emulate_RGB10",
617            "category": "Workarounds",
618            "description": [
619                "Emulate RGB10 support using RGB10_A2."
620            ],
621            "issue": "https://crbug.com/1300575"
622        },
623        {
624            "name": "always_unbind_framebuffer_texture_2D",
625            "category": "Workarounds",
626            "description": [
627                "Force unbind framebufferTexture2D before binding renderbuffer to work around driver bug."
628            ],
629            "issue": "https://anglebug.com/5536"
630        },
631        {
632            "name": "disable_texture_clamp_to_border",
633            "category": "Workarounds",
634            "description": [
635                "Imagination devices generate INVALID_ENUM when setting the texture border color."
636            ],
637            "issue": "https://anglebug.com/7405"
638        },
639        {
640            "name": "pass_highp_to_pack_unorm_snorm_builtins",
641            "category": "Workarounds",
642            "description": [
643                "packUnorm4x8 fails on Pixel 4 if it is not passed a highp vec4."
644            ],
645            "issue": "http://anglebug.com/7527"
646        },
647        {
648            "name": "emulate_clip_distance_state",
649            "category": "Workarounds",
650            "description": [
651                "Some drivers ignore GL_CLIP_DISTANCEi_EXT state."
652            ]
653        },
654        {
655            "name": "bind_complete_framebuffer_for_timer_queries",
656            "category": "Workarounds",
657            "description": [
658                "Some drivers require a complete framebuffer when beginQuery for TimeElapsed or",
659                "Timestampis called."
660            ],
661            "issue": "https://crbug.com/1356053"
662        },
663        {
664            "name": "disable_base_instance_vertex",
665            "category": "Workarounds",
666            "description": [
667                "Some drivers have buggy implementations of glDraw*BaseVertex*."
668            ],
669            "issue": "http://anglebug.com/8172"
670        },
671        {
672            "name": "supports_fragment_shader_interlock_NV",
673            "category": "Features",
674            "description": [
675                "Backend GL context supports NV_fragment_shader_interlock extension"
676            ],
677            "issue": "http://anglebug.com/7279"
678        },
679        {
680            "name": "supports_fragment_shader_ordering_INTEL",
681            "category": "Features",
682            "description": [
683                "Backend GL context supports GL_INTEL_fragment_shader_ordering extension"
684            ],
685            "issue": "http://anglebug.com/7279"
686        },
687        {
688            "name": "supports_fragment_shader_interlock_ARB",
689            "category": "Features",
690            "description": [
691                "Backend GL context supports ARB_fragment_shader_interlock extension"
692            ],
693            "issue": "http://anglebug.com/7279"
694        },
695        {
696            "name": "supports_shader_framebuffer_fetch_EXT",
697            "category": "Features",
698            "description": [
699                "Backend GL context supports EXT_shader_framebuffer_fetch extension"
700            ],
701            "issue": "http://anglebug.com/7279"
702        },
703        {
704            "name": "supports_shader_framebuffer_fetch_non_coherent_EXT",
705            "category": "Features",
706            "description": [
707                "Backend GL context supports EXT_shader_framebuffer_fetch_non_coherent extension"
708            ],
709            "issue": "http://anglebug.com/7279"
710        },
711        {
712            "name": "supports_shader_pixel_local_storage_EXT",
713            "category": "Features",
714            "description": [
715                "Backend GL context supports EXT_shader_pixel_local_storage extension"
716            ],
717            "issue": "http://anglebug.com/7279"
718        },
719        {
720            "name": "disable_clip_control",
721            "category": "Features",
722            "description": [
723                "Some devices genenerate errors when querying the clip control state"
724            ],
725            "issue": "http://crbug.com/1434317"
726        },
727        {
728            "name": "scalarize_vec_and_mat_constructor_args",
729            "category": "Workarounds",
730            "description": [
731                "Rewrite vec/mat constructors to work around driver bugs"
732            ],
733            "issue": "http://crbug.com/1420130"
734        },
735        {
736            "name": "ensure_non_empty_buffer_is_bound_for_draw",
737            "category": "Features",
738            "description": [
739                "Apple OpenGL drivers crash when drawing with a zero-sized buffer bound using a non-zero divisor."
740            ],
741            "issue": "http://crbug.com/1456243"
742        }
743    ]
744}
745