LINUX.ORG.RU

Arch Аппаратное ускорение AMD

 , ,


0

0

Видео карта обнаруживается но аппартное ускорение не включено. Использую драйвер radeon. vdpauinfo и vainfo выдают ошибки.

➜  iliayar LIBGL_DEBUG=verbose glxinfo > /dev/null
libGL: screen 0 does not appear to be DRI2 capable
libGL: OpenDriver: trying /usr/lib/dri/tls/swrast_dri.so
libGL: OpenDriver: trying /usr/lib/dri/swrast_dri.so
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /root/.drirc: No such file or directory.
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /root/.drirc: No such file or directory.
glxinfo:
➜  iliayar glxinfo
name of display: :0
display: :0  screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.4
server glx extensions:
    ...
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: VMware, Inc. (0xffffffff)
    Device: llvmpipe (LLVM 7.0, 256 bits) (0xffffffff)
    Version: 18.3.1
    Accelerated: no
    Video memory: 7864MB
    Unified memory: no
    Preferred profile: core (0x1)
    Max core profile version: 3.3
    Max compat profile version: 3.1
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.0
OpenGL vendor string: VMware, Inc.
OpenGL renderer string: llvmpipe (LLVM 7.0, 256 bits)
OpenGL core profile version string: 3.3 (Core Profile) Mesa 18.3.1
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
    ...
OpenGL version string: 3.1 Mesa 18.3.1
OpenGL shading language version string: 1.40
OpenGL context flags: (none)
OpenGL extensions:
    ...
vainfo и vdpauinfo:
➜  iliayar vainfo
vaInitialize failed with error code 2 (resource allocation failed),exit
➜  iliayar vdpauinfo
display: :0   screen: 0
Error creating VDPAU device: 23
lspci:
➜  iliayar lspci -knnn | grep vga -i -A 3  
00:02.0 VGA compatible controller [0300]: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller [8086:0412] (rev 06)
	Subsystem: Gigabyte Technology Co., Ltd Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller [1458:d000]
	Kernel driver in use: i915
	Kernel modules: i915
--
01:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Tobago PRO [Radeon R7 360 / R9 360 OEM] [1002:665f] (rev 81)
	Subsystem: Gigabyte Technology Co., Ltd Tobago PRO [Radeon R7 360 / R9 360 OEM] [1458:22ba]
	Kernel driver in use: radeon
	Kernel modules: radeon, amdgpu
При запуске прописано VDPAU_DRIVER=radeonsi LIBVA_DRIVER_NAME=radeonsi

Конфиги Xorg:

Section "Device"
    Identifier "Radeon"
    Driver "radeon"
    Option "SwapbuffersWait" "off"
    Option "ColorTiling" "on"
    Option "ColorTiling2D" "on"
    Option "EnablePageFlip" "on"
    Option "AccelDFS" "on"
    Option "XV_VSYNC" "on
    Option "AccelMethod" "glamor"
    #Option "AccelMethod" "EXA"
EndSection

Section "Module"
    Load "dri2"
    Load "glamoregl"
EndSection

Как я понял это OpenGL vendor string: VMware, Inc. значит что аппаратное ускорение не включено. Как следствие всякие WebGL и игры подтармаживают.

➜  iliayar glmark2 --fullscreen
** GLX does not support GLX_EXT_swap_control or GLX_MESA_swap_control!
** Failed to set swap interval. Results may be bounded above by refresh rate.
=======================================================
    glmark2 2017.07
=======================================================
    OpenGL Information
    GL_VENDOR:     VMware, Inc.
    GL_RENDERER:   llvmpipe (LLVM 7.0, 256 bits)
    GL_VERSION:    3.1 Mesa 18.3.1
=======================================================
** GLX does not support GLX_EXT_swap_control or GLX_MESA_swap_control!
** Failed to set swap interval. Results may be bounded above by refresh rate.
[build] use-vbo=false: FPS: 121 FrameTime: 8.264 ms
=======================================================
                                  glmark2 Score: 121 
=======================================================
На ноуте где вроде как используется интегрированная видюха Intel около 300



Последнее исправление: iliayar (всего исправлений: 3)

Использую драйвер radeon

этот что ли?

xf86-video-ati

amd_amd ★★★★★
()

это значит что у тебя софтовый рендеринг и драйвер на видеокарту вообще не используется.. ЕМНИП для этой карточки нужен драйвер amdgpu а не radeon соответственно конфиги иксов тоже неправильные( скорее всего они не нужны)

ну и эт https://wiki.archlinux.org/index.php/AMDGPU_(Русский)

Thero ★★★★★
()

DRI_PRIME=1 glxinfo -B Что выдаёт?

P.S. Не знаю, что у тебя за шел. Возможно надо

DRI_PRIME=1
export DRI_PRIME
glxinfo -B

robus ★★★★★
()
Последнее исправление: robus (всего исправлений: 1)
Ответ на: комментарий от robus
➜  iliayar DRI_PRIME=1 glxinfo -B
name of display: :0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: VMware, Inc. (0xffffffff)
    Device: llvmpipe (LLVM 7.0, 256 bits) (0xffffffff)
    Version: 18.3.1
    Accelerated: no
    Video memory: 7864MB
    Unified memory: no
    Preferred profile: core (0x1)
    Max core profile version: 3.3
    Max compat profile version: 3.1
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.0
OpenGL vendor string: VMware, Inc.
OpenGL renderer string: llvmpipe (LLVM 7.0, 256 bits)
OpenGL core profile version string: 3.3 (Core Profile) Mesa 18.3.1
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 3.1 Mesa 18.3.1
OpenGL shading language version string: 1.40
OpenGL context flags: (none)

OpenGL ES profile version string: OpenGL ES 3.0 Mesa 18.3.1
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00
iliayar
() автор топика

Давайте засечём, на каком сообщении форумные аналитики попросят лог иксов.

Deleted
()

Попробуй загрузить систему с параметрами ядра radeon.cik_support=0 radeon.si_support=0 amdgpu.cik_support=1 amdgpu.si_support=1, чтоб драйвер amdgpu включился, и погляди вывод DRI_PRIME=1 glxinfo | grep OpenGL.

sluggard ★★★★★
()
Ответ на: комментарий от sluggard

radeon.cik_support=0 radeon.si_support=0 amdgpu.cik_support=1 amdgpu.si_support=1

Это потребует переписывания конфига xorg.

Section "Device"
    Identifier "Radeon"
    Driver "radeon"
    Option "SwapbuffersWait" "off"
    Option "ColorTiling" "on"
    Option "ColorTiling2D" "on"
    Option "EnablePageFlip" "on"
    Option "AccelDFS" "on"
    Option "XV_VSYNC" "on
    Option "AccelMethod" "glamor"
    #Option "AccelMethod" "EXA"
EndSection

Section "Module"
    Load "dri2"
    Load "glamoregl"
EndSection

превратится примерно в
Section "Module"
        Load "dri3"
EndSection

Section "Device"
    Identifier "AMD"
    Driver "amdgpu"
    Option "DRI" "3"
    Option "TearFree" "off"
EndSection

Section "Device"
        Identifier  "Intel Graphics"
        Driver      "intel"
        Option      "DRI"       "3"                                                                                                                                                          
        Option      "TearFree"  "off"
EndSection


DRI_PRIME=1 glxinfo | grep OpenGL

Греп ни к чему — здесь DRI_PRIME=1 glxinfo -B достаточно.

P.S. по логам там уже amdgpu используется. ТС, что выдаёт pacman -Qi xf86-video-amdgpu, pacman -Qi xf86-video-intel, pacman -Qi mesa?

robus ★★★★★
()
Последнее исправление: robus (всего исправлений: 1)
Ответ на: комментарий от robus

так-то загружается, определяет видеокарту, но потом почему-то отключает ускорение и позже переходит на swrast толи конфиг икса недочищен, толи ещё что-то надо блэклистить чтоб не конфликтовало

[    31.978] (--) AMDGPU(0): Chipset: "AMD Radeon (TM) R7 300 Series" (ChipID = 0x665f)
...
[    32.407] (II) AMDGPU(0): 2D and 3D acceleration disabled
...
[    33.534] (II) IGLX: Loaded and initialized swrast
[    33.534] (II) GLX: Initialized DRISWRAST GL provider for screen 0

вообще dri2 и гламор судя по логам загружать не надо так-как они итак вкомпилены в арчевские иксы ну и там уж dri3 тогда( тоже вкомпилен)

Thero ★★★★★
()
Последнее исправление: Thero (всего исправлений: 1)
Ответ на: комментарий от sluggard

эти опции у него итак включены судя по логу

[ 31.420] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=5520d851-036a-4e4f-b719-29eda411b0dc rw radeon.cik_support=0 amdgpu.cik_support=1 radeon.si_support=0 amdgpu.si_support=1

Thero ★★★★★
()

ну и по поводу Va-api кажется встроенное интеловское видео тут в этом плане имеет хардварный декодер мощнее чем VCE в радеоне, по крайней мере ускоряет большее число форматов.

Thero ★★★★★
()
Ответ на: комментарий от robus
➜  iliayar pacman -Qi xf86-video-amdgpu
Name            : xf86-video-amdgpu
Version         : 18.1.0-1
Description     : X.org amdgpu video driver
Architecture    : x86_64
URL             : https://xorg.freedesktop.org/
Licenses        : custom
Groups          : xorg-drivers
Provides        : None
Depends On      : libsystemd  mesa
Optional Deps   : None
Required By     : None
Optional For    : None
Conflicts With  : xorg-server<1.20.0  X-ABI-VIDEODRV_VERSION<24  X-ABI-VIDEODRV_VERSION>=25
Replaces        : None
Installed Size  : 167.00 KiB
Packager        : Laurent Carlier <lordheavym@gmail.com>
Build Date      : Sat 15 Sep 2018 05:28:33 PM MSK
Install Date    : Mon 17 Dec 2018 10:08:12 PM MSK
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Signature
➜  iliayar pacman -Qi xf86-video-intel 
Name            : xf86-video-intel
Version         : 1:2.99.917+855+g746ab3bb-1
Description     : X.org Intel i810/i830/i915/945G/G965+ video drivers
Architecture    : x86_64
URL             : https://01.org/linuxgraphics
Licenses        : custom
Groups          : xorg-drivers
Provides        : xf86-video-intel-uxa  xf86-video-intel-sna
Depends On      : mesa  libxvmc  pixman  xcb-util>=0.3.9  libsystemd
Optional Deps   : libxrandr: for intel-virtual-output [installed]
                  libxinerama: for intel-virtual-output [installed]
                  libxcursor: for intel-virtual-output [installed]
                  libxtst: for intel-virtual-output [installed]
                  libxss: for intel-virtual-output [installed]
Required By     : None
Optional For    : None
Conflicts With  : xorg-server<1.20  X-ABI-VIDEODRV_VERSION<24  X-ABI-VIDEODRV_VERSION>=25  xf86-video-intel-sna  xf86-video-intel-uxa  xf86-video-i810  xf86-video-intel-legacy
Replaces        : xf86-video-intel-uxa  xf86-video-intel-sna
Installed Size  : 2.22 MiB
Packager        : Andreas Radke <andyrtr@archlinux.org>
Build Date      : Tue 13 Nov 2018 11:52:32 PM MSK
Install Date    : Tue 04 Dec 2018 05:47:48 PM MSK
Install Reason  : Explicitly installed
Install Script  : Yes
Validated By    : Signature
➜  iliayar pacman -Qi mesa
Name            : mesa
Version         : 18.3.1-1
Description     : An open-source implementation of the OpenGL specification
Architecture    : x86_64
URL             : https://www.mesa3d.org/
Licenses        : custom
Groups          : None
Provides        : ati-dri  intel-dri  nouveau-dri  svga-dri  mesa-dri  mesa-libgl  opengl-driver
Depends On      : libdrm  wayland  libxxf86vm  libxdamage  libxshmfence  libelf  libomxil-bellagio  libunwind  llvm-libs  lm_sensors  libglvnd
Optional Deps   : opengl-man-pages: for the OpenGL API man pages
                  mesa-vdpau: for accelerated video playback [installed]
                  libva-mesa-driver: for accelerated video playback [installed]
Required By     : gst-plugins-base-libs  gtk3  lib32-mesa  libglvnd  qt5-base  sasm  slop  weston  xf86-video-amdgpu  xf86-video-ati  xf86-video-intel  xorg-server-devel
Optional For    : tigervnc
Conflicts With  : ati-dri  intel-dri  nouveau-dri  svga-dri  mesa-dri  mesa-libgl
Replaces        : ati-dri  intel-dri  nouveau-dri  svga-dri  mesa-dri  mesa-libgl
Installed Size  : 49.05 MiB
Packager        : Laurent Carlier <lordheavym@gmail.com>
Build Date      : Wed 12 Dec 2018 11:12:36 AM MSK
Install Date    : Mon 17 Dec 2018 07:52:18 PM MSK
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : Signature
iliayar
() автор топика

Ок. Просто удаление amdgpu-pro помогло.

╭─iliayar@ArchPC ~  
╰─➤  glxinfo -B 
name of display: :0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: X.Org (0x1002)
    Device: AMD Radeon (TM) R7 300 Series (BONAIRE, DRM 3.27.0, 4.19.8-arch1-1-ARCH, LLVM 7.0.0) (0x665f)
    Version: 18.3.1
    Accelerated: yes
    Video memory: 2048MB
    Unified memory: no
    Preferred profile: core (0x1)
    Max core profile version: 4.5
    Max compat profile version: 4.5
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2
Memory info (GL_ATI_meminfo):
    VBO free memory - total: 1964 MB, largest block: 1964 MB
    VBO free aux. memory - total: 3068 MB, largest block: 3068 MB
    Texture free memory - total: 1964 MB, largest block: 1964 MB
    Texture free aux. memory - total: 3068 MB, largest block: 3068 MB
    Renderbuffer free memory - total: 1964 MB, largest block: 1964 MB
    Renderbuffer free aux. memory - total: 3068 MB, largest block: 3068 MB
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 2048 MB
    Total available memory: 5120 MB
    Currently available dedicated video memory: 1964 MB
OpenGL vendor string: X.Org
OpenGL renderer string: AMD Radeon (TM) R7 300 Series (BONAIRE, DRM 3.27.0, 4.19.8-arch1-1-ARCH, LLVM 7.0.0)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 18.3.1
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.5 (Compatibility Profile) Mesa 18.3.1
OpenGL shading language version string: 4.50
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 18.3.1
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

iliayar
() автор топика
Ответ на: комментарий от iliayar

Ок. Просто удаление amdgpu-pro помогло.
amdgpu-pro

Вот с этого и надо было начинать :D

robus ★★★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.