Добрый день!
При запуске Chromium возникают следующие исключения:
amdgpu: unknown (family_id, chip_external_rev): (145, 1)
libva error: /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so init failed
Предположительно рендеринг видео в браузере осуществляется CPU.
Загрузка CPU, приблизительно 200% (CPU - 16 логических ядер). Основные процессы gnome-shell и chromium.
Вывод vainfo под обычным пользователем:
libva info: VA-API version 1.10.0
libva error: vaGetDriverNameByIndex() failed with invalid VADisplay, driver_name = (null)
vaInitialize failed with error code 3 (invalid VADisplay),exit
Вывод vainfo –display drm –device /dev/dri/renderD128 под обычным пользователем:
libva info: VA-API version 1.10.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_8
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.10 (libva 2.10.0)
vainfo: Driver version: Mesa Gallium driver 22.3.0-devel for Radeon RX 7900 XT (gfx1100, LLVM 15.0.3, DRM 3.48, 5.10.0-23-amd64)
vainfo: Supported profile and entrypoints
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSlice
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSlice
VAProfileHEVCMain : VAEntrypointVLD
VAProfileHEVCMain : VAEntrypointEncSlice
VAProfileHEVCMain10 : VAEntrypointVLD
VAProfileHEVCMain10 : VAEntrypointEncSlice
VAProfileJPEGBaseline : VAEntrypointVLD
VAProfileVP9Profile0 : VAEntrypointVLD
VAProfileVP9Profile2 : VAEntrypointVLD
VAProfileAV1Profile0 : VAEntrypointVLD
VAProfileNone : VAEntrypointVideoProc
Вывод vainfo под root:
error: XDG_RUNTIME_DIR not set in the environment.
error: can't connect to X server!
libva info: VA-API version 1.10.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_8
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.10 (libva 2.10.0)
vainfo: Driver version: Mesa Gallium driver 22.3.0-devel for Radeon RX 7900 XT (gfx1100, LLVM 15.0.3, DRM 3.48, 5.10.0-23-amd64)
vainfo: Supported profile and entrypoints
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSlice
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSlice
VAProfileHEVCMain : VAEntrypointVLD
VAProfileHEVCMain : VAEntrypointEncSlice
VAProfileHEVCMain10 : VAEntrypointVLD
VAProfileHEVCMain10 : VAEntrypointEncSlice
VAProfileJPEGBaseline : VAEntrypointVLD
VAProfileVP9Profile0 : VAEntrypointVLD
VAProfileVP9Profile2 : VAEntrypointVLD
VAProfileAV1Profile0 : VAEntrypointVLD
VAProfileNone : VAEntrypointVideoProc
Вывод chrome://gpu/:
Graphics Feature Status
Canvas: Software only. Hardware acceleration disabled
Canvas out-of-process rasterization: Disabled
Direct Rendering Display Compositor: Disabled
Compositing: Software only. Hardware acceleration disabled
Multiple Raster Threads: Disabled
OpenGL: Disabled
Rasterization: Software only. Hardware acceleration disabled
Raw Draw: Disabled
Video Decode: Software only. Hardware acceleration disabled
Video Encode: Software only. Hardware acceleration disabled
Vulkan: Disabled
WebGL: Disabled
WebGL2: Disabled
WebGPU: Disabled
Driver Bug Workarounds
clear_uniforms_before_first_program_use
enable_webgl_timer_query_extensions
exit_on_context_lost
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
Gpu compositing has been disabled, either via blocklist, about:flags or the command line. The browser will fall back to software compositing and hardware acceleration will be unavailable.
Disabled Features: gpu_compositing
GPU process was unable to boot: GPU access is disabled due to frequent crashes.
Disabled Features: all
Clear uniforms before first program use on all platforms: 124764, 349137
Applied Workarounds: clear_uniforms_before_first_program_use
Disable KHR_blend_equation_advanced until cc shaders are updated: 661715
Applied Workarounds: disable(GL_KHR_blend_equation_advanced), disable(GL_KHR_blend_equation_advanced_coherent)
Expose WebGL's disjoint_timer_query extensions on platforms with site isolation: 808744, 870491
Applied Workarounds: enable_webgl_timer_query_extensions
Some drivers can't recover after OUT_OF_MEM and context lost: 893177
Applied Workarounds: exit_on_context_lost
Disable GL_MESA_framebuffer_flip_y for desktop GL: 964010
Applied Workarounds: disable(GL_MESA_framebuffer_flip_y)
Вывод chrome://media-internals/:
render_id: 6
player_id: 0
created: 2023-10-22 09:25:25.753 UTC
origin_url: https://vkplay.live/
kFrameUrl: https://vkplay.live/c1ymba
kFrameTitle: C1yMba - VK Play Live
url: blob:https://vkplay.live/d919786d-711e-4f77-afbc-9f6d58f4d8c0
kTextTracks:
info: Effective playback rate changed from 0 to 1
kRendererName: RendererImpl
pipeline_state: kSuspended
kVideoTracks: [object Object]
kAudioTracks: [object Object]
kIsAudioDecryptingDemuxerStream: false
kAudioDecoderName: FFmpegAudioDecoder
kIsPlatformAudioDecoder: false
debug: Video rendering in low delay mode.
kIsVideoDecryptingDemuxerStream: false
kVideoDecoderName: FFmpegVideoDecoder
kIsPlatformVideoDecoder: false
seek_target: 16165.633
dimensions: 1280x720
kResolution: 1280x720
event: kSuspended
duration: unknown
pipeline_buffering_state: [object Object]
Запуск chromium:
chromium --incognito --ignore-gpu-blocklist --enable-gpu-rasterization --enable-zero-copy --use-gl=egl --enable-accelerated-video-decode
При запуске chromium c LIBVA_DRIVER_NAME:
export LIBVA_DRIVER_NAME=amdgpu
chromium --incognito --ignore-gpu-blocklist --enable-gpu-rasterization --enable-zero-copy --use-gl=egl --enable-accelerated-video-decode
При таком запуске исключения не возникают, но рендерится видео по прежнему CPU.
При открытии chrome://gpu/:
[13568:13575:1022/122602.800066:ERROR:display.cc(294)] Frame latency is negative: -4.636 ms
Warning: RemoveAllNonValidOverrideLayers: Failed to get executable path and name
Error: vkCreateInstance failed with VK_ERROR_INCOMPATIBLE_DRIVER
at CheckVkSuccessImpl (../../third_party/dawn/src/dawn/native/vulkan/VulkanError.cpp:88)
at CreateVkInstance (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:416)
at Initialize (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:302)
at Create (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:232)
at operator() (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:492)
OS: Debian 11 (bullseye)
Подскажите, пожалуйста, как решить?
Любую отладочную информацию предоставлю.
Перемещено hobbit из general