From owner-freebsd-emulation@freebsd.org Wed Jul 27 22:03:58 2016 Return-Path: Delivered-To: freebsd-emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 78EA0BA6BD9 for ; Wed, 27 Jul 2016 22:03:58 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4FC881D6C for ; Wed, 27 Jul 2016 22:03:58 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 4B6C9BA6BD8; Wed, 27 Jul 2016 22:03:58 +0000 (UTC) Delivered-To: emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4B0BBBA6BD7 for ; Wed, 27 Jul 2016 22:03:58 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 27CC91D6A for ; Wed, 27 Jul 2016 22:03:58 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: by freefall.freebsd.org (Postfix) id 266741582; Wed, 27 Jul 2016 22:03:58 +0000 (UTC) Delivered-To: vbox@localmail.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by freefall.freebsd.org (Postfix) with ESMTP id 086E11581; Wed, 27 Jul 2016 22:03:58 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-io0-x231.google.com (mail-io0-x231.google.com [IPv6:2607:f8b0:4001:c06::231]) (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 CA0081D69; Wed, 27 Jul 2016 22:03:57 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: by mail-io0-x231.google.com with SMTP id m101so83150140ioi.2; Wed, 27 Jul 2016 15:03:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=RGy0iUiMLSW3PMTy+iXv420Qfetdzo4dGgjcCSKzi68=; b=aH0wgR18OslwJ5Frx/lUDfe16vMCg+8DA/h6h4HZAJpriB1mPy/fHp1Jc6Ewyb0fpr y/vd7h8g+m9u74G2XgvVlU2TITFpHwJcWcgrpdR1pSl4a3mykEE4xXWpZ820UWIbu+Ue Y0MS42Ei2xnJwXHfaQyJLZM642A6Islt+W05m4Cljcj7Jazdimn7ukRXXXZvVSsvNIex 77IiR0VxllTEj/4hz9WcsnXQJJYGLupqYfwpk955BKcKEbyjdjSDJY9Sm8t9uM2MuoJY N9XCp0rRLWsrfX5bIfogmWvok82j9Lp028g7uc6zSoCnvS0SVlHmZWcPbGJMNG9FvRhK amWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=RGy0iUiMLSW3PMTy+iXv420Qfetdzo4dGgjcCSKzi68=; b=BVO98qDsnPj4rgKb+xNRwjH+h1z7HtZGonot7xGZe/TJ0061AlfT1TQ0spP147KJK+ EY6MTKoEbq/Greof8mp3E2CriM0YQWJG1WGmKoxkby9gZXMnTTmwdamV23yK+OGsIZ/s pbVAQIUJcwAP+93aRVAoG1LF0PPg61j/XvMkIy/Fjl/Jg3GYQCDo8fEZ9NG3kHTmZfGN GcTdddMIM+PmJRPOnHP5ly6+GPDxw41KR60pnHVIz5RQ9rQ/TtcQdwCyEuWySeWVvvVb 1ECDFUtpprQeaZ4nMrYMhI9p0mlxgCm7WQskaPZ1IlqK3jbChyBrYoyAuHVcTowl/4yl MG+w== X-Gm-Message-State: AEkoouuWlEwK2fGajn/Q4QKDRamunEAXIBG/v6adx2fAxu3/bm7pZC42L0tQwjuiBy6jOwMi1UXOiX1sb0Rrnw== X-Received: by 10.107.137.102 with SMTP id l99mr35817330iod.177.1469657036855; Wed, 27 Jul 2016 15:03:56 -0700 (PDT) MIME-Version: 1.0 Sender: kob6558@gmail.com Received: by 10.79.78.213 with HTTP; Wed, 27 Jul 2016 15:03:56 -0700 (PDT) In-Reply-To: References: <448336e1-2490-7b10-f628-1a53e9ea6a63@FreeBSD.org> <5f5334ef-fca2-8134-a44b-86441b759748@bsd.com.br> From: Kevin Oberman Date: Wed, 27 Jul 2016 15:03:56 -0700 X-Google-Sender-Auth: rzXCivS9dYv4Tacy00bv-uIGcv8 Message-ID: Subject: Re: About the dri support on 5.0.26 To: Jung-uk Kim Cc: =?UTF-8?B?T3RhY8OtbGlv?= , vbox@freebsd.org X-Mailman-Approved-At: Wed, 27 Jul 2016 22:10:20 +0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jul 2016 22:03:58 -0000 On Wed, Jul 27, 2016 at 11:26 AM, Jung-uk Kim wrote: > On 07/27/16 02:10 PM, Otac=C3=ADlio wrote: > > Em 27/07/2016 13:40, Jung-uk Kim escreveu: > >> On 07/25/16 08:17 PM, Otac=C3=ADlio wrote: > >>> Now that dri support was removed from Virtualbox 5.0.26, how will be > the > >>> support for OpenGL applications? > >> Now its own libraries are used, i.e., VBoxOGL.so & VBoxEGL.so replace > >> libGL.so & libEGL.so, when OPENGL option is enabled. It is still work > >> in progress but please try r419160 and later. > >> > >> Jung-uk Kim > >> > > Dear, > > > > I have a try and I would like to thank you very much by your support. > > This version provides a initial support to OpenGL. If you needs some > > help in a manner that I can help you please let me know. > > > > Only for information. I have installed the 5419160 of > > virtualbox-ose-addtions with OpenGL enabled. After that I got this info > > from glxinfo -B and glxgears > > > > [ota@nostromo /usr/home/ota]$ glxinfo -B > > name of display: :0.0 > > display: :0 screen: 0 > > direct rendering: Yes > > OpenGL vendor string: Humper > > OpenGL renderer string: Chromium > > OpenGL version string: 2.1 Chromium 1.9 > > OpenGL shading language version string: 4.00 - Build 10.18.10.4276 > > > > [ota@nostromo /usr/home/ota]$ glxgears > > 2332 frames in 5.0 seconds =3D 466.394 FPS > > 1292 frames in 5.0 seconds =3D 258.259 FPS > > 1413 frames in 5.0 seconds =3D 282.587 FPS > > 1406 frames in 5.0 seconds =3D 280.992 FPS > > 1412 frames in 5.0 seconds =3D 282.395 FPS > > 1379 frames in 5.0 seconds =3D 275.709 FPS > > > > > > So, then I have recompiled libGL and I got this info: > > > > [ota@nostromo /usr/home/ota]$ glxinfo -B > > name of display: :0.0 > > display: :0 screen: 0 > > direct rendering: Yes > > Extended renderer info (GLX_MESA_query_renderer): > > Vendor: VMware, Inc. (0xffffffff) > > Device: llvmpipe (LLVM 3.7, 256 bits) (0xffffffff) > > Version: 11.2.2 > > Accelerated: no > > Video memory: 4674MB > > Unified memory: no > > Preferred profile: core (0x1) > > Max core profile version: 3.3 > > Max compat profile version: 3.0 > > Max GLES1 profile version: 1.1 > > Max GLES[23] profile version: 3.0 > > OpenGL vendor string: VMware, Inc. > > OpenGL renderer string: Gallium 0.4 on llvmpipe (LLVM 3.7, 256 bits) > > OpenGL core profile version string: 3.3 (Core Profile) Mesa 11.2.2 > > OpenGL core profile shading language version string: 3.30 > > OpenGL core profile context flags: (none) > > OpenGL core profile profile mask: core profile > > > > OpenGL version string: 3.0 Mesa 11.2.2 > > OpenGL shading language version string: 1.30 > > OpenGL context flags: (none) > > > > OpenGL ES profile version string: OpenGL ES 3.0 Mesa 11.2.2 > > OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.= 00 > > > > [ota@nostromo /usr/home/ota]$ glxgears > > 613 frames in 5.0 seconds =3D 122.536 FPS > > 633 frames in 5.0 seconds =3D 126.534 FPS > > 475 frames in 5.0 seconds =3D 94.839 FPS > > 486 frames in 5.0 seconds =3D 97.098 FPS > > 489 frames in 5.0 seconds =3D 97.690 FPS > > 502 frames in 5.0 seconds =3D 100.340 FPS > > 491 frames in 5.0 seconds =3D 98.122 FPS > > > > Looks like a incompatibility between libGL and virtualbox-ose-addition= s > > with OpenGL > > emulators/virtualbox-ose-additions must be installed *after* > graphics/libGL. In other words, when you reinstall graphics/libGL, you > also have to reinstall emulators/virtualbox-ose-additions because > libGL.so* and libEGL.so* are overwritten by the last one. Please note I > mimicked x11/nvidia-driver* installation method and it is the only > supported multi-libGL mechanism by graphics team AFAICT. > > Jung-uk Kim > This really needs to be VERY clearly documented! I'm not sure of the best way. I guess the bast that the port can do is include it in pkg-message. It would be great if the graphics/libGL port could be modified to note the presence of emulators/virtualbox-ose-additions and put out a warning. I also worry about keeping things in sync. If MESA is updated in the "standard" ports, will the new libdrm play nicely with the VirtualBox versions? -- Kevin Oberman, Part time kid herder and retired Network Engineer E-mail: rkoberman@gmail.com PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683