You are not logged in.
I am able to get hardware accelerated video decoding working on my laptop in X11 environment with the integrated AMD Radeon GPU. The issue is I am not able to get this working on my other GPU.
from brave://version
Brave: 1.53.66 Chromium: 114.0.5735.35 (Official Build) beta (64-bit)
Revision: 2295354895fa3652ae47b651481831484f16d1ff-refs/branch-heads/5735@{#713}
OS: Linux
JavaScript: V8 11.4.183.8
I used the following flags to get it working on my integrated GPU
--ignore-gpu-blocklist --enable-features=VaapiVideoDecoder,VaapiVideoEncoder,VaapiVideoDecodeLinuxGL,VaapiIgnoreDriverChecks --disable-features=UseChromeOSDirectVideoDecoder,UseSkiaRenderer
This is from my brave://gpu in both of the GPUs cases
Video Acceleration Information
Decoding
Decode h264 baseline
16x16 to 4096x4096 pixels
Decode h264 main
16x16 to 4096x4096 pixels
Decode h264 high
16x16 to 4096x4096 pixels
Decode vp9 profile0
16x16 to 8192x4352 pixels
Encoding
Encode h264 baseline
321x241 to 4096x2304 pixels, and/or 30.000 fps.
Encode h264 main
321x241 to 4096x2304 pixels, and/or 30.000 fps.
Encode h264 high
321x241 to 4096x2304 pixels, and/or 30.000 fps.
The driver information section is a bit weird because it keeps saying that the "active" browser is always the gpu0 (it's the integrated one), even after switching GPUs. The hardware decoding also doesn't work in the case of the dedicated GPU; I confirmed it with the media-internals tab as well as the media section in devtools.
This is the output when launching browser just normally
This is the output when launching it with environment variable `DRI_PRIME=1`
These are the details of my GPU
$ glxinfo -B
name of display: :0
display: :0 screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
Vendor: AMD (0x1002)
Device: AMD Radeon Graphics (renoir, LLVM 15.0.7, DRM 3.52, 6.3.3-arch1-1) (0x1638)
Version: 23.1.0
Accelerated: yes
Video memory: 512MB
Unified memory: no
Preferred profile: core (0x1)
Max core profile version: 4.6
Max compat profile version: 4.6
Max GLES1 profile version: 1.1
Max GLES[23] profile version: 3.2
Memory info (GL_ATI_meminfo):
VBO free memory - total: 43 MB, largest block: 43 MB
VBO free aux. memory - total: 7491 MB, largest block: 7491 MB
Texture free memory - total: 43 MB, largest block: 43 MB
Texture free aux. memory - total: 7491 MB, largest block: 7491 MB
Renderbuffer free memory - total: 43 MB, largest block: 43 MB
Renderbuffer free aux. memory - total: 7491 MB, largest block: 7491 MB
Memory info (GL_NVX_gpu_memory_info):
Dedicated video memory: 512 MB
Total available memory: 8176 MB
Currently available dedicated video memory: 43 MB
OpenGL vendor string: AMD
OpenGL renderer string: AMD Radeon Graphics (renoir, LLVM 15.0.7, DRM 3.52, 6.3.3-arch1-1)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 23.1.0
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL version string: 4.6 (Compatibility Profile) Mesa 23.1.0
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 23.1.0
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
$ DRI_PRIME=1 glxinfo -B
name of display: :0
display: :0 screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
Vendor: AMD (0x1002)
Device: AMD Radeon RX 5500M (navi14, LLVM 15.0.7, DRM 3.52, 6.3.3-arch1-1) (0x7340)
Version: 23.1.0
Accelerated: yes
Video memory: 4096MB
Unified memory: no
Preferred profile: core (0x1)
Max core profile version: 4.6
Max compat profile version: 4.6
Max GLES1 profile version: 1.1
Max GLES[23] profile version: 3.2
Memory info (GL_ATI_meminfo):
VBO free memory - total: 4076 MB, largest block: 4076 MB
VBO free aux. memory - total: 7639 MB, largest block: 7639 MB
Texture free memory - total: 4076 MB, largest block: 4076 MB
Texture free aux. memory - total: 7639 MB, largest block: 7639 MB
Renderbuffer free memory - total: 4076 MB, largest block: 4076 MB
Renderbuffer free aux. memory - total: 7639 MB, largest block: 7639 MB
Memory info (GL_NVX_gpu_memory_info):
Dedicated video memory: 4096 MB
Total available memory: 11760 MB
Currently available dedicated video memory: 4076 MB
OpenGL vendor string: AMD
OpenGL renderer string: AMD Radeon RX 5500M (navi14, LLVM 15.0.7, DRM 3.52, 6.3.3-arch1-1)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 23.1.0
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL version string: 4.6 (Compatibility Profile) Mesa 23.1.0
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 23.1.0
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
Last edited by uncharted (2023-05-26 18:27:34)
Offline
On my steam deck(AMD APU), laptop(Intel APU) with Wayland on 113 version (current) no combination of flags/env vars works, let's see how it will be in the next release
H: Dell XPS 7390 2in1, ICL, S: Wayland, KDE, UEFI SB
Offline
Memory leak in Xorg using VaapiVideoDecodeLinuxGL flag :S
[Intel 8th gen]
Last edited by joaopauloalbq (Today 13:41:15)
Offline