From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 104306] Mesa 17.3 breaks Firefox and other Xwayland apps on AMD HD7750 Date: Wed, 10 Jan 2018 16:47:17 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0378086949==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 060CC6E31A for ; Wed, 10 Jan 2018 16:47:17 +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 --===============0378086949== Content-Type: multipart/alternative; boundary="15156028362.FC44.23445"; charset="UTF-8" --15156028362.FC44.23445 Date: Wed, 10 Jan 2018 16:47:16 +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=3D104306 --- Comment #14 from eric vz --- Thanks, Michel. On a hanging call to glxinfo, dri2_validate_usage is being called from gbm_dri_bo_import, which gets parameters of a 100x100 FD image buffer for usage 5 (scanout | rendering). However, the image texture winds= up with is_displayable =3D 0, so si_check_resource_capabilities returns false, gbm_dri_bo_import destroys the image, and glxinfo hangs. I confirmed that = if I set variable usage =3D 0 the problem does not occur. I have not yet been a= ble to trace where the texture flags are set, but I got far enough to find that they're being read from the image buffer as metadata.=20=20 However, it occurs to me that as a newcomer to the domain (e.g., I had to google what a scanout is), I don't know the real problem: * Should usage include scanout? * Should the image metadata include is_displayable?=20 * Should the null return from gbm_dri_bo_import cause the caller to hang? Either point 1 or point 2 seems like it must be wrong, and might be the eas= iest fix. Point 1 seems the stronger case, since glxinfo doesn't actually draw anything as far as I'm aware. Since Firefox, Chromium, and other apps also = seem to fail on this, I'm expecting to find some kind of common initialization c= ode that does it. Will report back when I get time to dig. Or, if anyone knows better than I do which avenue to pursue, I'm happy to be redirected. I don= 't expect to have time to look at this until the weekend. --=20 You are receiving this mail because: You are the assignee for the bug.= --15156028362.FC44.23445 Date: Wed, 10 Jan 2018 16:47:16 +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 # 14 on bug 10430= 6 from eric vz
Thanks, Michel.  On a hanging call to glxinfo, dri2_validate_u=
sage is being
called from gbm_dri_bo_import, which gets parameters of a 100x100 FD image
buffer for usage 5 (scanout | rendering).  However, the image texture winds=
 up
with is_displayable =3D 0, so si_check_resource_capabilities returns false,
gbm_dri_bo_import destroys the image, and glxinfo hangs.  I confirmed that =
if I
set variable usage =3D 0 the problem does not occur.  I have not yet been a=
ble to
trace where the texture flags are set, but I got far enough to find that
they're being read from the image buffer as metadata.=20=20

However, it occurs to me that as a newcomer to the domain (e.g., I had to
google what a scanout is), I don't know the real problem:

* Should usage include scanout?
* Should the image metadata include is_displayable?=20
* Should the null return from gbm_dri_bo_import cause the caller to hang?

Either point 1 or point 2 seems like it must be wrong, and might be the eas=
iest
fix. Point 1 seems the stronger case, since glxinfo doesn't actually draw
anything as far as I'm aware. Since Firefox, Chromium, and other apps also =
seem
to fail on this, I'm expecting to find some kind of common initialization c=
ode
that does it.  Will report back when I get time to dig.  Or, if anyone knows
better than I do which avenue to pursue, I'm happy to be redirected.  I don=
't
expect to have time to look at this until the weekend.


You are receiving this mail because:
  • You are the assignee for the bug.
= --15156028362.FC44.23445-- --===============0378086949== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0378086949==--