From owner-freebsd-x11@freebsd.org Sat Oct 6 13:02:57 2018 Return-Path: Delivered-To: freebsd-x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F1EE810B9890; Sat, 6 Oct 2018 13:02:56 +0000 (UTC) (envelope-from johalun0@gmail.com) Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6CEBC74009; Sat, 6 Oct 2018 13:02:56 +0000 (UTC) (envelope-from johalun0@gmail.com) Received: by mail-wm1-x343.google.com with SMTP id z25-v6so5509700wmf.1; Sat, 06 Oct 2018 06:02:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=77yMDPkw0G32D6R7cBoVKn6JG8zABA8ejPyzwv10SZw=; b=pyYuq57iVoRsUlRlC2F65FiJQymMT6CYhppIxUgfIONEIPoaNKax9Vu/3DsfoNRpq5 cxC28PlD1PqlY73nH992m/wdBjmWWkilnC3f77IQTqhloA9CNDwZOLBOOvzDeu0XyLPN ff8D8lqB/8c8jtP2q+LNZuPQqw1nEjJ0hqB2bfwGlHmLpJJ77jYexkfga8MwN6AyRgwF YhVzljjr37H9aNsb+FDvavuBu43Z4PqDHd8QPcVA+mycZ5y1FlCUErF8bPBC35z1e8vX lVAMr/tWtdVlhyvoRrhpNMtwnbe9xicw5omRuzEmOCfhB4rF8dGvQgfIF+FxH4tLOHBD U6ZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=77yMDPkw0G32D6R7cBoVKn6JG8zABA8ejPyzwv10SZw=; b=ABtEfM3NWdrXmwp/s877t8kWOuo7dTsr7jN0Mwocv0X8mx1Ok92XF4eiuEWFuik3yN YVPK10Nj8QsIHMFo9iWhaFKZMRD+Fu7ISAieyDIY4yOOx73uE/984zgZZk2AM5MFiGSn DlM7DjCuO8+qBBWA0cTSJ8PzL+WS5XIUD4dOtjAfBCqOSASAJPw6T6lMZRe172SOWalm t0fSkq8wnAdLRcIr7rI8ZQJapIC6sXBcANQ1XZ0AqurtEH20sHRBKspTYcsbChvpOVvP YPv9QONOsYu2knMVhqbh/fkPjmDi9vrTmTTCIAYS9J3sAvnEqb2P9VlZl1W77hwm897o TwJA== X-Gm-Message-State: ABuFfohFJydRsBqhSi7N/EYNKA2PVxELnIqliNceyF+0CZa0E5VmsC+H QUsHtF8XkAHQjifkninN7dMzM0pIJrBCDn2DpDo= X-Google-Smtp-Source: ACcGV63Gn8xfzv9jjJnHnT1GKImnBXknOWSKbN/ohxPP4UI+wUZUohn/JgAYrQ+NXiPuWGqh2PE6M+ZqayOSQZSHvxE= X-Received: by 2002:a1c:5801:: with SMTP id m1-v6mr10244907wmb.118.1538830975113; Sat, 06 Oct 2018 06:02:55 -0700 (PDT) MIME-Version: 1.0 References: <1538829480.11691.0@smtp.migadu.com> In-Reply-To: <1538829480.11691.0@smtp.migadu.com> From: Johannes Lundberg Date: Sat, 6 Oct 2018 14:02:18 +0100 Message-ID: Subject: Re: linux-c7 and opengl apps? To: Greg V Cc: theron.tarigo@gmail.com, freebsd-current , x11-list freebsd Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Oct 2018 13:02:57 -0000 On Sat, Oct 6, 2018 at 1:39 PM Greg V wrote: > > > On Fri, Oct 5, 2018 at 11:21 PM, Theron wrote: > > % /compat/linux/opt/VirtualGL/bin/glxinfo | grep OpenGL > > libGL error: MESA-LOADER: failed to retrieve device information > > Do you have linsysfs mounted? > > Try reading /compat/linux/sys/class/drm/card0/device/uevent. > > Mesa won't retrieve device information without linsysfs. > I wrote the linsysfs patch that exposed the info there so that recent > Mesa would work :) > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222375 > (Wow, that was a year ago=E2=80=A6 interesting note from there: you might > need to set LIBGL_DRI3_DISABLE=3D1 for Linux apps) > Thank you Greg! LIBGL_DRI3_DISABLE=3D1 was it for me! Now I can run OpenGL apps with linux-c7 :) > > Also, what's with the "/opt/VirtualGL"? Are you using mesa from > linux-c7 or something=E2=80=A6 weird? > > > This problem has existed forever. I am not sure it is actually a > > fault in Linux emulation, as these very same symptoms ("failed to > > retrieve device information" message, console freeze) existed back in > > FreeBSDDesktop/freebsd-base-graphics days when attempting to run > > purely FreeBSD OpenGL apps. At the time the workaround was a patch > > to Mesa's GPU detection; the underlying kernel problem wasn't > > addressed. > > There was a somewhat related issue (but not the same one, FreeBSD and > Linux versions of mesa/libdrm use different mechanisms to get device > info). > Mostly affected Wayland-EGL clients =E2=80=94 they would try to access > /dev/dri/card408 instead of /dev/dri/card0, fail to get info and fall > back to software rendering. > I fixed it a while ago: > > https://gitlab.freedesktop.org/mesa/mesa/commit/db8519a369261cdedda50852f= acc45616d4eba28 > > But I never saw console freezes when Mesa couldn't properly detect the > GPU o_0 > > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org= " >