Discussion:
[Bug 108487] Wayland compositors are unable to use hardware acceleration on i915
b***@freedesktop.org
2018-10-18 17:51:08 UTC
Permalink
https://bugs.freedesktop.org/show_bug.cgi?id=108487

Bug ID: 108487
Summary: Wayland compositors are unable to use hardware
acceleration on i915
Product: Mesa
Version: 18.2
Hardware: Other
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/DRI/i915
Assignee: dri-***@lists.freedesktop.org
Reporter: ***@hotmail.com
QA Contact: dri-***@lists.freedesktop.org

Created attachment 142082
--> https://bugs.freedesktop.org/attachment.cgi?id=142082&action=edit
Error messages printed by weston when attempted to run from tty.

Hello,

On my i915 system (Intel Atom N455 + Intel GMA 3150), Wayland compositors are
unable to use hardware acceleration. I have tried KWin (KDE Plasma), Sway and
weston.

Sway uses llvmpipe software rendering. Plasma 5 showed an error message similar
to 'Could not initialize OpenGL' until version 5.13.0, when it began to fall
back on software rendering as well. weston justs reveals the error messages
'failed to create gbm surface' / 'Failed to init output gl state' nowadays with
its default configuration on Arch Linux x86_64.

Of course, there are no such issues on X11 sessions or when booting the same
installation of linux in another computer that's not i915.
Vendor: Intel Open Source Technology Center (0x8086)
Device: Mesa DRI Intel(R) Pineview M (0xa011)
Version: 18.2.2
Accelerated: yes
Video memory: 384MB
Unified memory: yes
Preferred profile: compat (0x2)
Max core profile version: 0.0
Max compat profile version: 1.4
Max GLES1 profile version: 1.1
Max GLES[23] profile version: 2.0
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Pineview M
OpenGL version string: 2.1 Mesa 18.2.2
OpenGL shading language version string: 1.20
OpenGL ES profile version string: OpenGL ES 2.0 Mesa 18.2.2
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 1.0.16
I'm also attaching the entire startup log from weston which contains the error
messages I mentioned above.

I don't know if this is a bug or if it's a limitation of my hardware. In any
case, I thought it best to report the issue here. Please ask me for any further
information you need.

Thanks.
--
You are receiving this mail because:
You are the assignee for the bug.
b***@freedesktop.org
2018-10-19 13:18:05 UTC
Permalink
https://bugs.freedesktop.org/show_bug.cgi?id=108487

Chris Wilson <***@chris-wilson.co.uk> changed:

What |Removed |Added
----------------------------------------------------------------------------
Summary|Wayland compositors are |Wayland compositors are
|unable to use hardware |unable to use hardware
|acceleration on i915 |acceleration on i915:
| |missing
| |EGL_ANDROID_native_fence_sy
| |nc extension
--
You are receiving this mail because:
You are the assignee for the bug.
b***@freedesktop.org
2018-10-19 13:56:09 UTC
Permalink
https://bugs.freedesktop.org/show_bug.cgi?id=108487

--- Comment #1 from Daniel Stone <***@fooishbar.org> ---
Chris, how do you make this as missing dma-fence support?
--
You are receiving this mail because:
You are the assignee for the bug.
b***@freedesktop.org
2018-10-19 14:02:54 UTC
Permalink
https://bugs.freedesktop.org/show_bug.cgi?id=108487

--- Comment #2 from Chris Wilson <***@chris-wilson.co.uk> ---
Just realised I missed the "timeline" part of

[17:35:45.463] warning: Disabling render GPU timeline due to missing
EGL_ANDROID_native_fence_sync extension

(read as "disabling render GPU due to missing extension").

Since it doesn't say why it doesn't create the GL context, that looks like the
easiest warning to fix first.
--
You are receiving this mail because:
You are the assignee for the bug.
b***@freedesktop.org
2018-10-19 14:10:08 UTC
Permalink
https://bugs.freedesktop.org/show_bug.cgi?id=108487

--- Comment #3 from Daniel Stone <***@fooishbar.org> ---
The fatal bit is probably the GBM surface creation: my guess is that the KMS
driver exposes IN_MODIFIERS so we try to use gbm_surface_create_with_modifiers
and when it fails because i915 Mesa is blissfully unaware, we just tank the
whole setup rather than falling back to no modifiers.
--
You are receiving this mail because:
You are the assignee for the bug.
b***@freedesktop.org
2018-10-19 17:00:27 UTC
Permalink
https://bugs.freedesktop.org/show_bug.cgi?id=108487

magiblot <***@hotmail.com> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |***@hotmail.com

--- Comment #4 from magiblot <***@hotmail.com> ---
Created attachment 142102
--> https://bugs.freedesktop.org/attachment.cgi?id=142102&action=edit
Stderr output of weston when successfully run on i965

Here is the output weston-launch produces for me in a i965 device, with no
errors, just so that you can compare it to the one from i915, since there are
some warnings which are printed in both cases.
--
You are receiving this mail because:
You are the assignee for the bug.
b***@freedesktop.org
2018-10-19 17:12:41 UTC
Permalink
https://bugs.freedesktop.org/show_bug.cgi?id=108487

magiblot <***@hotmail.com> changed:

What |Removed |Added
----------------------------------------------------------------------------
Attachment #142102|0 |1
is obsolete| |

--- Comment #5 from magiblot <***@hotmail.com> ---
Created attachment 142104
--> https://bugs.freedesktop.org/attachment.cgi?id=142104&action=edit
Stderr output of weston when successfully run on i965 (forcing the same OpenGL
ES version than i915)

I redid the log but forcing the use of OpenGL ES 2.0 on i965, the same version
i915 uses, to make the differences more obvious.
--
You are receiving this mail because:
You are the assignee for the bug.
b***@freedesktop.org
2018-10-29 10:56:56 UTC
Permalink
https://bugs.freedesktop.org/show_bug.cgi?id=108487

Pekka Paalanen <***@gmail.com> changed:

What |Removed |Added
----------------------------------------------------------------------------
Summary|Wayland compositors are |Wayland compositors are
|unable to use hardware |unable to use hardware
|acceleration on i915: |acceleration on i915
|missing |
|EGL_ANDROID_native_fence_sy |
|nc extension |
--
You are receiving this mail because:
You are the assignee for the bug.
b***@freedesktop.org
2018-10-29 10:57:45 UTC
Permalink
https://bugs.freedesktop.org/show_bug.cgi?id=108487

--- Comment #6 from Pekka Paalanen <***@gmail.com> ---
I removed the misleading bit from the title, because lack of
EGL_ANDROID_native_fence_sync will not stop weston.
--
You are receiving this mail because:
You are the assignee for the bug.
b***@freedesktop.org
2018-12-04 06:46:08 UTC
Permalink
https://bugs.freedesktop.org/show_bug.cgi?id=108487

--- Comment #7 from Duane Voth <***@gmail.com> ---
lspci on my laptop lists:
Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express
Integrated Graphics Controller (rev 03)

I get the same errors when trying to start weston:
...
[] failed to create gbm surface
[] Failed to init output gl state
[] Enabling output "LVDS-1" failed.
[] Error: cannot enable output 'LVDS-1' without heads.

From
https://www.mail-archive.com/wayland-***@lists.freedesktop.org/msg38763.html
I was able to work around the problem using:

$ weston --use-pixmap
--
You are receiving this mail because:
You are the assignee for the bug.
b***@freedesktop.org
2018-12-04 06:59:07 UTC
Permalink
https://bugs.freedesktop.org/show_bug.cgi?id=108487

--- Comment #8 from Duane Voth <***@gmail.com> ---
ugh. typo. $ weston --use-pixman

(can't edit comments?)
--
You are receiving this mail because:
You are the assignee for the bug.
b***@freedesktop.org
2018-12-04 11:13:00 UTC
Permalink
https://bugs.freedesktop.org/show_bug.cgi?id=108487

--- Comment #9 from magiblot <***@hotmail.com> ---
(In reply to Duane Voth from comment #8)
Post by b***@freedesktop.org
$ weston --use-pixman
Thanks for the hint. I hadn't tried this one.

The workaround dismisses the error message but, unfortunately, doesn't enable
Post by b***@freedesktop.org
$ glxinfo
Vendor: VMware, Inc. (0xffffffff)
Device: llvmpipe (LLVM 7.0, 128 bits) (0xffffffff)
Version: 18.2.5
Accelerated: no
Video memory: 1982MB
Unified memory: no
--
You are receiving this mail because:
You are the assignee for the bug.
b***@freedesktop.org
2018-12-04 13:23:14 UTC
Permalink
This post might be inappropriate. Click to display it.
b***@freedesktop.org
2018-12-05 19:47:49 UTC
Permalink
https://bugs.freedesktop.org/show_bug.cgi?id=108487

--- Comment #11 from magiblot <***@hotmail.com> ---
(In reply to Pekka Paalanen from comment #10)

If all you need is a tester, I'm up for anything.

Is there any simple way (e.g. using a PKGBUILD file) to compile weston with
undefined HAVE_GBM_MODIFIERS?

Thanks.
--
You are receiving this mail because:
You are the assignee for the bug.
b***@freedesktop.org
2018-12-10 08:36:18 UTC
Permalink
This post might be inappropriate. Click to display it.
Loading...