From owner-freebsd-x11@freebsd.org Thu Mar 12 19:28:08 2020 Return-Path: Delivered-To: freebsd-x11@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 762BA269640 for ; Thu, 12 Mar 2020 19:28:08 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48df4S0jrrz4Xd7; Thu, 12 Mar 2020 19:28:08 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 1354) id 06C3614F88; Thu, 12 Mar 2020 19:28:06 +0000 (UTC) From: Jan Beich To: Pete Wright Cc: "freebsd-x11@freebsd.org" Subject: Re: xwayland issue with i965_dri.so References: <7bfd39a6-3236-c0f9-04d9-e8ecaeb15ca5@nomadlogic.org> <3b0b4275-e2be-09f7-45b4-5a84f45f7636@nomadlogic.org> Date: Thu, 12 Mar 2020 20:28:05 +0100 In-Reply-To: (Pete Wright's message of "Thu, 12 Mar 2020 11:29:01 -0700") Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Mar 2020 19:28:08 -0000 Pete Wright writes: > On 3/12/20 8:54 AM, Pete Wright wrote: >> >> >> On 2020-03-11 22:41, Jan Beich wrote: >>> Pete Wright writes: >>> >>>> hello - i've discussed this on irc but wanted to move it to email for >>>> wider exposure (and also providing myself with notes i can refer to >>>> later). >>>> >>>> i am able to launch sway on my i915 intel laptop running 12-STABLE >>>> without any issues, and i am able to run xfce4-terminal in native >>>> wayland more which is great! yet i notice this from the output >>>> from sway: >>>> >>>> i965_dri.so does not support the 0xffffffff PCI ID. >>> This error comes from Mesa. >>> >>>> Refusing to try glamor on llvmpipe >>>> EGL setup failed, disabling glamor >>>> Failed to initialize glamor, falling back to sw >>>> >>>> >>>> i believe this is causing problems with starting Xorg apps via >>>> xwayland, for example chrome and firefox crash on startup. i did some >>>> googling and it looks like Jan ran into this problem a while back: >>>> http://freebsd.1045724.x6.nabble.com/Xwayland-i965-dri-so-does-not-support-the-0xffffffff-PCI-ID-td6307408.html >>> I also had https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241821 >>> which did reappear for some time but not anymore. >>> >>> What FreeBSD kernel are you running? Makes sure you have >>> https://reviews.freebsd.org/D23846 as it may affect more than just >>> Vulkan in Mesa. >> Thanks for the tip on the outdated linux kernel, it does look like >> kernel didn't have that patch for the linuxkpi - rebuilding now and >> will update thread if this fixes things. >> > > hrm unfortunately running latest kernel from the STABLE branch didn't > fix this, nor did using the mesa-dri-19.0.x branch from the > freebsddesktop-ports github repo. maybe someone who is more > familiar with mesa can point me in the right direction to see why this > bogus pciID is being passed? (1) Try https://github.com/myfreeweb/freebsd-ports-dank/tree/lite/graphics/mesa-dev Intel switched default GL driver from i965 to iris. The latter is faster, supports more extensions and uses LLVM like AMD drivers. Reverting to i965 is as simple as "export MESA_LOADER_DRIVER_OVERRIDE=i965" (2) Try drm-devel-kmod: upgrade kernel to -CURRENT but leave world as is. For more bleeding edge use https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=244364 (3) Debug DRM ioctls using ktrace(1). Comparing with DRI3 usage in xorg-server may help. Without more people reporting the same issue it's hard to guess further.