From owner-freebsd-x11@freebsd.org Wed Mar 28 05:27:29 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 2E9B6F5DC3F for ; Wed, 28 Mar 2018 05:27:29 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id B5D10762E5 for ; Wed, 28 Mar 2018 05:27:28 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 6BE31F5DC3A; Wed, 28 Mar 2018 05:27:28 +0000 (UTC) Delivered-To: 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 473F6F5DC30 for ; Wed, 28 Mar 2018 05:27:28 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-vk0-x229.google.com (mail-vk0-x229.google.com [IPv6:2607:f8b0:400c:c05::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A7FCC762E2; Wed, 28 Mar 2018 05:27:27 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: by mail-vk0-x229.google.com with SMTP id k187so688780vke.12; Tue, 27 Mar 2018 22:27:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=Fj/ZPjoNBz3r9OUu30noGGXPPm6Q913Q+Eqev2NlKuU=; b=GhJwg9Ru6XPjjO9lHpgNe8fMFyhJeRGCwT2jWGbz7SKH+3k/MUxCq4B1wafB44rVk/ hhaHqOZr8JnsGR1yVskkIWX5mE6jRCADP+XrIoJX5mQXdagbT/8Tcw670+dkR7D6OVYP RsXWXiV0FI20ItPbu1/Jg8LSrbHibPzWuzZPZQLet9E9TVhEswShaO2qlMwPOEXvaosH rNgwXQbHJ8UgBJCnJrluM2Bhrd6yLKRc1af07pkWHfIo0QFmvYEGYw+noZNQM4D3iYIx nM/fusIArX1KdOPVZFpsXJYJTA2H6HaX6QmLE1T1q/7bI2PzhOWMjNl6lBOzdsuqsHDa bnlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=Fj/ZPjoNBz3r9OUu30noGGXPPm6Q913Q+Eqev2NlKuU=; b=tMbwT3DtObEz2tqVwiXOWwP7U6NHBvl3pALsh8C9Zi05G9+XV+bd+VfGKewDHu7h02 sTrQDyIIPzZUT3aF9i1lWUKspPhGXdzU/LeIA9mfwhZCkZLSmV6taSiLhKzXzqamN1GY UM2nDoVmtiewEddEujpjEYehuIfhKNHDK6HElY03Qtu5hOF9cvn2V4XaPHgWRcbgzYB7 rvB9Lx4fGROF9yZz5UXQXoesaEIvO9Qu6gz5nBNl+zSDhhixoW4CIAOLuoYfFnsFhzjo pa1adNRoga3oAO5d4vnN6QjosdPd+Nx7fE5xA6tFsORypEJax5wKeltZ8slny3Aj1mDB E0Ig== X-Gm-Message-State: AElRT7ExWoK4VJ+iyLbiFu6qg28h6DChxlnanepMOh02K5lu6nFmRaOT ApmxoTrp8Gu+fZWsIJDmYuFXEE2/Cd/p9eOA8L1STtkK X-Google-Smtp-Source: AIpwx48e6g+JfkxuQFT142CTrQzbP3IJOQDnJhCd2GYsXbhzxmUJjG3pzHDvoYjh5pF859TAmIadZNMVO/aK0V1dv/E= X-Received: by 10.31.92.69 with SMTP id q66mr1272777vkb.155.1522214846859; Tue, 27 Mar 2018 22:27:26 -0700 (PDT) MIME-Version: 1.0 Sender: kob6558@gmail.com Received: by 10.103.91.5 with HTTP; Tue, 27 Mar 2018 22:27:26 -0700 (PDT) In-Reply-To: <7epx-cg9f-wny@FreeBSD.org> References: <7epx-cg9f-wny@FreeBSD.org> From: Kevin Oberman Date: Tue, 27 Mar 2018 22:27:26 -0700 X-Google-Sender-Auth: XB0qGU3Vv_HQywM5WGr_1dnHq7M Message-ID: Subject: Re: [CFT] Mesa 18.0.0 update (mesa-libs, mesa-dri, libosmesa, clover) To: Jan Beich Cc: "freebsd-x11@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Mar 2018 05:27:29 -0000 On Tue, Mar 27, 2018 at 3:20 PM, Jan Beich wrote: > Mesa provides OpenGL drivers for Intel and AMD cards on FreeBSD. Recently, > a new major version was released. So far it was only tested by > drm-next-kmod. > Can someone test on FreeBSD < 11.2 for regressions? In case of issues > attach > /var/log/Xorg.0.log, run with LIBGL_DEBUG=verbose and check if 17.3.7 is > also > affected. > > I'd like to land the update in 2 weeks: 18.0.0 on /latest, 17.3.7 on > /quarterly. > > # Apply > $ fetch -qo /tmp/mesa-17.3.7.diff 'https://bugs.freebsd.org/bugz > illa/attachment.cgi?id=191718' > $ fetch -qo /tmp/mesa-18.0.0.diff 'https://bugs.freebsd.org/bugz > illa/attachment.cgi?id=191881' > $ patch -Efsp1 -i /tmp/mesa-17.3.7.diff -d /usr/ports > $ patch -Efsp1 -i /tmp/mesa-18.0.0.diff -d /usr/ports > $ make all deinstall install clean -C /usr/ports/graphics/mesa-libs > $ make all deinstall install clean -C /usr/ports/graphics/mesa-dri > > # Undo > $ patch -REfsp1 -i /tmp/mesa-18.0.0.diff -d /usr/ports > $ patch -REfsp1 -i /tmp/mesa-17.3.7.diff -d /usr/ports > $ make all deinstall install clean -C /usr/ports/graphics/mesa-libs > $ make all deinstall install clean -C /usr/ports/graphics/mesa-dri > > # Testing examples > - graphics/mesa-demos: glxgears, eglgears_x11 > - multimedia/mpv: --hwdec=auto (VAAPI/VDPAU EGL interop) > - www/firefox: layers.acceleration.force-enabled=true (GPU compositing) > - https://forums.freebsd.org/threads/unreal-engine-4.65300/ > System is a ThinkPad T520 (Sandy Bridge running 11.1-Stable r331492). The results confuse me a bit as glxgears is clearly running much faster, but gets errors with mesa-18. Let me know if I can provide any further information. mesa-17.3: > glxgears Running synchronized to the vertical refresh. The framerate should be approximately the same as the monitor refresh rate. 300 frames in 5.0 seconds = 59.883 FPS 299 frames in 5.0 seconds = 59.687 FPS 299 frames in 5.0 seconds = 59.694 FPS > eglgears_x11 --help EGL_VERSION = 1.4 (DRI2) mpv appears to run with functional vaapi. Almost no CPU on a 1920x1080 AVC file. I set layers.acceleration.force-enabled to true with no obvious problems, but I don't know just what to look for. No errors in Xorg.log mesa-18 > glxgears [intel_init_bufmgr: 1788] Kernel 3.9 required. libGL error: failed to create dri screen libGL error: failed to load driver: i965 5860 frames in 5.0 seconds = 1171.865 FPS 6060 frames in 5.0 seconds = 1211.919 FPS 5994 frames in 5.0 seconds = 1198.623 FPS 5701 frames in 5.0 seconds = 1140.189 FPS No idea wht the significance of the errors is. > eglgears_x11 [intel_init_bufmgr: 1788] Kernel 3.9 required. libEGL warning: DRI2: failed to create dri screen EGL_VERSION = 1.4 (DRI2) mpv appears to run with functional vaapi. Almost no CPU on a 1920x1080 AVC file. I set layers.acceleration.force-enabled to true with no obvious problems, but I don't know just what to look for. Interesting bit of Xorg.log: [242860.803] (II) intel(0): [DRI2] Setup complete [242860.803] (II) intel(0): [DRI2] DRI driver: i965 [242860.803] (II) intel(0): [DRI2] VDPAU driver: va_gl [242860.803] (II) intel(0): direct rendering: DRI2 enabled [242860.812] (II) intel(0): hardware support for Present enabled [242860.812] (WW) intel(0): Option "RegistryDwords" is not used [242860.812] (--) RandR disabled [242860.833] (EE) AIGLX error: Calling driver entry point failed [242860.834] (EE) AIGLX: reverting to software rendering -- Kevin Oberman, Part time kid herder and retired Network Engineer E-mail: rkoberman@gmail.com PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683