All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 108487] Wayland compositors are unable to use hardware acceleration on i915
@ 2018-10-18 17:51 bugzilla-daemon
  2018-10-19 13:18 ` [Bug 108487] Wayland compositors are unable to use hardware acceleration on i915: missing EGL_ANDROID_native_fence_sync extension bugzilla-daemon
                   ` (20 more replies)
  0 siblings, 21 replies; 22+ messages in thread
From: bugzilla-daemon @ 2018-10-18 17:51 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 2678 bytes --]

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-devel@lists.freedesktop.org
          Reporter: magiblot@hotmail.com
        QA Contact: dri-devel@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.

Here is some relevant output from glxinfo on X11:

> Extended renderer info (GLX_MESA_query_renderer):
>     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.

[-- Attachment #1.2: Type: text/html, Size: 4351 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug 108487] Wayland compositors are unable to use hardware acceleration on i915: missing EGL_ANDROID_native_fence_sync extension
  2018-10-18 17:51 [Bug 108487] Wayland compositors are unable to use hardware acceleration on i915 bugzilla-daemon
@ 2018-10-19 13:18 ` bugzilla-daemon
  2018-10-19 13:56 ` bugzilla-daemon
                   ` (19 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: bugzilla-daemon @ 2018-10-19 13:18 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 737 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=108487

Chris Wilson <chris@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.

[-- Attachment #1.2: Type: text/html, Size: 1311 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug 108487] Wayland compositors are unable to use hardware acceleration on i915: missing EGL_ANDROID_native_fence_sync extension
  2018-10-18 17:51 [Bug 108487] Wayland compositors are unable to use hardware acceleration on i915 bugzilla-daemon
  2018-10-19 13:18 ` [Bug 108487] Wayland compositors are unable to use hardware acceleration on i915: missing EGL_ANDROID_native_fence_sync extension bugzilla-daemon
@ 2018-10-19 13:56 ` bugzilla-daemon
  2018-10-19 14:02 ` bugzilla-daemon
                   ` (18 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: bugzilla-daemon @ 2018-10-19 13:56 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 253 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=108487

--- Comment #1 from Daniel Stone <daniel@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.

[-- Attachment #1.2: Type: text/html, Size: 1171 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug 108487] Wayland compositors are unable to use hardware acceleration on i915: missing EGL_ANDROID_native_fence_sync extension
  2018-10-18 17:51 [Bug 108487] Wayland compositors are unable to use hardware acceleration on i915 bugzilla-daemon
  2018-10-19 13:18 ` [Bug 108487] Wayland compositors are unable to use hardware acceleration on i915: missing EGL_ANDROID_native_fence_sync extension bugzilla-daemon
  2018-10-19 13:56 ` bugzilla-daemon
@ 2018-10-19 14:02 ` bugzilla-daemon
  2018-10-19 14:10 ` bugzilla-daemon
                   ` (17 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: bugzilla-daemon @ 2018-10-19 14:02 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 533 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=108487

--- Comment #2 from Chris Wilson <chris@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.

[-- Attachment #1.2: Type: text/html, Size: 1475 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug 108487] Wayland compositors are unable to use hardware acceleration on i915: missing EGL_ANDROID_native_fence_sync extension
  2018-10-18 17:51 [Bug 108487] Wayland compositors are unable to use hardware acceleration on i915 bugzilla-daemon
                   ` (2 preceding siblings ...)
  2018-10-19 14:02 ` bugzilla-daemon
@ 2018-10-19 14:10 ` bugzilla-daemon
  2018-10-19 17:00 ` bugzilla-daemon
                   ` (16 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: bugzilla-daemon @ 2018-10-19 14:10 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 484 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=108487

--- Comment #3 from Daniel Stone <daniel@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.

[-- Attachment #1.2: Type: text/html, Size: 1402 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug 108487] Wayland compositors are unable to use hardware acceleration on i915: missing EGL_ANDROID_native_fence_sync extension
  2018-10-18 17:51 [Bug 108487] Wayland compositors are unable to use hardware acceleration on i915 bugzilla-daemon
                   ` (3 preceding siblings ...)
  2018-10-19 14:10 ` bugzilla-daemon
@ 2018-10-19 17:00 ` bugzilla-daemon
  2018-10-19 17:12 ` bugzilla-daemon
                   ` (15 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: bugzilla-daemon @ 2018-10-19 17:00 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 801 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=108487

magiblot <magiblot@hotmail.com> changed:

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

--- Comment #4 from magiblot <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.

[-- Attachment #1.2: Type: text/html, Size: 2523 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug 108487] Wayland compositors are unable to use hardware acceleration on i915: missing EGL_ANDROID_native_fence_sync extension
  2018-10-18 17:51 [Bug 108487] Wayland compositors are unable to use hardware acceleration on i915 bugzilla-daemon
                   ` (4 preceding siblings ...)
  2018-10-19 17:00 ` bugzilla-daemon
@ 2018-10-19 17:12 ` bugzilla-daemon
  2018-10-29 10:56 ` [Bug 108487] Wayland compositors are unable to use hardware acceleration on i915 bugzilla-daemon
                   ` (14 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: bugzilla-daemon @ 2018-10-19 17:12 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 808 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=108487

magiblot <magiblot@hotmail.com> changed:

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

--- Comment #5 from magiblot <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.

[-- Attachment #1.2: Type: text/html, Size: 2597 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug 108487] Wayland compositors are unable to use hardware acceleration on i915
  2018-10-18 17:51 [Bug 108487] Wayland compositors are unable to use hardware acceleration on i915 bugzilla-daemon
                   ` (5 preceding siblings ...)
  2018-10-19 17:12 ` bugzilla-daemon
@ 2018-10-29 10:56 ` bugzilla-daemon
  2018-10-29 10:57 ` bugzilla-daemon
                   ` (13 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: bugzilla-daemon @ 2018-10-29 10:56 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 687 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=108487

Pekka Paalanen <ppaalanen@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.

[-- Attachment #1.2: Type: text/html, Size: 1256 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug 108487] Wayland compositors are unable to use hardware acceleration on i915
  2018-10-18 17:51 [Bug 108487] Wayland compositors are unable to use hardware acceleration on i915 bugzilla-daemon
                   ` (6 preceding siblings ...)
  2018-10-29 10:56 ` [Bug 108487] Wayland compositors are unable to use hardware acceleration on i915 bugzilla-daemon
@ 2018-10-29 10:57 ` bugzilla-daemon
  2018-12-04  6:46 ` bugzilla-daemon
                   ` (12 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: bugzilla-daemon @ 2018-10-29 10:57 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 310 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=108487

--- Comment #6 from Pekka Paalanen <ppaalanen@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.

[-- Attachment #1.2: Type: text/html, Size: 1131 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug 108487] Wayland compositors are unable to use hardware acceleration on i915
  2018-10-18 17:51 [Bug 108487] Wayland compositors are unable to use hardware acceleration on i915 bugzilla-daemon
                   ` (7 preceding siblings ...)
  2018-10-29 10:57 ` bugzilla-daemon
@ 2018-12-04  6:46 ` bugzilla-daemon
  2018-12-04  6:59 ` bugzilla-daemon
                   ` (11 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: bugzilla-daemon @ 2018-12-04  6:46 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 715 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=108487

--- Comment #7 from Duane Voth <duanev@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-devel@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.

[-- Attachment #1.2: Type: text/html, Size: 1640 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug 108487] Wayland compositors are unable to use hardware acceleration on i915
  2018-10-18 17:51 [Bug 108487] Wayland compositors are unable to use hardware acceleration on i915 bugzilla-daemon
                   ` (8 preceding siblings ...)
  2018-12-04  6:46 ` bugzilla-daemon
@ 2018-12-04  6:59 ` bugzilla-daemon
  2018-12-04 11:13 ` bugzilla-daemon
                   ` (10 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: bugzilla-daemon @ 2018-12-04  6:59 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 251 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=108487

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

(can't edit comments?)

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1065 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug 108487] Wayland compositors are unable to use hardware acceleration on i915
  2018-10-18 17:51 [Bug 108487] Wayland compositors are unable to use hardware acceleration on i915 bugzilla-daemon
                   ` (9 preceding siblings ...)
  2018-12-04  6:59 ` bugzilla-daemon
@ 2018-12-04 11:13 ` bugzilla-daemon
  2018-12-04 13:23 ` bugzilla-daemon
                   ` (9 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: bugzilla-daemon @ 2018-12-04 11:13 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 703 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=108487

--- Comment #9 from magiblot <magiblot@hotmail.com> ---
(In reply to Duane Voth from comment #8)
> $ weston --use-pixman

Thanks for the hint. I hadn't tried this one.

The workaround dismisses the error message but, unfortunately, doesn't enable
hardware acceleration, at least for me:

> $ glxinfo
>   Extended renderer info (GLX_MESA_query_renderer):
>      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.

[-- Attachment #1.2: Type: text/html, Size: 1642 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug 108487] Wayland compositors are unable to use hardware acceleration on i915
  2018-10-18 17:51 [Bug 108487] Wayland compositors are unable to use hardware acceleration on i915 bugzilla-daemon
                   ` (10 preceding siblings ...)
  2018-12-04 11:13 ` bugzilla-daemon
@ 2018-12-04 13:23 ` bugzilla-daemon
  2018-12-05 19:47 ` bugzilla-daemon
                   ` (8 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: bugzilla-daemon @ 2018-12-04 13:23 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 955 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=108487

--- Comment #10 from Pekka Paalanen <ppaalanen@gmail.com> ---
(In reply to magiblot from comment #9)
> The workaround dismisses the error message but, unfortunately, doesn't
> enable hardware acceleration

Yes, the whole point of --use-pixman is to use Pixman software rendering which
will be faster than GL with a software renderer. If anything, it will disable
hardware acceleration for the compositor and apps.

It is used to get something on screen, when hardware acceleration doesn't work
for any reason.

Daniel's guess in comment #3 is still the best guess here.

One thing to test to confirm would be to hack Weston's build so that
HAVE_GBM_MODIFIERS will not get defined. If that works, then we know that using
gbm_surface_create_with_modifiers() does not work while gbm_surface_create()
works.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1891 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug 108487] Wayland compositors are unable to use hardware acceleration on i915
  2018-10-18 17:51 [Bug 108487] Wayland compositors are unable to use hardware acceleration on i915 bugzilla-daemon
                   ` (11 preceding siblings ...)
  2018-12-04 13:23 ` bugzilla-daemon
@ 2018-12-05 19:47 ` bugzilla-daemon
  2018-12-10  8:36 ` bugzilla-daemon
                   ` (7 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: bugzilla-daemon @ 2018-12-05 19:47 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 412 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=108487

--- Comment #11 from magiblot <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.

[-- Attachment #1.2: Type: text/html, Size: 1270 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug 108487] Wayland compositors are unable to use hardware acceleration on i915
  2018-10-18 17:51 [Bug 108487] Wayland compositors are unable to use hardware acceleration on i915 bugzilla-daemon
                   ` (12 preceding siblings ...)
  2018-12-05 19:47 ` bugzilla-daemon
@ 2018-12-10  8:36 ` bugzilla-daemon
  2019-01-31  3:02 ` bugzilla-daemon
                   ` (6 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: bugzilla-daemon @ 2018-12-10  8:36 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 563 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=108487

--- Comment #12 from Pekka Paalanen <ppaalanen@gmail.com> ---
(In reply to magiblot from comment #11)
> Is there any simple way (e.g. using a PKGBUILD file) to compile weston with
> undefined HAVE_GBM_MODIFIERS?

Not really, it needs to be patched out. There should be just one occurrence in
configure.ac for it so hacking the condition to always evaluate to false or
change the HAVE_ name to something else should do it.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1460 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug 108487] Wayland compositors are unable to use hardware acceleration on i915
  2018-10-18 17:51 [Bug 108487] Wayland compositors are unable to use hardware acceleration on i915 bugzilla-daemon
                   ` (13 preceding siblings ...)
  2018-12-10  8:36 ` bugzilla-daemon
@ 2019-01-31  3:02 ` bugzilla-daemon
  2019-01-31 18:25 ` bugzilla-daemon
                   ` (5 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: bugzilla-daemon @ 2019-01-31  3:02 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 314 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=108487

--- Comment #13 from Daniel Stone <daniel@fooishbar.org> ---
A Weston patch is available here, but needs testing:
https://gitlab.freedesktop.org/wayland/weston/merge_requests/92

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1213 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug 108487] Wayland compositors are unable to use hardware acceleration on i915
  2018-10-18 17:51 [Bug 108487] Wayland compositors are unable to use hardware acceleration on i915 bugzilla-daemon
                   ` (14 preceding siblings ...)
  2019-01-31  3:02 ` bugzilla-daemon
@ 2019-01-31 18:25 ` bugzilla-daemon
  2019-03-09 14:18 ` bugzilla-daemon
                   ` (4 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: bugzilla-daemon @ 2019-01-31 18:25 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 1146 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=108487

--- Comment #14 from magiblot <magiblot@hotmail.com> ---
Created attachment 143267
  --> https://bugs.freedesktop.org/attachment.cgi?id=143267&action=edit
Stderr output of weston when run on i915 (with patch from comment #13)

(In reply to Daniel Stone from comment #13)

Thank you very much! I applied the patch over weston-git and tried again. It
got closer, but still doesn't work for me.

The following errors have now appeared:

> [13:53:34.450] failed to create kms fb: No such file or directory
> [13:53:34.450] failed to get drm_fb for bo
> [13:53:34.979] failed to create kms fb: No such file or directory
> [13:53:34.980] failed to get drm_fb for bo
> [13:53:35.035] failed to create kms fb: No such file or directory
> [13:53:35.035] failed to get drm_fb for bo

weston doesn't crash or anything. After startup, the content of the tty
continues being shown and weston appears to be idle. Ctrl+Alt+Backspace exits
weston normally and control is given back to the shell.

Cheers.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2323 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug 108487] Wayland compositors are unable to use hardware acceleration on i915
  2018-10-18 17:51 [Bug 108487] Wayland compositors are unable to use hardware acceleration on i915 bugzilla-daemon
                   ` (15 preceding siblings ...)
  2019-01-31 18:25 ` bugzilla-daemon
@ 2019-03-09 14:18 ` bugzilla-daemon
  2019-03-09 14:21 ` bugzilla-daemon
                   ` (3 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: bugzilla-daemon @ 2019-03-09 14:18 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 393 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=108487

--- Comment #15 from Number Nine <no.0000000000009@gmail.com> ---
I have the same exact problem on HP Pavilion DV4000 and I do confirm that
undefining HAVE_GBM_MODIFIERS (5c8eef147c27a95ebb8ba79e19ebb190b025cbe0) allows
Weston to run without --use-pixman.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1219 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug 108487] Wayland compositors are unable to use hardware acceleration on i915
  2018-10-18 17:51 [Bug 108487] Wayland compositors are unable to use hardware acceleration on i915 bugzilla-daemon
                   ` (16 preceding siblings ...)
  2019-03-09 14:18 ` bugzilla-daemon
@ 2019-03-09 14:21 ` bugzilla-daemon
  2019-04-27 23:33 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: bugzilla-daemon @ 2019-03-09 14:21 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 1297 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=108487

--- Comment #16 from Number Nine <no.0000000000009@gmail.com> ---
(In reply to magiblot from comment #14)
> Created attachment 143267 [details]
> Stderr output of weston when run on i915 (with patch from comment #13)
> 
> (In reply to Daniel Stone from comment #13)
> 
> Thank you very much! I applied the patch over weston-git and tried again. It
> got closer, but still doesn't work for me.
> 
> The following errors have now appeared:
> 
> > [13:53:34.450] failed to create kms fb: No such file or directory
> > [13:53:34.450] failed to get drm_fb for bo
> > [13:53:34.979] failed to create kms fb: No such file or directory
> > [13:53:34.980] failed to get drm_fb for bo
> > [13:53:35.035] failed to create kms fb: No such file or directory
> > [13:53:35.035] failed to get drm_fb for bo
> 
> weston doesn't crash or anything. After startup, the content of the tty
> continues being shown and weston appears to be idle. Ctrl+Alt+Backspace
> exits weston normally and control is given back to the shell.
> 
> Cheers.

If you add #undef HAVE_GBM_MODIFIERS into libweston/compositor-drm.c and
rebuild, it should do as a temporary hack.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2653 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug 108487] Wayland compositors are unable to use hardware acceleration on i915
  2018-10-18 17:51 [Bug 108487] Wayland compositors are unable to use hardware acceleration on i915 bugzilla-daemon
                   ` (17 preceding siblings ...)
  2019-03-09 14:21 ` bugzilla-daemon
@ 2019-04-27 23:33 ` bugzilla-daemon
  2019-05-13  2:23 ` bugzilla-daemon
  2019-05-16 14:14 ` bugzilla-daemon
  20 siblings, 0 replies; 22+ messages in thread
From: bugzilla-daemon @ 2019-04-27 23:33 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 2616 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=108487

--- Comment #17 from Alex Villacís Lasso <alexvillacislasso@hotmail.com> ---
I see the exact same issue on my machine when trying weston. This bug is very
similar to one I had a hand in working around in mutter:
https://gitlab.gnome.org/GNOME/mutter/issues/127 . The mutter workaround
essentially tries calling gbm_bo_get_handle_for_plane() on plane 0 of the bo,
sees if the call succeeded, and if not, falls back on calling
gbm_bo_get_handle() while storing DRM_FORMAT_MOD_INVALID, which in turn causes
the subsequent code to call drmModeAddFB[2]() instead of the unsupported
drmModeAddFB2WithModifiers().

This should really be fixed in mesa. Quoting myself from the mutter bug report:
----- BEGIN QUOTE -----
@daniels I think I found the cause why mesa code fails the
gbm_bo_get_handle_for_plane call with the i915 driver. However, it is not clear
to me whether it is an actual bug, or just the code "working" as designed.

The gbm_bo_get_handle_for_plane implementation was introduced by commit
f9567ab435217a72cbae628336ead84dc0b2a803 (gbm: Export a getter for per plane
handles). This implementation contains the following check, which remains to
this day:

   if (!dri->image || dri->image->base.version < 13 || !dri->image->fromPlanar)
   {
      errno = ENOSYS;
      return ret;
   }

One of the conditions for the call is that the base.version member is 13 or
above. This member (dri->image) is a __DRIimageExtension *, according to
src/gbm/backends/dri/gbm_driint.h in the Mesa code.

There are several DRI drivers that define a static __DRIimageExtension with
type __DRI_IMAGE, along with an API version. In the case of i965
(src/mesa/drivers/dri/i965/intel_screen.c), the api is at version 16. However,
in the case of i915 (src/mesa/drivers/dri/i915/intel_screen.c) the api is at
version 7.

At first sight, it looks as though the version check in the initial commit is
too restrictive. According to include/GL/internal/dri_interface.h in the Mesa
code, the fromPlanar member of __DRIimage should be available since __DRI_IMAGE
API version 5. However, the commit does not include comments on why version 13
is the minimum required for fetching the plane handle. Again, according to
include/GL/internal/dri_interface.h, the one property that requires 13 as a
minimum is __DRI_IMAGE_ATTRIB_OFFSET. So maybe the code assumes that whoever
calls  gbm_bo_get_handle_for_plane will also fetch the offset.

----- END QUOTE -----

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 3552 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug 108487] Wayland compositors are unable to use hardware acceleration on i915
  2018-10-18 17:51 [Bug 108487] Wayland compositors are unable to use hardware acceleration on i915 bugzilla-daemon
                   ` (18 preceding siblings ...)
  2019-04-27 23:33 ` bugzilla-daemon
@ 2019-05-13  2:23 ` bugzilla-daemon
  2019-05-16 14:14 ` bugzilla-daemon
  20 siblings, 0 replies; 22+ messages in thread
From: bugzilla-daemon @ 2019-05-13  2:23 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 885 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=108487

--- Comment #18 from Alex Villacís Lasso <alexvillacislasso@hotmail.com> ---
Created attachment 144243
  --> https://bugs.freedesktop.org/attachment.cgi?id=144243&action=edit
gbm: gbm_bo_get_handle_for_plane fallback to nonplanar handle

Here is a patch for Mesa 19.0.3 that fixes the issue for me on Fedora 30
x86_64. Essentially the patch returns the nonplanar handle if the API check
fails, making the gbm_bo_get_handle_for_plane() call equivalent to
gbm_bo_get_handle() if requesting plane 0. With this patch, weston starts up
and works correctly for me. Gnome Shell remains unaffected.

Merge request (against master) here:
https://gitlab.freedesktop.org/mesa/mesa/merge_requests/871

This should eventually be backported to 19.0.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2097 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug 108487] Wayland compositors are unable to use hardware acceleration on i915
  2018-10-18 17:51 [Bug 108487] Wayland compositors are unable to use hardware acceleration on i915 bugzilla-daemon
                   ` (19 preceding siblings ...)
  2019-05-13  2:23 ` bugzilla-daemon
@ 2019-05-16 14:14 ` bugzilla-daemon
  20 siblings, 0 replies; 22+ messages in thread
From: bugzilla-daemon @ 2019-05-16 14:14 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 524 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=108487

Daniel Stone <daniel@fooishbar.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #19 from Daniel Stone <daniel@fooishbar.org> ---
Fixed with b2200514 in Mesa.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2081 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2019-05-16 14:14 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-18 17:51 [Bug 108487] Wayland compositors are unable to use hardware acceleration on i915 bugzilla-daemon
2018-10-19 13:18 ` [Bug 108487] Wayland compositors are unable to use hardware acceleration on i915: missing EGL_ANDROID_native_fence_sync extension bugzilla-daemon
2018-10-19 13:56 ` bugzilla-daemon
2018-10-19 14:02 ` bugzilla-daemon
2018-10-19 14:10 ` bugzilla-daemon
2018-10-19 17:00 ` bugzilla-daemon
2018-10-19 17:12 ` bugzilla-daemon
2018-10-29 10:56 ` [Bug 108487] Wayland compositors are unable to use hardware acceleration on i915 bugzilla-daemon
2018-10-29 10:57 ` bugzilla-daemon
2018-12-04  6:46 ` bugzilla-daemon
2018-12-04  6:59 ` bugzilla-daemon
2018-12-04 11:13 ` bugzilla-daemon
2018-12-04 13:23 ` bugzilla-daemon
2018-12-05 19:47 ` bugzilla-daemon
2018-12-10  8:36 ` bugzilla-daemon
2019-01-31  3:02 ` bugzilla-daemon
2019-01-31 18:25 ` bugzilla-daemon
2019-03-09 14:18 ` bugzilla-daemon
2019-03-09 14:21 ` bugzilla-daemon
2019-04-27 23:33 ` bugzilla-daemon
2019-05-13  2:23 ` bugzilla-daemon
2019-05-16 14:14 ` bugzilla-daemon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.