From: bugzilla-daemon@freedesktop.org Subject: [Bug 108487] Wayland compositors are unable to use hardware acceleration on i915 Date: Mon, 13 May 2019 02:23:27 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0869118896==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id D59DA893B8 for ; Mon, 13 May 2019 02:23:27 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0869118896== Content-Type: multipart/alternative; boundary="15577142071.C1eA6d.15543" Content-Transfer-Encoding: 7bit --15577142071.C1eA6d.15543 Date: Mon, 13 May 2019 02:23:27 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D108487 --- Comment #18 from Alex Villac=C3=ADs Lasso --- Created attachment 144243 --> https://bugs.freedesktop.org/attachment.cgi?id=3D144243&action=3Dedit 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. --=20 You are receiving this mail because: You are the assignee for the bug.= --15577142071.C1eA6d.15543 Date: Mon, 13 May 2019 02:23:27 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated

Comme= nt # 18 on bug 10848= 7 from Alex Villac=C3=ADs= Lasso
Created attachment 144243 [details] [review]
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:
htt=
ps://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.
= --15577142071.C1eA6d.15543-- --===============0869118896== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVs --===============0869118896==--