Arch-Like - nietypowy blog, nietypowe forum.

Poradniki => Software => Wątek zaczęty przez: sir_lucjan w Październik 27, 2014, 20:51:49

Tytuł: [How To]Zmiana akceleracji SNA na Glamor w kartach graficznych Intel
Wiadomość wysłana przez: sir_lucjan w Październik 27, 2014, 20:51:49
Jeśli doświadczymy problemów podczas korzystania ze standardowej akceleracji SNA, możemy spróbować akceleracji Glamor.

Cytuj
The glamor module is an open-source 2D graphics common driver for the X Window System as implemented by X.org. It supports a variety of graphics chipsets which have OpenGL/EGL/GBM supports.

It’s a GL-based rendering acceleration library for X server:
  • It uses GL functions and shader to complete the 2D graphics operations.
  • It uses normal texture to represent a drawable pixmap if possible.
  • It calls GL functions to render to the texture directly. It’s somehow hardware independently. And could be a building block of any X server’s DDX driver:
  • Xorg’s DDX driver could leverage glamor-egl package to create an egl context without any native X system.Now the xf86-intel-video driver uses glamor as one of its option. When you build it with --enable-glamor, then it will use glamor as its rendering enginee. This package can support every platform which has OpenGL and gbm and drm libraries.

Sprawa jest stosunkowo prosta.

1. Tworzymy plik:

/etc/X11/xorg.conf.d/20-intel.conf
2. Umieszczamy w nim następującą zawartość:

Section "Device"
   Identifier  "Intel Graphics"
   Driver      "intel"
   Option      "AccelMethod"  "glamor"
EndSection

3. Restartujemy system.

4. Sprawdzamy, czy wszystko działa jak powinno:

[lucjan@archlinux ~]$ grep -i glamor /var/log/Xorg.0.log
[    11.110] (**) intel(0): Option "AccelMethod" "glamor"
[    11.135] (II) Loading sub module "glamoregl"
[    11.135] (II) LoadModule: "glamoregl"
[    11.135] (II) Loading /usr/lib/xorg/modules/libglamoregl.so
[    11.209] (II) Module glamoregl: vendor="X.Org Foundation"
[    11.209] (II) glamor: OpenGL accelerated X.org driver based.
[    11.357] (II) glamor: EGL version 1.4 (DRI2):
[    11.420] (II) intel(0): glamor detected, initialising egl layer.
[    11.585] (II) intel(0): Use GLAMOR acceleration.
[    11.679] (II) intel(0): Set up textured video using glamor

Niestety, wyniki testów są jednoznaczne - Glamor ma zdecydowanie gorszą wydajność od SNA, tak więc przejście na Glamor winno być stosowane w ostateczności.

http://www.phoronix.com/scan.php?page=article&item=intel_2dxorg30_ubuntu1404&num=3

Aktualizacja: Wersja 2.99.917 została pozbawiona wsparcia dla glamor.