News for hackers. Stuff that matters.
Re:Pixelbook and “Nami” Chromebooks the First to Get Linux G... by robert_foss on Saturday January 19, 2019 @03:56AM (#18946070)
As a developer of this, it's built using Virgil3D[1], which is rather interesting tech, that allows virtualized guests to get hardware accelerated 3D graphics.

It works by having the guest run a Mesa3D (Linux Userspace graphics) driver called virgl in the guest, which takes all of the OpenGL/OpenGL ES commands and send them through through Linux VirtIO[3] to the guest, where they are executed by the virglrenderer[1] application as normal OpenGL / OpenGL ES commands.

This let's you run whichever driver you want on the host, even proprietary ones. And it allows you you to do transparent OpenGL <-> OpenGL ES translation.

[1] https://gitlab.freedesktop.org/virgl/virglrenderer/

[2] https://www.mesa3d.org/

[3] https://lwn.net/Articles/239238/

Re:Pixelbook and “Nami” Chromebooks the First to Get Linux G... by drcode on Saturday January 19, 2019 @07:51AM (#18946777)
Does this mean it won't accelerate 2d graphics? Should I expect acceleration in gimp/emacs/etc after the Crostini patch is available?
Re:Pixelbook and “Nami” Chromebooks the First to Get Linux G... by opencl on Saturday January 19, 2019 @09:28AM (#18947196)
It'll accelerate 2D graphics that use OpenGL. GIMP and emacs don't use hardware acceleration in the first place. Krita uses OpenGL to draw the canvas so it will get accelerated.
Re:Pixelbook and “Nami” Chromebooks the First to Get Linux G... by drcode on Saturday January 19, 2019 @12:01PM (#18947893)
> GIMP and emacs don't use hardware acceleration in the first place.

Honest question: On most OSes, don't regular drawing operations in these programs (Bitblits, font renderings) typically use hardware acceleration through the OS? On crostini, are these things currently done via pure CPU operations, or are they already being mapped to hardware-accelerated API calls, even before the new OpenGL support?

Re:Pixelbook and “Nami” Chromebooks the First to Get Linux G... by Jasper_ on Saturday January 19, 2019 @02:28PM (#18948706)
It's complicated and depends on a lot of things. On a typical Linux system, bitblt (well, XCopyArea) and font rendering will go through XRender, which may or may not use the GPU depending on driver support. On xf86-video-intel, it will use SNA, which will use the 2D blitter on Intel chips. It's unmaintained at this point and a bit buggy so some distros turn it off. Instead, one might use glamor, which implements XRender on top of OpenGL, which will use the 3D graphics hardware on Intel chips. So it depends on your system configuration.

For other operating systems, the words and details change, but the overall idea of "it's complicated and depends on your driver and OS version and which apps are running and phase of the moon" still applies.

Re:Pixelbook and “Nami” Chromebooks the First to Get Linux G... by bitwize on Saturday January 19, 2019 @12:23PM (#18948006)
With Xorg's GLAMOR driver, all 2d graphics use OpenGL.

God knows if Xwayland will incorporate GLAMOR. Since almost all compositors except for Weston assume the presence of a GPU, you'd think it would, but I have not been delighted with Wayland development thus far...

Re:Pixelbook and “Nami” Chromebooks the First to Get Linux G... by Jasper_ on Saturday January 19, 2019 @02:29PM (#18948708)
Xwayland has had glamor support since the very beginning.
Re:Pixelbook and “Nami” Chromebooks the First to Get Linux G... by bubblethink on Saturday January 19, 2019 @04:32AM (#18946163)
How does this compare (in performance, experience etc.) to the gvt-g approach ? At least one benefit of gvt-g seems to be that it would also work for windows guests.
Re:Pixelbook and “Nami” Chromebooks the First to Get Linux G... by robert_foss on Saturday January 19, 2019 @05:43AM (#18946357)
Without being familiar with being familiar with GVT-G, I would think Virgl3D performs worse, by a decent margin.