[PATCH v2 xf86-video-dummy] Add glamor acceleration which enables native OpenGL support (v2)

Emil Velikov emil.l.velikov at gmail.com
Mon Aug 7 18:26:34 UTC 2017


On 5 August 2017 at 13:54, Antoine Martin <antoine at nagafix.co.uk> wrote:
> On 09/03/17 09:26, Qiang Yu wrote:
>> v2:
>>   Update configure.ac for auto enable glamor support and print
>>   corresponding error message when necessary.
>>
>> Enable glamor acceleration in xorg.conf by:
>> Section "Device"
>>   ...
>>   Driver "dummy"
>>   Option "Render" "/dev/dri/renderD128"
>>   ...
>> EndSection
> With an nvidia driver, I get:
> [119367.649] (II) Loading /usr/lib64/xorg/modules/libglamoregl.so
> [119367.649] (II) Module glamoregl: vendor="X.Org Foundation"
> [119367.649]    compiled for 1.19.3, module version = 1.0.0
> [119367.649]    ABI class: X.Org ANSI C Emulation, version 0.4
> [119367.649] (II) glamor: OpenGL accelerated X.org driver based.
> [119367.654] (II) glamor: EGL version 1.4 (DRI2):
> [119367.654] EGL_MESA_drm_image required.
> [119367.654] (EE) DUMMY(0): glamor initialization failed
>
As the message says - the Nvidia driver does not expose the
EGL_MESA_drm_image extension.
Xserver master does not require the extension, but it does need GBM.
Latter of which not a thin on Nvidia, IIRC.


> And with modesetting or intel drivers:
> [   738.822] (II) glamor: OpenGL accelerated X.org driver based.
> [   738.827] (II) glamor: EGL version 1.4 (DRI2):
> [   738.836] (II) DUMMY(0): glamor initialized
> [   738.836] (--) Depth 24 pixmap format is 32 bpp
> [   738.957] (II) DUMMY(0): Using 3904 scanlines of offscreen memory
> [   738.957] (==) DUMMY(0): Backing store enabled
> [   738.957] (==) DUMMY(0): Silken mouse enabled
> [   738.957] (==) RandR enabled
> [   738.959] (II) SELinux: Disabled by boolean
> [   738.960] (II) AIGLX: Screen 0 is not DRI2 capable
> [   738.960] (EE) AIGLX: reverting to software rendering
>
> And in both cases, glxinfo reports that my dummy screen uses software
> rendering. (Accelerated: no, Gallium 0.4 on llvmpipe..)
>
> What am I doing wrong?
>
The error message should be harmless.

I'd suspect the glamor_egl_init() is successful, although you want to
check that first.
Afterwords you're going to Mesa land:
1) mesa must have DRI3 support (--enable-dri3)
2) observe the extra output in $LIBGL_DEBUG=verbose glxinfo
3) last but not least, if you have other !dummy DDX loaded, chances
are that X/Mesa are using it instead of dummy.

HTH
Emil


More information about the xorg-devel mailing list