HW Video Decoding - Das ewige Leid

4nanai

Captain
🎅Rätsel-Elite ’24
Registriert
Dez. 2004
Beiträge
3.523
Ich glaube seit gut 10 Jahren muss man sich in der Linux-Welt mit dem Problem herumschlagen, dass HW Video Decoding im Browser entweder gar nicht oder erst durch Umwege funktioniert. Eine Zeit lang war's relativ trivial, doch vor etwa einem halben Jahr gingen die Probleme erneut los. Ich erspare mir an der Stelle die Erzählungen über die Lotterie mit Browser-Flags und manuelle Patches, aber es ist natürlich selbstredend, dass fehlendes HW-Decoding sich vor allem bei der AKkulaufzeit von Laptops bemerkbar macht. Dieser Thread im Arch-Forum spiegelt die Historie dieses Leids wieder: https://bbs.archlinux.org/viewtopic.php?id=244031

Das Problem ist auch relativ tückisch und nicht immer sofort zu erkennen, sondern wird erst offenbart, wenn man tatsächlich ein Video abspielt und die Energie-Aufnahme plötzlich am Rad dreht. Darüber hinaus ist das Problem auch von den verschiedensten Konstellation (Firefox, Chromium, Intel, AMD, Nvidia, X11, Wayland) abhängig.

Beispielsweise bei Chromium-basierten Browsern mit AMD GPU:
chrome://gpu gibt einen vermeintlichen Support von HW-Decoding aus

1701437539665.png


vainfo attestiert ebenfalls ebenfalls einen Support

VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSlice
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSlice
VAProfileHEVCMain : VAEntrypointVLD
VAProfileHEVCMain : VAEntrypointEncSlice
VAProfileHEVCMain10 : VAEntrypointVLD
VAProfileHEVCMain10 : VAEntrypointEncSlice

Die Realität unter chrome://media-internals sieht dann aber so aus:

1701437648933.png



FFmpegVideoDecoder ist CPU-basiertes SW-Decoding. VaapiVideoDecoder müsste dort stehen, wenn HW-Decoding genutzt wird.



Aktueller Fix für AMD (Arch only?) im Dezember 2023:

mesa muss manuell gepatcht werden. Merge Request vom Entwickler des Patches: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26165

Code:
# Download mesa-git PKGBUILD
curl "https://aur.archlinux.org/cgit/aur.git/snapshot/mesa-git.tar.gz" -o mesa-git.tar.gz
tar -xvf mesa-git.tar.gz
cd mesa-git

# Extract and patch sources
makepkg -so
cd src/mesa
curl -L "https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26165.patch" | git am

# Build and install package
cd ../..
makepkg -sei

chromium-flags.conf:
Code:
--use-gl=angle
--use-angle=vulkan
--enable-accelerated-video-decode
--enable-features=Vulkan,VulkanFromANGLE,DefaultANGLEVulkan,VaapiIgnoreDriverChecks,VaapiVideoDecoder,PlatformHEVCDecoderSupport,UseMultiPlaneFormatForHardwareVideo


So funktioniert es aktuell wieder bei mir:

1701438068279.png
 
Zuletzt bearbeitet:
  • Gefällt mir
Reaktionen: Linuxfreakgraz, ufopizza, isiprimax und 3 andere
Wie schaut man bei Firefox nach was genutzt wird, bei mir behauptet er zumindest Hardware decoding zu nutzen...

Support-Informationen zum Codec unter about:support
Codec-NameSoftware-DekodierungHardware-Dekodierung
H264UnterstütztUnterstützt
VP9UnterstütztUnterstützt
VP8UnterstütztUnterstützt
AV1UnterstütztNicht unterstützt
HEVCNicht unterstütztNicht unterstützt
 
  • Gefällt mir
Reaktionen: ropf und Linuxfreakgraz
Ich kenne unter FF leider keine direkte Möglichkeit um das zu sehen. Du könntest mit nvtop nachschauen, ob der GPU Decoder genutzt wird.

1701440797735.png
 
  • Gefällt mir
Reaktionen: xCtrl
Zuletzt bearbeitet:
  • Gefällt mir
Reaktionen: ropf und Linuxfreakgraz
@4nanai Als echter Root geht nur mit Overlayen (oder Privilegierter Container), nicht mit Toolbox da das ein unprivilegierter Container ist.
Ergänzung ()

Overlayed, und jetzt zeigt es eine sehr hohe GPU Last (75%) beim Video Spielen.

PS Funktioniert auch ohne root
 
Zuletzt bearbeitet:
Diese Misere habe ich auch schon durch. Mein Laptop hat eine IGPU und eine AMD GPU. Bei Youtube sah ich dann ab FullHD ein Ruckeln... dann bin ich dem Problem auf die Schliche gekommen.
Mit intel_gpu_top habe ich dann bemerkt, dass der Encoder gar nichts macht.
 
Das Problem besteht übrigens nach wie vor.

Unter Intel-Systemen gibt es scheinbar eine Erfolgsmeldung, aber mit AMD erfolgt nach wie vor ein Fallback auf SW-Decoding, mit dem einhergehenden Stromverbrauch.

Das ist das Jahr des Linux-Desktops 🤡
 
Hm. Ich hab grad mal ein 4k Video bei Youtube mit Firefox getestet und radeontop sagt, meine gpu ackert, während htop sagt, meine Kerne schlummern. Scheint zu funktionieren. Wenn ich Chromium-basierte Browser nutze, dann ist es umgekehrt. ^^
 
Bei mir unter KDE mit Wayland und Firefox musste ich auch nur das vaapi ffmpeg Dingens aktivieren, dann laeuft das.
 
Ich kann tatsächlich bestätigen, dass es mit Firefox funktioniert. Da bin ich bei 5W Package Power, während unter Chromium 21W anliegen.

Der von mir im Dezember zitierte Commit wird im aber offenbar im nächsten Mesa Release eingepflegt und behebt das Problem hoffentlich auch bei anderen Browsern.
 
In Vivaldi(chromium) sieht es bei mir so aus:
Screenshot_20240523_205212.png

Soll man oder kann man irgendwas ändern?
 
D.S.i.u.S. schrieb:
In Vivaldi(chromium) sieht es bei mir so aus:

Der Tab ist leider relativ nichtsaussagend, siehe Startpost. Ob GPU-Decoding tatsächlich funktioniert, sieht man in chromium://media-internals oder in nvtop/s-tui
 
Ich habe es mit Chromium hinbekommen mit meinem alten Syklake i5-6400 - 8k HEVC (200Mit/s) abzuspielen - ruckelt leider etwas. MIt chrome geht es nicht. Der folgende Startaufruf ist entscheidend!

chromium --enable-features=VaapiVideoDecodeLinuxGL

render_id: 7
player_id: 18
created: 2024-09-24 15:48:16.245582 UTC
origin_url: http://localhost:2283/
kFrameUrl: http://localhost:2283/photos/f38202b6-6ebb-45ba-a924-d32c6862e97c
kFrameTitle: Fotos - Immich
url: http://localhost:2283/api/assets/f38202b6-6ebb-45ba-a924-d32c6862e97c/original
kTotalBytes: 0x27c3109e9
kIsStreaming: false
kIsSingleOrigin: true
kIsRangeHeaderSupported: true
pipeline_state: kPlaying
info: Selected video track: []
kAudioTracks: [object Object]
kVideoTracks: [object Object]
kMaxDuration: 406.3059
kStartTime: -0.021333
kBitrate: 210157384
event: kPlay
kRendererName: RendererImpl
kIsAudioDecryptingDemuxerStream: false
kAudioDecoderName: FFmpegAudioDecoder
kIsPlatformAudioDecoder: false
kIsVideoDecryptingDemuxerStream: false
kVideoDecoderName: VaapiVideoDecoder
kIsPlatformVideoDecoder: true
dimensions: 7680x3840
kResolution: 7680x3840
duration: 406.3059
pipeline_buffering_state: [object Object]
video_buffering_state: [object Object]

Ich suche daher einen etwas besseren Prozessor der das ruckelfrei schaftt. Habe mal einen N100 probiert. Da war es noch schlimmer. Das ganze soll in meinen Homeserver auf denen mehrere Docker Container laufen. Jemnad eine Idee?
 
nen 5800X3d hat auch mit 4k kein Problem. Jedenfalls schaue ich regelmäßig 4k Videos auf Youtube. wie kann ich nochmal checken, das der sicher nicht die GPu nutzt?

das genannte tool da sieht mir ja nach nem Nvidia tool aus, das hilft mir nicht, habe radeon.

Edit:
also gerade da das Video:
vp09.00.51.08.01.01.01.01.00 (315) / opus (251)
der codec (youtube) mit 4k.

Danach zumindes ist hwdecode an.. hätte ich nicht gedacht, hab da auch nichts verstellt. nur hab ich keine ahnung ob auch vp9, von den codecs steht da ja nichts. Jedenfalls kein vp9 und kein 264, wonach ich gesucht habe.

Code:
Graphics Feature Status
=======================
*   Canvas: Hardware accelerated
*   Canvas out-of-process rasterization: Enabled
*   Direct Rendering Display Compositor: Disabled
*   Compositing: Hardware accelerated
*   Multiple Raster Threads: Enabled
*   OpenGL: Enabled
*   Rasterization: Hardware accelerated
*   Raw Draw: Disabled
*   Skia Graphite: Disabled
*   Video Decode: Hardware accelerated
*   Video Encode: Software only. Hardware acceleration disabled
*   Vulkan: Disabled
*   WebGL: Hardware accelerated
*   WebGL2: Hardware accelerated
*   WebGPU: Disabled
*   WebNN: Disabled

Version Information
===================
Data exported              : 2024-09-24T16:06:26.247Z
Chrome version             : Chrome/6.9.3447.46
Operating system           : Linux 6.8.12-3-MANJARO
Software rendering list URL: https://chromium.googlesource.com/chromium/src/+/806216373adf481424c46708392fe2871f963c36/gpu/config/software_rendering_list.json
Driver bug list URL        : https://chromium.googlesource.com/chromium/src/+/806216373adf481424c46708392fe2871f963c36/gpu/config/gpu_driver_bug_list.json
ANGLE commit id            : 0515c9dcb9eb
2D graphics backend        : Skia/128 938144dd79c6e3664a3c0bbd019daedddf655ffa
Command Line               : /usr/bin/vivaldi-stable --flag-switches-begin --flag-switches-end --save-page-as-mhtml

Driver Information
==================
Initialization time             : 245
In-process GPU                  : false
Passthrough Command Decoder     : true
Sandboxed                       : false
GPU0                            : VENDOR= 0x1002 [Google Inc. (AMD)], DEVICE=0x744c [ANGLE (AMD, AMD Radeon RX 7900 XT (radeonsi navi31 LLVM 18.1.8), OpenGL 4.6 (Core Profile) Mesa 24.1.6-arch1.1)], DRIVER_VENDOR=Mesa, DRIVER_VERSION=24.1.6 *ACTIVE*
Optimus                         : false
AMD switchable                  : false
Pixel shader version            : 1.00
Vertex shader version           : 1.00
Max. MSAA samples               : 8
Machine model name              :
Machine model version           :
GL implementation parts         : (gl=egl-angle,angle=opengl)
Display type                    : ANGLE_OPENGL
GL_VENDOR                       : Google Inc. (AMD)
GL_RENDERER                     : ANGLE (AMD, AMD Radeon RX 7900 XT (radeonsi navi31 LLVM 18.1.8), OpenGL 4.6 (Core Profile) Mesa 24.1.6-arch1.1)
GL_VERSION                      : OpenGL ES 2.0.0 (ANGLE 2.1.23532 git hash: 0515c9dcb9eb)
GL_EXTENSIONS                   : GL_AMD_performance_monitor GL_ANGLE_base_vertex_base_instance GL_ANGLE_base_vertex_base_instance_shader_builtin GL_ANGLE_client_arrays GL_ANGLE_depth_texture GL_ANGLE_framebuffer_blit GL_ANGLE_framebuffer_multisample GL_ANGLE_get_serialized_context_string GL_ANGLE_get_tex_level_parameter GL_ANGLE_instanced_arrays GL_ANGLE_logic_op GL_ANGLE_memory_size GL_ANGLE_multi_draw GL_ANGLE_polygon_mode GL_ANGLE_program_binary_readiness_query GL_ANGLE_program_cache_control GL_ANGLE_provoking_vertex GL_ANGLE_request_extension GL_ANGLE_robust_client_memory GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_ANGLE_texture_external_update GL_ANGLE_texture_rectangle GL_ANGLE_translated_shader_source GL_APPLE_clip_distance GL_ARB_sync GL_CHROMIUM_bind_generates_resource GL_CHROMIUM_bind_uniform_location GL_CHROMIUM_color_buffer_float_rgb GL_CHROMIUM_color_buffer_float_rgba GL_CHROMIUM_copy_texture GL_CHROMIUM_lose_context GL_CHROMIUM_sync_query GL_EXT_base_instance GL_EXT_blend_func_extended GL_EXT_blend_minmax GL_EXT_clear_texture GL_EXT_clip_control GL_EXT_color_buffer_half_float GL_EXT_compressed_ETC1_RGB8_sub_texture GL_EXT_debug_label GL_EXT_debug_marker GL_EXT_depth_clamp GL_EXT_discard_framebuffer GL_EXT_disjoint_timer_query GL_EXT_draw_buffers GL_EXT_draw_elements_base_vertex GL_EXT_float_blend GL_EXT_frag_depth GL_EXT_instanced_arrays GL_EXT_map_buffer_range GL_EXT_memory_object GL_EXT_memory_object_fd GL_EXT_multi_draw_indirect GL_EXT_multisample_compatibility GL_EXT_occlusion_query_boolean GL_EXT_polygon_offset_clamp GL_EXT_read_format_bgra GL_EXT_robustness GL_EXT_sRGB GL_EXT_sRGB_write_control GL_EXT_semaphore GL_EXT_semaphore_fd GL_EXT_shader_texture_lod GL_EXT_shadow_samplers GL_EXT_texture_border_clamp GL_EXT_texture_compression_bptc GL_EXT_texture_compression_dxt1 GL_EXT_texture_compression_rgtc GL_EXT_texture_compression_s3tc_srgb GL_EXT_texture_filter_anisotropic GL_EXT_texture_format_BGRA8888 GL_EXT_texture_mirror_clamp_to_edge GL_EXT_texture_norm16 GL_EXT_texture_rg GL_EXT_texture_sRGB_decode GL_EXT_texture_storage GL_EXT_texture_type_2_10_10_10_REV GL_EXT_unpack_subimage GL_KHR_blend_equation_advanced GL_KHR_debug GL_KHR_parallel_shader_compile GL_KHR_robustness GL_MESA_framebuffer_flip_y GL_NV_depth_buffer_float2 GL_NV_fence GL_NV_framebuffer_blit GL_NV_pack_subimage GL_NV_pixel_buffer_object GL_NV_polygon_mode GL_NV_read_depth GL_NV_read_stencil GL_OES_compressed_EAC_R11_signed_texture GL_OES_compressed_EAC_R11_unsigned_texture GL_OES_compressed_EAC_RG11_signed_texture GL_OES_compressed_EAC_RG11_unsigned_texture GL_OES_compressed_ETC1_RGB8_texture GL_OES_compressed_ETC2_RGB8_texture GL_OES_compressed_ETC2_RGBA8_texture GL_OES_compressed_ETC2_punchthroughA_RGBA8_texture GL_OES_compressed_ETC2_punchthroughA_sRGB8_alpha_texture GL_OES_compressed_ETC2_sRGB8_alpha8_texture GL_OES_compressed_ETC2_sRGB8_texture GL_OES_depth24 GL_OES_depth32 GL_OES_depth_texture GL_OES_draw_elements_base_vertex GL_OES_element_index_uint GL_OES_fbo_render_mipmap GL_OES_get_program_binary GL_OES_mapbuffer GL_OES_packed_depth_stencil GL_OES_rgb8_rgba8 GL_OES_standard_derivatives GL_OES_surfaceless_context GL_OES_texture_3D GL_OES_texture_border_clamp GL_OES_texture_float GL_OES_texture_float_linear GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_texture_npot GL_OES_vertex_array_object GL_WEBGL_video_texture
Disabled Extensions             : GL_KHR_blend_equation_advanced GL_KHR_blend_equation_advanced_coherent GL_MESA_framebuffer_flip_y
Disabled WebGL Extensions       :
Window system binding vendor    : Google Inc. (AMD)
Window system binding version   : 1.5 (ANGLE 2.1.23532 git hash: 0515c9dcb9eb)
Window system binding extensions: EGL_EXT_create_context_robustness EGL_KHR_create_context EGL_KHR_get_all_proc_addresses EGL_ANGLE_create_context_webgl_compatibility EGL_CHROMIUM_create_context_bind_generates_resource EGL_CHROMIUM_sync_control EGL_ANGLE_sync_control_rate EGL_EXT_pixel_format_float EGL_KHR_surfaceless_context EGL_ANGLE_display_texture_share_group EGL_ANGLE_display_semaphore_share_group EGL_ANGLE_create_context_client_arrays EGL_ANGLE_program_cache_control EGL_ANGLE_robust_resource_initialization EGL_ANGLE_create_context_extensions_enabled EGL_ANDROID_blob_cache EGL_ANDROID_recordable EGL_ANGLE_create_context_backwards_compatible EGL_KHR_create_context_no_error EGL_NOK_texture_from_pixmap EGL_KHR_reusable_sync
XDG_CURRENT_DESKTOP             : KDE
XDG_SESSION_TYPE                : wayland
Ozone platform                  : x11
Direct rendering version        : unknown
Reset notification strategy     : 0x8252
GPU process crash count         : 0
gfx::BufferFormats supported for allocation and texturing: R_8: supported,  R_16: supported,  RG_88: supported,  RG_1616: supported,  BGR_565: supported,  RGBA_4444: supported,  RGBX_8888: supported,  RGBA_8888: supported,  BGRX_8888: supported,  BGRA_1010102: supported,  RGBA_1010102: supported,  BGRA_8888: supported,  RGBA_F16: supported,  YVU_420: not supported,  YUV_420_BIPLANAR: not supported,  YUVA_420_TRIPLANAR: supported,  P010: not supported

Driver Bug Workarounds
======================
*   disable_post_sub_buffers_for_onscreen_surfaces
*   disable_software_to_accelerated_canvas_upgrade
*   enable_webgl_timer_query_extensions
*   exit_on_context_lost
*   force_cube_map_positive_x_allocation
*   force_int_or_srgb_cube_texture_complete
*   disabled_extension_GL_KHR_blend_equation_advanced
*   disabled_extension_GL_KHR_blend_equation_advanced_coherent
*   disabled_extension_GL_MESA_framebuffer_flip_y

Problems Detected
=================
*   WebGPU has been disabled via blocklist or the command line.
    Disabled Features: webgpu

*   Accelerated video encode has been disabled, either via blocklist, about:flags or the command line.
    Disabled Features: video_encode

*   Linux ATI drivers crash on binding incomplete cube map texture to FBO:
    (http://crbug.com/518889)
    Applied Workarounds: force_cube_map_positive_x_allocation

*   Disable partial swaps on Mesa drivers (detected with GL_VERSION):
    (http://crbug.com/339493)
    Applied Workarounds: disable_post_sub_buffers_for_onscreen_surfaces

*   Disable KHR_blend_equation_advanced until cc shaders are updated:
    (http://crbug.com/661715)
    Applied Workarounds: disable(GL_KHR_blend_equation_advanced),
        disable(GL_KHR_blend_equation_advanced_coherent)

*   Software to Accelerated canvas update breaks Linux AMD:
    (http://crbug.com/710029)
    Applied Workarounds: disable_software_to_accelerated_canvas_upgrade

*   Force integer or srgb cube map texture complete on Linux AMD:
    (http://crbug.com/712117)
    Applied Workarounds: force_int_or_srgb_cube_texture_complete

*   Expose WebGL's disjoint_timer_query extensions on platforms with site isolation:
    (http://crbug.com/808744), (http://crbug.com/870491)
    Applied Workarounds: enable_webgl_timer_query_extensions

*   Some drivers can't recover after OUT_OF_MEM and context lost:
    (http://crbug.com/893177)
    Applied Workarounds: exit_on_context_lost

*   Disable GL_MESA_framebuffer_flip_y for desktop GL:
    (http://crbug.com/964010)
    Applied Workarounds: disable(GL_MESA_framebuffer_flip_y)

ANGLE Features
==============
*   allowCompressedFormats (Frontend workarounds): Enabled
    condition: true
    Allow compressed formats

*   alwaysRunLinkSubJobsThreaded (Frontend features) (http://anglebug.com/42266842): Disabled
    If true, sub tasks of the link job are always threaded, regardless of
    GL_KHR_parallel_shader_compile

*   cacheCompiledShader (Frontend features) (http://anglebug.com/42265509): Enabled
    condition: true
    Enable to cache compiled shaders

*   compileJobIsThreadSafe (Frontend features) (http://anglebug.com/41488637): Disabled
    condition: false
    If false, parts of the compile job cannot be parallelized

*   disableAnisotropicFiltering (Frontend workarounds): Disabled
    Disable support for anisotropic filtering

*   disableDrawBuffersIndexed (Frontend features) (http://anglebug.com/42266194): Disabled
    Disable support for OES_draw_buffers_indexed and EXT_draw_buffers_indexed

*   disableProgramBinary (Frontend features) (http://anglebug.com/42263580): Disabled
    condition: IsPowerVrRogue(functions)
    Disable support for GL_OES_get_program_binary

*   disableProgramCaching (Frontend features) (http://anglebug.com/1423136): Disabled
    Disables saving programs to the cache

*   disableProgramCachingForTransformFeedback (Frontend workarounds): Disabled
    condition: !isMesa && isQualcomm
    On some GPUs, program binaries don't contain transform feedback varyings

*   dumpShaderSource (Frontend features) (http://anglebug.com/42266231): Disabled
    Write shader source to temp directory

*   dumpTranslatedShaders (Frontend features) (http://anglebug.com/40644912): Disabled
    Write translated shaders to temp directory

*   emulatePixelLocalStorage (Frontend features) (http://anglebug.com/40096838): Enabled
    condition: true
    Emulate ANGLE_shader_pixel_local_storage using shader images

*   enableCaptureLimits (Frontend features) (http://anglebug.com/42264287): Disabled
    Set the context limits like frame capturing was enabled

*   enableProgramBinaryForCapture (Frontend features) (http://anglebug.com/42264193): Disabled
    Even if FrameCapture is enabled, enable GL_OES_get_program_binary

*   enableShaderSubstitution (Frontend workarounds) (http://anglebug.com/42266232): Disabled
    Check the filesystem for shaders to use instead of those provided through
    glShaderSource

*   enableTranslatedShaderSubstitution (Frontend workarounds) (http://anglebug.com/40644912): Disabled
    Check the filesystem for translated shaders to use instead of the shader
    translator's

*   forceDepthAttachmentInitOnClear (Frontend workarounds) (https://anglebug.com/42265720): Disabled
    Force depth attachment initialization on clear ops

*   forceFlushAfterDrawcallUsingShadowmap (Frontend workarounds) (https://issuetracker.google.com/349489248): Disabled
    Force flush after drawcall use shadow map for intel device.

*   forceGlErrorChecking (Frontend features) (https://issuetracker.google.com/220069903): Disabled
    Force GL error checking (i.e. prevent applications from disabling error
    checking

*   forceInitShaderVariables (Frontend features): Disabled
    Force-enable shader variable initialization

*   forceMinimumMaxVertexAttributes (Frontend features): Disabled
    condition: false
    Force the minimum GL_MAX_VERTEX_ATTRIBS that the context's client version
    allows.

*   forceRobustResourceInit (Frontend features) (http://anglebug.com/42264571): Disabled
    Force-enable robust resource init

*   linkJobIsThreadSafe (Frontend features) (http://anglebug.com/41488637): Disabled
    condition: false
    If false, parts of the link job cannot be parallelized

*   loseContextOnOutOfMemory (Frontend workarounds): Enabled
    condition: true
    Some users rely on a lost context notification if a GL_OUT_OF_MEMORY error
    occurs

*   singleThreadedTextureDecompression (Frontend workarounds): Disabled
    Disables multi-threaded decompression of compressed texture formats

*   uncurrentEglSurfaceUponSurfaceDestroy (Frontend workarounds) (https://issuetracker.google.com/292285899): Disabled
    Make egl surface uncurrent when calling eglDestroySurface(), if the
    surface is still bound by the context of current render thread

*   RGBA4IsNotSupportedForColorRendering (OpenGL workarounds): Disabled
    condition: functions->standard == STANDARD_GL_DESKTOP && isIntel
    GL_RGBA4 is not color renderable

*   RGBDXT1TexturesSampleZeroAlpha (OpenGL workarounds) (http://anglebug.com/42262386): Disabled
    condition: IsApple()
    Sampling BLACK texels from RGB DXT1 textures returns transparent black on
    Mac.

*   addAndTrueToLoopCondition (OpenGL workarounds): Disabled
    condition: IsApple() && isIntel
    Calculation of loop conditions in for and while loop has bug

*   adjustSrcDstRegionForBlitFramebuffer (OpenGL workarounds) (http://crbug.com/830046): Enabled
    condition: IsLinux() || (IsAndroid() && isNvidia) || (IsWindows() && isNvidia) || (IsApple() && functions->standard == STANDARD_GL_ES)
    Many platforms have issues with blitFramebuffer when the parameters are
    large.

*   allowAstcFormats (OpenGL workarounds): Disabled
    condition: !isMesa || isIntel && (Is9thGenIntel(device) || IsGeminiLake(device) || IsCoffeeLake(device) || Is11thGenIntel(device) || Is12thGenIntel(device))
    Enable ASTC on desktop OpenGL

*   allowClearForRobustResourceInit (OpenGL workarounds) (https://crbug.com/848952 http://crbug.com/883276): Disabled
    condition: IsApple()
    Using glClear for robust resource initialization is buggy on some drivers
    and leads to texture corruption. Default to data uploads except on MacOS
    where it is very slow.

*   allowETCFormats (OpenGL workarounds): Disabled
    condition: isIntel && !IsSandyBridge(device) && !IsIvyBridge(device) && !IsHaswell(device)
    Enable ETC2/EAC on desktop OpenGL

*   alwaysCallUseProgramAfterLink (OpenGL workarounds) (http://crbug.com/110263): Enabled
    condition: true
    Always call useProgram after a successful link to avoid a driver bug

*   alwaysUnbindFramebufferTexture2D (OpenGL workarounds) (https://anglebug.com/42264072): Disabled
    condition: isNvidia && (IsWindows() || IsLinux())
    Force unbind framebufferTexture2D before binding renderbuffer to work
    around driver bug.

*   avoid1BitAlphaTextureFormats (OpenGL workarounds): Enabled
    condition: functions->standard == STANDARD_GL_DESKTOP && isAMD
    Issue with 1-bit alpha framebuffer formats

*   avoidBindFragDataLocation (OpenGL workarounds) (https://anglebug.com/8646): Disabled
    condition: !isMesa && isQualcomm
    Qualcomm drivers fail to link after binding fragment data locations.

*   bgraTexImageFormatsBroken (OpenGL workarounds) (https://anglebug.com/40096376): Disabled
    condition: IsQualcomm(vendor)
    BGRA formats do not appear to be accepted by some qualcomm despite the
    extension being exposed.

*   bindCompleteFramebufferForTimerQueries (OpenGL workarounds) (https://crbug.com/1356053): Disabled
    condition: isMali
    Some drivers require a complete framebuffer when beginQuery for
    TimeElapsed orTimestampis called.

*   bindTransformFeedbackBufferBeforeBindBufferRange (OpenGL workarounds) (https://anglebug.com/42263702): Disabled
    condition: IsApple()
    Bind transform feedback buffers to the generic binding point before
    calling glBindBufferBase or glBindBufferRange.

*   clampArrayAccess (OpenGL workarounds) (http://anglebug.com/40096539): Enabled
    condition: IsAndroid() || isAMD || !functions->hasExtension("GL_KHR_robust_buffer_access_behavior")
    Clamp uniform array access to avoid reading invalid memory.

*   clampFragDepth (OpenGL workarounds): Disabled
    condition: isNvidia
    gl_FragDepth is not clamped correctly when rendering to a floating point
    depth buffer

*   clampMscRate (OpenGL workarounds) (https://crbug.com/1042393): Enabled
    condition: IsLinux() && IsWayland()
    Some drivers return bogus values for GetMscRate, so we clamp it to 30Hz

*   clampPointSize (OpenGL workarounds): Disabled
    condition: IsAndroid() || isNvidia
    The point size range reported from the API is inconsistent with the actual
    behavior

*   clearToZeroOrOneBroken (OpenGL workarounds) (https://crbug.com/710443): Disabled
    condition: IsApple() && isIntel && GetMacOSVersion() < OSVersion(10, 12, 6)
    Clears when the clear color is all zeros or ones do not work.

*   clearsWithGapsNeedFlush (OpenGL workarounds): Disabled
    condition: !isMesa && isQualcomm && qualcommVersion < 490
    Clearing an FBO with multiple attachments may need a flush to avoid race
    conditions

*   clipSrcRegionForBlitFramebuffer (OpenGL workarounds) (http://crbug.com/830046): Enabled
    condition: IsApple() || (IsLinux() && isAMD)
    Issues with blitFramebuffer when the parameters don't match the
    framebuffer size.

*   corruptProgramBinaryForTesting (OpenGL workarounds) (https://anglebug.com/41488638): Disabled
    Corrupt the program binary retrieved from the driver for testing purposes.

*   decodeEncodeSRGBForGenerateMipmap (OpenGL workarounds) (http://anglebug.com/40644730): Disabled
    condition: IsApple()
    Decode and encode before generateMipmap for srgb format textures.

*   disableBaseInstanceVertex (OpenGL workarounds) (http://anglebug.com/42266610): Disabled
    condition: IsMaliValhall(functions)
    Some drivers have buggy implementations of glDraw*BaseVertex*.

*   disableBlendEquationAdvanced (OpenGL workarounds) (https://anglebug.com/42267098): Disabled
    condition: (isIntel && IsWindows()) || IsAdreno4xx(functions) || IsAdreno5xx(functions) || isMali
    Disable GL_KHR_blend_equation_advanced due to various driver issues.

*   disableBlendFuncExtended (OpenGL workarounds) (http://anglebug.com/40644593): Disabled
    condition: IsApple() && isIntel && GetMacOSVersion() < OSVersion(10, 14, 0)
    ARB_blend_func_extended does not pass the tests

*   disableClipControl (OpenGL features) (http://crbug.com/1434317): Disabled
    condition: IsMaliG72OrG76OrG51(functions)
    Some devices genenerate errors when querying the clip control state

*   disableDrawBuffersIndexed (OpenGL workarounds): Disabled
    condition: IsWindows() && isAMD
    Disable OES_draw_buffers_indexed extension.

*   disableGPUSwitchingSupport (OpenGL workarounds) (https://crbug.com/1091824): Disabled
    condition: isDualGPUMacWithNVIDIA
    Disable GPU switching support (use only the low-power GPU) on older
    MacBook Pros.

*   disableMultisampledRenderToTexture (OpenGL workarounds) (http://anglebug.com/40096530): Disabled
    condition: isAdreno4xxOnAndroidLessThan51 || isAdreno4xxOnAndroid70 || isAdreno5xxOnAndroidLessThan70 || isAdreno5xxOnAndroid71 || isLinuxVivante || isWindowsNVIDIA
    Many drivers have bugs when using GL_EXT_multisampled_render_to_texture

*   disableNativeParallelCompile (OpenGL workarounds) (http://crbug.com/1094869): Disabled
    condition: isTSANBuild && IsLinux() && isNvidia
    Do not use native KHR_parallel_shader_compile even when available.

*   disableRenderSnorm (OpenGL workarounds) (https://anglebug.com/42266745): Disabled
    condition: isMesa && (mesaVersion < (std::array<int, 3>{21, 3, 0}) || (mesaVersion < (std::array<int, 3>{23, 3, 0}) && functions->standard == STANDARD_GL_ES))
    Disable EXT_render_snorm extension.

*   disableSemaphoreFd (OpenGL workarounds) (https://crbug.com/1046462): Disabled
    condition: IsLinux() && isAMD && isMesa && mesaVersion < (std::array<int, 3>{19, 3, 5})
    Disable GL_EXT_semaphore_fd extension

*   disableSyncControlSupport (OpenGL workarounds) (https://crbug.com/1137851): Disabled
    condition: IsLinux() && isIntel && isMesa && mesaVersion[0] == 20
    Speculative fix for issues on Linux/Wayland where exposing
    GLX_OML_sync_control renders Chrome unusable

*   disableTextureClampToBorder (OpenGL workarounds) (https://anglebug.com/42265877): Disabled
    condition: false
    Imagination devices generate INVALID_ENUM when setting the texture border
    color.

*   disableTextureMirrorClampToEdge (OpenGL workarounds) (https://anglebug.com/42266748): Disabled
    condition: functions->standard == STANDARD_GL_ES && isMesa && mesaVersion < (std::array<int, 3>{23, 1, 7})
    Disable EXT_texture_mirror_clamp_to_edge extension.

*   disableTiledRendering (OpenGL workarounds) (http://skbug.com/9491 https://github.com/flutter/flutter/issues/47164 https://github.com/flutter/flutter/issues/47804): Disabled
    condition: missingTilingEntryPoints || IsAdreno3xx(functions)
    Disable QCOM_tiled_rendering on devices with rendering artifacts or which
    improperly expose the extension.

*   disableTimestampQueries (OpenGL workarounds) (https://crbug.com/811661): Disabled
    condition: (IsLinux() && isVMWare) || (IsAndroid() && isNvidia) || (IsAndroid() && GetAndroidSDKVersion() < 27 && IsAdreno5xxOrOlder(functions)) || (!isMesa && IsMaliT8xxOrOlder(functions)) || (!isMesa && IsMaliG31OrOlder(functions))
    Disable GL_EXT_disjoint_timer_query extension

*   doWhileGLSLCausesGPUHang (OpenGL workarounds) (http://crbug.com/644669): Disabled
    condition: IsApple() && functions->standard == STANDARD_GL_DESKTOP && GetMacOSVersion() < OSVersion(10, 11, 0)
    Some GLSL constructs involving do-while loops cause GPU hangs

*   doesSRGBClearsOnLinearFramebufferAttachments (OpenGL workarounds): Enabled
    condition: isIntel || isAMD
    Issue clearing framebuffers with linear attachments when
    GL_FRAMEBUFFER_SRGB is enabled

*   dontInitializeUninitializedLocals (OpenGL workarounds) (http://anglebug.com/40096454): Disabled
    condition: !isMesa && isQualcomm
    Initializing uninitialized locals caused odd behavior in a few WebGL 2
    tests

*   dontUseLoopsToInitializeVariables (OpenGL workarounds) (http://crbug.com/809422): Disabled
    condition: (!isMesa && isQualcomm) || (isIntel && IsApple())
    For loops used to initialize variables hit native GLSL compiler bugs

*   emulateAbsIntFunction (OpenGL workarounds) (http://crbug.com/642227): Disabled
    condition: IsApple() && isIntel
    abs(i) where i is an integer returns unexpected result

*   emulateAtan2Float (OpenGL workarounds) (http://crbug.com/672380): Disabled
    condition: isNvidia
    atan(y, x) may return a wrong answer

*   emulateClipDistanceState (OpenGL workarounds): Disabled
    condition: isQualcomm
    Some drivers ignore GL_CLIP_DISTANCEi_EXT state.

*   emulateClipOrigin (OpenGL workarounds): Disabled
    condition: !isMesa && isQualcomm && qualcommVersion < 490 && functions->hasGLESExtension("GL_EXT_clip_control")
    Some drivers incorrectly apply GL_CLIP_ORIGIN_EXT state.

*   emulateCopyTexImage2D (OpenGL workarounds): Disabled
    condition: isApple
    Replace CopyTexImage2D with TexImage2D + CopyTexSubImage2D.

*   emulateCopyTexImage2DFromRenderbuffers (OpenGL workarounds) (https://anglebug.com/42263273): Disabled
    condition: IsApple() && functions->standard == STANDARD_GL_ES && !(isAMD && IsWindows())
    CopyTexImage2D spuriously returns errors on iOS when copying from
    renderbuffers.

*   emulateImmutableCompressedTexture3D (OpenGL workarounds) (https://crbug.com/1060012): Disabled
    condition: isQualcomm
    Use non-immutable texture allocation to work around a driver bug.

*   emulateIsnanFloat (OpenGL workarounds) (http://crbug.com/650547): Disabled
    condition: isIntel && IsApple() && IsSkylake(device) && GetMacOSVersion() < OSVersion(10, 13, 2)
    Using isnan() on highp float will get wrong answer

*   emulateMaxVertexAttribStride (OpenGL workarounds) (http://anglebug.com/42260722): Enabled
    condition: IsLinux() && functions->standard == STANDARD_GL_DESKTOP && isAMD
    Some drivers return 0 when MAX_VERTEX_ATTRIB_STRIED queried

*   emulatePackSkipRowsAndPackSkipPixels (OpenGL workarounds) (https://anglebug.com/40096712): Disabled
    condition: IsApple()
    GL_PACK_SKIP_ROWS and GL_PACK_SKIP_PIXELS are ignored in Apple's OpenGL
    driver.

*   emulatePrimitiveRestartFixedIndex (OpenGL workarounds) (http://anglebug.com/40096648): Disabled
    condition: functions->standard == STANDARD_GL_DESKTOP && functions->isAtLeastGL(gl::Version(3, 1)) && !functions->isAtLeastGL(gl::Version(4, 3))
    When GL_PRIMITIVE_RESTART_FIXED_INDEX is not available, emulate it with
    GL_PRIMITIVE_RESTART and glPrimitiveRestartIndex.

*   emulateRGB10 (OpenGL workarounds) (https://crbug.com/1300575): Enabled
    condition: functions->standard == STANDARD_GL_DESKTOP
    Emulate RGB10 support using RGB10_A2.

*   ensureNonEmptyBufferIsBoundForDraw (OpenGL features) (http://crbug.com/1456243): Disabled
    condition: IsApple() || IsAndroid()
    Apple OpenGL drivers crash when drawing with a zero-sized buffer bound
    using a non-zero divisor.

*   explicitFragmentLocations (OpenGL workarounds) (https://anglebug.com/42266740): Disabled
    condition: isQualcomm
    Always write explicit location layout qualifiers for fragment outputs.

*   finishDoesNotCauseQueriesToBeAvailable (OpenGL workarounds): Disabled
    condition: functions->standard == STANDARD_GL_DESKTOP && isNvidia
    glFinish doesn't cause all queries to report available result

*   flushBeforeDeleteTextureIfCopiedTo (OpenGL workarounds) (http://anglebug.com/40644715): Disabled
    condition: IsApple() && isIntel
    Some drivers track CopyTex{Sub}Image texture dependencies incorrectly.
    Flush before glDeleteTextures in this case

*   flushOnFramebufferChange (OpenGL workarounds) (http://crbug.com/1181068): Disabled
    condition: IsApple() && Has9thGenIntelGPU(systemInfo)
    Switching framebuffers without a flush can lead to crashes on Intel 9th
    Generation GPU Macs.

*   initFragmentOutputVariables (OpenGL workarounds) (http://crbug.com/1171371): Disabled
    condition: IsAdreno42xOr3xx(functions)
    No init gl_FragColor causes context lost

*   initializeCurrentVertexAttributes (OpenGL workarounds): Disabled
    condition: isNvidia
    During initialization, assign the current vertex attributes to the
    spec-mandated defaults

*   keepBufferShadowCopy (OpenGL workarounds): Disabled
    condition: !CanMapBufferForRead(functions)
    Maintain a shadow copy of buffer data when the GL API does not permit
    reading data back.

*   limitMax3dArrayTextureSizeTo1024 (OpenGL workarounds) (http://crbug.com/927470): Disabled
    condition: isIntelLinuxLessThanKernelVersion5
    Limit max 3d texture size and max array texture layers to 1024 to avoid
    system hang

*   limitMaxMSAASamplesTo4 (OpenGL workarounds) (http://crbug.com/797243): Disabled
    condition: IsAndroid() || (IsApple() && (isIntel || isAMD || isNvidia))
    Various rendering bugs have been observed when using higher MSAA counts

*   limitWebglMaxTextureSizeTo4096 (OpenGL workarounds) (http://crbug.com/927470): Disabled
    condition: isAndroidLessThan14 || isIntelLinuxLessThanKernelVersion5
    Limit webgl max texture size to 4096 to avoid frequent out-of-memory
    errors

*   limitWebglMaxTextureSizeTo8192 (OpenGL workarounds) (http://anglebug.com/42267045): Disabled
    condition: isAndroidAtLeast14
    Limit webgl max texture size to 8192 to avoid frequent out-of-memory
    errors

*   packLastRowSeparatelyForPaddingInclusion (OpenGL workarounds) (http://anglebug.com/42260492): Disabled
    condition: IsApple() || isNvidia
    When uploading textures from an pack buffer, some drivers count an extra
    row padding

*   packOverlappingRowsSeparatelyPackBuffer (OpenGL workarounds): Disabled
    condition: isNvidia
    In the case of packing to a pixel pack buffer, pack overlapping rows row
    by row

*   passHighpToPackUnormSnormBuiltins (OpenGL workarounds) (http://anglebug.com/42265995): Disabled
    condition: isQualcomm
    packUnorm4x8 fails on Pixel 4 if it is not passed a highp vec4.

*   preAddTexelFetchOffsets (OpenGL workarounds) (http://crbug.com/642605): Disabled
    condition: IsApple() && isIntel
    Intel Mac drivers mistakenly consider the parameter position of nagative
    vaule as invalid even if the sum of position and offset is in range, so we
    need to add workarounds by rewriting texelFetchOffset(sampler, position,
    lod, offset) into texelFetch(sampler, position + offset, lod).

*   preTransformTextureCubeGradDerivatives (OpenGL workarounds): Disabled
    condition: isApple
    Apply a vendor-specific transformation to explicit cubemap derivatives

*   promotePackedFormatsTo8BitPerChannel (OpenGL workarounds) (http://anglebug.com/42264008): Disabled
    condition: IsApple() && hasAMD
    Packed color formats are buggy on Macs with AMD GPUs

*   queryCounterBitsGeneratesErrors (OpenGL workarounds) (http://anglebug.com/42261713): Disabled
    condition: IsNexus5X(vendor, device)
    Drivers generate errors when querying the number of bits in timer queries

*   readPixelsUsingImplementationColorReadFormatForNorm16 (OpenGL workarounds) (http://anglebug.com/40096661): Disabled
    condition: !isIntel && functions->standard == STANDARD_GL_ES && functions->isAtLeastGLES(gl::Version(3, 1)) && functions->hasGLESExtension("GL_EXT_texture_norm16")
    Quite some OpenGL ES drivers don't implement readPixels for
    RGBA/UNSIGNED_SHORT from EXT_texture_norm16 correctly

*   reapplyUBOBindingsAfterUsingBinaryProgram (OpenGL workarounds) (http://anglebug.com/42260591): Enabled
    condition: isAMD || IsAndroid()
    Some drivers forget about UBO bindings when using program binaries

*   regenerateStructNames (OpenGL workarounds) (http://crbug.com/403957): Disabled
    condition: IsApple()
    All Mac drivers do not handle struct scopes correctly. This workaround
    overwrites a structname with a unique prefix.

*   removeDynamicIndexingOfSwizzledVector (OpenGL workarounds) (http://crbug.com/709351): Disabled
    condition: IsApple() || IsAndroid() || IsWindows()
    Dynamic indexing of swizzled l-values doesn't work correctly on various
    platforms.

*   removeInvariantAndCentroidForESSL3 (OpenGL workarounds): Enabled
    condition: functions->isAtMostGL(gl::Version(4, 1)) || (functions->standard == STANDARD_GL_DESKTOP && isAMD)
    Fix spec difference between GLSL 4.1 or lower and ESSL3

*   resetTexImage2DBaseLevel (OpenGL workarounds) (https://crbug.com/705865): Disabled
    condition: IsApple() && isIntel && GetMacOSVersion() >= OSVersion(10, 12, 4)
    Reset texture base level before calling glTexImage2D to work around pixel
    comparison failure.

*   resyncDepthRangeOnClipControl (OpenGL workarounds) (https://anglebug.com/42266811): Disabled
    condition: !isMesa && isQualcomm
    Resync depth range to apply clip control updates.

*   rewriteFloatUnaryMinusOperator (OpenGL workarounds) (http://crbug.com/308366): Disabled
    condition: IsApple() && isIntel && GetMacOSVersion() < OSVersion(10, 12, 0)
    Using '-<float>' will get wrong answer

*   rewriteRepeatedAssignToSwizzled (OpenGL workarounds): Disabled
    condition: isNvidia
    Repeated assignment to swizzled values inside a GLSL user-defined function
    have incorrect results

*   rewriteRowMajorMatrices (OpenGL workarounds) (http://anglebug.com/40096480): Disabled
    condition: false
    Rewrite row major matrices in shaders as column major as a driver bug
    workaround

*   sanitizeAMDGPURendererString (OpenGL workarounds) (http://crbug.com/1181193): Enabled
    condition: IsLinux() && hasAMD
    Strip precise kernel and DRM version information from amdgpu renderer
    strings.

*   scalarizeVecAndMatConstructorArgs (OpenGL workarounds) (http://crbug.com/1420130): Disabled
    condition: isMali
    Rewrite vec/mat constructors to work around driver bugs

*   setPrimitiveRestartFixedIndexForDrawArrays (OpenGL workarounds) (http://anglebug.com/40096648): Disabled
    condition: features->emulatePrimitiveRestartFixedIndex.enabled && IsApple() && isIntel
    Some drivers discard vertex data in DrawArrays calls when the fixed
    primitive restart index is within the number of primitives being drawn.

*   setZeroLevelBeforeGenerateMipmap (OpenGL workarounds): Disabled
    condition: IsApple()
    glGenerateMipmap fails if the zero texture level is not set on some Mac
    drivers.

*   shiftInstancedArrayDataWithOffset (OpenGL workarounds) (http://crbug.com/1144207): Disabled
    condition: IsApple() && IsIntel(vendor) && !IsHaswell(device)
    glDrawArraysInstanced is buggy on certain new Mac Intel GPUs

*   srgbBlendingBroken (OpenGL workarounds) (https://crbug.com/40488750): Disabled
    condition: IsQualcomm(vendor)
    SRGB blending does not appear to work correctly on the some Qualcomm
    devices. Writing to an SRGB framebuffer with GL_FRAMEBUFFER_SRGB enabled
    and then reading back returns the same value. Disabling
    GL_FRAMEBUFFER_SRGB will then convert in the wrong direction.

*   supportsFragmentShaderInterlockARB (OpenGL features) (http://anglebug.com/40096838): Disabled
    condition: functions->isAtLeastGL(gl::Version(4, 5)) && functions->hasGLExtension("GL_ARB_fragment_shader_interlock")
    Backend GL context supports ARB_fragment_shader_interlock extension

*   supportsFragmentShaderInterlockNV (OpenGL features) (http://anglebug.com/40096838): Disabled
    condition: functions->isAtLeastGL(gl::Version(4, 3)) && functions->hasGLExtension("GL_NV_fragment_shader_interlock")
    Backend GL context supports NV_fragment_shader_interlock extension

*   supportsFragmentShaderOrderingINTEL (OpenGL features) (http://anglebug.com/40096838): Disabled
    condition: functions->isAtLeastGL(gl::Version(4, 4)) && functions->hasGLExtension("GL_INTEL_fragment_shader_ordering")
    Backend GL context supports GL_INTEL_fragment_shader_ordering extension

*   supportsShaderFramebufferFetchEXT (OpenGL features) (http://anglebug.com/40096838): Disabled
    condition: functions->hasGLESExtension("GL_EXT_shader_framebuffer_fetch")
    Backend GL context supports EXT_shader_framebuffer_fetch extension

*   supportsShaderFramebufferFetchNonCoherentEXT (OpenGL features) (http://anglebug.com/40096838): Disabled
    condition: functions->hasGLESExtension("GL_EXT_shader_framebuffer_fetch_non_coherent")
    Backend GL context supports EXT_shader_framebuffer_fetch_non_coherent
    extension

*   supportsShaderPixelLocalStorageEXT (OpenGL features) (http://anglebug.com/40096838): Disabled
    condition: functions->hasGLESExtension("GL_EXT_shader_pixel_local_storage")
    Backend GL context supports EXT_shader_pixel_local_storage extension

*   syncVertexArraysToDefault (OpenGL workarounds) (http://anglebug.com/40096758): Disabled
    condition: !nativegl::SupportsVertexArrayObjects(functions)
    Only use the default VAO because of missing support or driver bugs

*   unbindFBOBeforeSwitchingContext (OpenGL workarounds) (http://crbug.com/1181193): Disabled
    condition: IsPowerVR(vendor)
    Imagination GL drivers are buggy with context switching.

*   unfoldShortCircuits (OpenGL workarounds) (http://anglebug.com/42263407): Disabled
    condition: IsApple()
    Mac incorrectly executes both sides of && and || expressions when they
    should short-circuit.

*   unpackLastRowSeparatelyForPaddingInclusion (OpenGL workarounds) (http://anglebug.com/42260492): Disabled
    condition: IsApple() || isNvidia
    When uploading textures from an unpack buffer, some drivers count an extra
    row padding

*   unpackOverlappingRowsSeparatelyUnpackBuffer (OpenGL workarounds): Disabled
    condition: isNvidia
    In the case of unpacking from a pixel unpack buffer, unpack overlapping
    rows row by row

*   unsizedSRGBReadPixelsDoesntTransform (OpenGL workarounds) (http://crbug.com/550292 http://crbug.com/565179): Disabled
    condition: !isMesa && isQualcomm
    Drivers returning raw sRGB values instead of linearized values when
    calling glReadPixels on unsized sRGB texture formats

*   uploadTextureDataInChunks (OpenGL workarounds) (http://crbug.com/1181068): Disabled
    condition: IsApple()
    Upload texture data in <120kb chunks to work around Mac driver hangs and
    crashes.

*   useIntermediateTextureForGenerateMipmap (OpenGL workarounds) (https://crbug.com/40279678): Disabled
    condition: IsPixel7OrPixel8(functions)
    Some drivers lose context when repeatedly generating mipmaps on textures
    that were used as framebuffers.

*   useUnusedBlocksWithStandardOrSharedLayout (OpenGL workarounds): Enabled
    condition: (IsApple() && functions->standard == STANDARD_GL_DESKTOP) || (IsLinux() && isAMD)
    Unused std140 or shared uniform blocks will be treated as inactive

*   vertexIDDoesNotIncludeBaseVertex (OpenGL workarounds): Disabled
    condition: IsApple() && isAMD
    gl_VertexID in GLSL vertex shader doesn't include base vertex value

Dawn Info
=========

<Discrete GPU>  Vulkan backend - AMD Radeon RX 7900 XT (RADV NAVI31)
--------------------------------------------------------------------

[WebGPU Status]
---------------
*   Available

[Adapter Supported Features]
----------------------------
*   depth-clip-control
*   depth32float-stencil8
*   timestamp-query
*   texture-compression-bc
*   indirect-first-instance
*   shader-f16
*   rg11b10ufloat-renderable
*   bgra8unorm-storage
*   float32filterable
*   subgroups
*   subgroups-f16
*   dawn-internal-usages
*   dawn-multi-planar-formats
*   dawn-native
*   implicit-device-synchronization
*   surface-capabilities
*   transient-attachments
*   unorm16texture-formats
*   snorm16texture-formats
*   adapter-properties-memory-heaps
*   adapter-properties-vk
*   format-capabilities
*   drm-format-capabilities
*   norm16texture-formats
*   shared-texture-memory-dma-buf
*   shared-texture-memory-opaque-fd
*   shared-fence-vk-semaphore-opaque-fd
*   shared-fence-vk-semaphore-sync-fd
*   dawn-load-resolve-texture

[Enabled Toggle Names]
----------------------
*   lazy_clear_resource_on_first_use:
    (https://crbug.com/dawn/145):
    Clears resource to zero on first usage. This initializes the resource so
    that no dirty bits from recycled memory is present in the new resource.

*   use_temporary_buffer_in_texture_to_texture_copy:
    (https://crbug.com/dawn/42):
    Split texture-to-texture copy into two copies: copy from source texture
    into a temporary buffer, and copy from the temporary buffer into the
    destination texture when copying between compressed textures that don't
    have block-aligned sizes. This workaround is enabled by default on all
    Vulkan drivers to solve an issue in the Vulkan SPEC about the
    texture-to-texture copies with compressed formats. See #1005
    (https://github.com/KhronosGroup/Vulkan-Docs/issues/1005) for more
    details.

*   vulkan_use_d32s8:
    (https://crbug.com/dawn/286):
    Vulkan mandates support of either D32_FLOAT_S8 or D24_UNORM_S8. When
    available the backend will use D32S8 (toggle to on) but setting the toggle
    to off will make it use the D24S8 format when possible.

*   vulkan_use_s8:
    (https://crbug.com/dawn/666):
    Vulkan has a pure stencil8 format but it is not universally available.
    When this toggle is on, the backend will use S8 for the stencil8 format,
    otherwise it will fallback to D32S8 or D24S8.

*   disallow_spirv:
    (https://crbug.com/1214923):
    Disallow usage of SPIR-V completely so that only WGSL is used for shader
    modules. This is useful to prevent a Chromium renderer process from
    successfully sending SPIR-V code to be compiled in the GPU process.

*   use_placeholder_fragment_in_vertex_only_pipeline:
    (https://crbug.com/dawn/136):
    Use a placeholder empty fragment shader in vertex only render pipeline.
    This toggle must be enabled for OpenGL ES backend, the Vulkan Backend, and
    serves as a workaround by default enabled on some Metal devices with Intel
    GPU to ensure the depth result is correct.

*   timestamp_quantization:
    (https://crbug.com/dawn/1800):
    Enable timestamp queries quantization to reduce the precision of timers
    that can be created with timestamp queries.

*   use_vulkan_zero_initialize_workgroup_memory_extension:
    (https://crbug.com/dawn/1302):
    Initialize workgroup memory with OpConstantNull on Vulkan when the Vulkan
    extension VK_KHR_zero_initialize_workgroup_memory is supported.

*   vulkan_use_image_robust_access_2:
    (https://crbug.com/tint/1890):
    Disable Tint robustness transform on textures when VK_EXT_robustness2 is
    supported and robustImageAccess2 == VK_TRUE.

*   vulkan_use_buffer_robust_access_2:
    (https://crbug.com/tint/1890):
    Disable index clamping on the runtime-sized arrays on buffers in Tint
    robustness transform when VK_EXT_robustness2 is supported and
    robustBufferAccess2 == VK_TRUE.

*   use_tint_ir:
    (https://crbug.com/tint/1718):
    Enable the use of the Tint IR for backend codegen.

*   vulkan_use_storage_input_output_16:
    (https://crbug.com/tint/2161):
    Use the StorageInputOutput16 SPIR-V capability for f16 shader IO types
    when the device supports it.

[WebGPU Required Toggles - enabled]
-----------------------------------
*   disallow_spirv:
    (https://crbug.com/1214923):
    Disallow usage of SPIR-V completely so that only WGSL is used for shader
    modules. This is useful to prevent a Chromium renderer process from
    successfully sending SPIR-V code to be compiled in the GPU process.

*   timestamp_quantization:
    (https://crbug.com/dawn/1800):
    Enable timestamp queries quantization to reduce the precision of timers
    that can be created with timestamp queries.

<CPU>  Vulkan backend - SwiftShader Device (Subzero)
----------------------------------------------------

[WebGPU Status]
---------------
*   Blocklisted - crbug.com/40057808: CPU adapters not fully tested or conformant.

[Adapter Supported Features]
----------------------------
*   depth-clip-control
*   depth32float-stencil8
*   timestamp-query
*   texture-compression-bc
*   texture-compression-etc2
*   texture-compression-astc
*   indirect-first-instance
*   rg11b10ufloat-renderable
*   bgra8unorm-storage
*   float32filterable
*   subgroups
*   dawn-internal-usages
*   dawn-multi-planar-formats
*   dawn-native
*   implicit-device-synchronization
*   surface-capabilities
*   transient-attachments
*   unorm16texture-formats
*   adapter-properties-memory-heaps
*   adapter-properties-vk
*   format-capabilities
*   shared-texture-memory-opaque-fd
*   shared-fence-vk-semaphore-opaque-fd
*   dawn-load-resolve-texture

[Enabled Toggle Names]
----------------------
*   lazy_clear_resource_on_first_use:
    (https://crbug.com/dawn/145):
    Clears resource to zero on first usage. This initializes the resource so
    that no dirty bits from recycled memory is present in the new resource.

*   use_temporary_buffer_in_texture_to_texture_copy:
    (https://crbug.com/dawn/42):
    Split texture-to-texture copy into two copies: copy from source texture
    into a temporary buffer, and copy from the temporary buffer into the
    destination texture when copying between compressed textures that don't
    have block-aligned sizes. This workaround is enabled by default on all
    Vulkan drivers to solve an issue in the Vulkan SPEC about the
    texture-to-texture copies with compressed formats. See #1005
    (https://github.com/KhronosGroup/Vulkan-Docs/issues/1005) for more
    details.

*   vulkan_use_d32s8:
    (https://crbug.com/dawn/286):
    Vulkan mandates support of either D32_FLOAT_S8 or D24_UNORM_S8. When
    available the backend will use D32S8 (toggle to on) but setting the toggle
    to off will make it use the D24S8 format when possible.

*   vulkan_use_s8:
    (https://crbug.com/dawn/666):
    Vulkan has a pure stencil8 format but it is not universally available.
    When this toggle is on, the backend will use S8 for the stencil8 format,
    otherwise it will fallback to D32S8 or D24S8.

*   disallow_spirv:
    (https://crbug.com/1214923):
    Disallow usage of SPIR-V completely so that only WGSL is used for shader
    modules. This is useful to prevent a Chromium renderer process from
    successfully sending SPIR-V code to be compiled in the GPU process.

*   use_placeholder_fragment_in_vertex_only_pipeline:
    (https://crbug.com/dawn/136):
    Use a placeholder empty fragment shader in vertex only render pipeline.
    This toggle must be enabled for OpenGL ES backend, the Vulkan Backend, and
    serves as a workaround by default enabled on some Metal devices with Intel
    GPU to ensure the depth result is correct.

*   timestamp_quantization:
    (https://crbug.com/dawn/1800):
    Enable timestamp queries quantization to reduce the precision of timers
    that can be created with timestamp queries.

*   use_vulkan_zero_initialize_workgroup_memory_extension:
    (https://crbug.com/dawn/1302):
    Initialize workgroup memory with OpConstantNull on Vulkan when the Vulkan
    extension VK_KHR_zero_initialize_workgroup_memory is supported.

*   use_tint_ir:
    (https://crbug.com/tint/1718):
    Enable the use of the Tint IR for backend codegen.

[WebGPU Required Toggles - enabled]
-----------------------------------
*   disallow_spirv:
    (https://crbug.com/1214923):
    Disallow usage of SPIR-V completely so that only WGSL is used for shader
    modules. This is useful to prevent a Chromium renderer process from
    successfully sending SPIR-V code to be compiled in the GPU process.

*   timestamp_quantization:
    (https://crbug.com/dawn/1800):
    Enable timestamp queries quantization to reduce the precision of timers
    that can be created with timestamp queries.

<Unknown GPU>  OpenGLES backend - ANGLE (AMD, AMD Radeon RX 7900 XT (radeonsi navi31 LLVM 18.1.8), OpenGL 4.6 (Core Profile) Mesa 24.1.6-arch1.1) (Compatibility Mode)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------

[WebGPU Status]
---------------
*   Available

[Adapter Supported Features]
----------------------------
*   texture-compression-bc
*   dawn-internal-usages
*   dawn-native
*   implicit-device-synchronization
*   angle-texture-sharing
*   unorm16texture-formats
*   snorm16texture-formats
*   format-capabilities
*   norm16texture-formats

[Enabled Toggle Names]
----------------------
*   lazy_clear_resource_on_first_use:
    (https://crbug.com/dawn/145):
    Clears resource to zero on first usage. This initializes the resource so
    that no dirty bits from recycled memory is present in the new resource.

*   disable_indexed_draw_buffers:
    (https://crbug.com/dawn/582):
    Disables the use of indexed draw buffer state which is unsupported on some
    platforms.

*   flush_before_client_wait_sync:
    (https://crbug.com/dawn/633):
    Call glFlush before glClientWaitSync to work around bugs in the latter

*   disallow_spirv:
    (https://crbug.com/1214923):
    Disallow usage of SPIR-V completely so that only WGSL is used for shader
    modules. This is useful to prevent a Chromium renderer process from
    successfully sending SPIR-V code to be compiled in the GPU process.

*   use_placeholder_fragment_in_vertex_only_pipeline:
    (https://crbug.com/dawn/136):
    Use a placeholder empty fragment shader in vertex only render pipeline.
    This toggle must be enabled for OpenGL ES backend, the Vulkan Backend, and
    serves as a workaround by default enabled on some Metal devices with Intel
    GPU to ensure the depth result is correct.

*   timestamp_quantization:
    (https://crbug.com/dawn/1800):
    Enable timestamp queries quantization to reduce the precision of timers
    that can be created with timestamp queries.

*   use_blit_for_buffer_to_stencil_texture_copy:
    (https://crbug.com/dawn/1389):
    Use a blit instead of a copy command to copy buffer data to the stencil
    aspect of a texture. Works around an issue where stencil writes by copy
    commands are not visible to a render or compute pass.

*   use_blit_for_depth16unorm_texture_to_buffer_copy:
    (https://crbug.com/dawn/1782):
    Use a blit instead of a copy command to copy depth aspect of a texture to
    a buffer.Workaround for OpenGL and OpenGLES.

*   use_blit_for_depth32float_texture_to_buffer_copy:
    (https://crbug.com/dawn/1782):
    Use a blit instead of a copy command to copy depth aspect of a texture to
    a buffer.Workaround for OpenGLES.

*   use_blit_for_stencil_texture_to_buffer_copy:
    (https://crbug.com/dawn/1782):
    Use a blit instead of a copy command to copy stencil aspect of a texture
    to a buffer.Workaround for OpenGLES.

*   use_blit_for_snorm_texture_to_buffer_copy:
    (https://crbug.com/dawn/1781):
    Use a blit instead of a copy command to copy snorm texture to a
    buffer.Workaround for OpenGLES.

*   use_blit_for_rgb9e5ufloat_texture_copy:
    (https://crbug.com/dawn/2079):
    Use a blit instead of a copy command to copy rgb9e5ufloat texture to a
    texture or a buffer.Workaround for OpenGLES.

*   use_t2b2t_for_srgb_texture_copy:
    (https://crbug.com/dawn/2362):
    Use T2B and B2T copies to emulate a T2T copy between sRGB and non-sRGB
    textures.Workaround for OpenGLES.

[WebGPU Required Toggles - enabled]
-----------------------------------
*   disallow_spirv:
    (https://crbug.com/1214923):
    Disallow usage of SPIR-V completely so that only WGSL is used for shader
    modules. This is useful to prevent a Chromium renderer process from
    successfully sending SPIR-V code to be compiled in the GPU process.

*   timestamp_quantization:
    (https://crbug.com/dawn/1800):
    Enable timestamp queries quantization to reduce the precision of timers
    that can be created with timestamp queries.

Compositor Information
======================
Tile Update Mode: One-copy
Partial Raster  : Enabled

GpuMemoryBuffers Status
=======================
R_8               : Software only
R_16              : Software only
RG_88             : Software only
RG_1616           : Software only
BGR_565           : Software only
RGBA_4444         : Software only
RGBX_8888         : Software only
RGBA_8888         : Software only
BGRX_8888         : Software only
BGRA_1010102      : Software only
RGBA_1010102      : Software only
BGRA_8888         : Software only
RGBA_F16          : Software only
YVU_420           : Software only
YUV_420_BIPLANAR  : Software only
YUVA_420_TRIPLANAR: Software only
P010              : Software only

Display(s) Information
======================
Info                          : Display[33] bounds=[0,0 2560x1440], workarea=[0,0 2560x1396], scale=1, rotation=0, panel_rotation=0 external detected
Color space (all)             : {primaries:BT709, transfer:SRGB, matrix:RGB, range:FULL}
Buffer format (all)           : BGRA_8888
Color volume                  : {name:'srgb', r:[0.6400, 0.3300], g:[0.3000, 0.6000], b:[0.1500, 0.3300], w:[0.3127, 0.3290]}
SDR white level in nits       : 203
HDR relative maximum luminance: 1
Bits per color component      : 8
Bits per pixel                : 24
Refresh Rate in Hz            : 239.880615234375

Video Acceleration Information
==============================
Decoding:
Encoding:

Vulkan Information
==================

Device Performance Information
==============================

Log Messages
============
[1966:1966:0923/163907.097859:WARNING:sandbox_linux.cc(441)] : InitializeSandbox() called with multiple threads in process gpu-process.
[1966:1966:0923/163908.928340:ERROR:gl_surface_presentation_helper.cc(260)] : GetVSyncParametersIfAvailable() failed for 1 times!
[1966:1966:0923/163916.044490:ERROR:gl_surface_presentation_helper.cc(260)] : GetVSyncParametersIfAvailable() failed for 2 times!
[1966:1966:0923/163916.068086:ERROR:gl_surface_presentation_helper.cc(260)] : GetVSyncParametersIfAvailable() failed for 3 times!
[1966:1966:0923/164149.714821:ERROR:shared_image_manager.cc(224)] : SharedImageManager::ProduceSkia: Trying to Produce a Skia representation from a non-existent mailbox.
[1966:1966:0923/164149.715000:ERROR:shared_image_manager.cc(224)] : SharedImageManager::ProduceSkia: Trying to Produce a Skia representation from a non-existent mailbox.

Edit:
Habe gerade gelesen, das nvtop auch intel und amd unterstützt. an GPUs

Das zieh ich mal eben.

Edit:
Ok demnach arbeitet es irgendwie auf der GPU und auch etwas auf der CPU (Natürlich) zählt das als GPU decode?
Bildschirmfoto_20240924_181747.png


Edit:
Ich kann das tatsächlich schlecht beurteilen, am ende ist es mir auch egal. mit der Hardwaredecoding hatte ich vor längerer Zeit eigentlich schon abgeschlossen :-) denn ... wen nman einfach mal selbst mit Ryzen 1800x ne Milchmädchenrechnung macht.. was der Verbrauch da grob ist den die CPU deswegen hätte vs dem was die GPU wohl auch hätte...

Fürn Desktop ist das wumpe, hauptsache Flüssig. Und heute mitm 5800X3d ist das noch extremer die cpu ist viel schneller und verbraucht noch weniger.
Bildschirmfoto_20240924_182154.png
 
Zuletzt bearbeitet:
Bei mir läufts wie bei @AlphaKaninchen in #4 in Firefox einwandfrei über vaapi

Musste aber zum Einrichten noch Firmware nachinstallieren, weil Debian die nonfree-Sachen nicht automatisch installiert.
 
Zurück
Oben