Graphic drivers install - nutthawit/alpine-dotfile GitHub Wiki

Hardware acceleration is the use of computer hardware, known as a hardware accelerator, to perform specific functions faster than can be done by software running on a general-purpose central processing unit (CPU). Any transformation of data that can be calculated in software running on a generic CPU can also be calculated in custom-made hardware, or in some mix of both.

Ref: https://en.wikipedia.org/wiki/Hardware_acceleration

Hardware Acceleration explained on Youtube: https://www.youtube.com/watch?v=Mts_dtDaWpQ

OpenGL is an open standard that specifies an abstract application programming interface (API) for drawing 2D and 3D graphics.

Vulkan is a modern, low-level, explicit API. It removes many of the historical performance bottlenecks of OpenGL by giving the developer direct, fine-grained control over the GPU hardware.

OpenGL wikipedia

Vulkan wikipedia

Mesa project is an open-source implementation of the OpenGL specification. Over the years the project has grown to implement more graphics APIs, including OpenGL ES, OpenCL, VA-API, Vulkan and EGL. Mesa ties into several other open-source projects: the Direct Rendering Infrastructure, X.org, and Wayland to provide OpenGL support on Linux, FreeBSD, and other operating systems.

Read more on docs.mesa3d.org

Gallium is a new GPU abstraction layer introduced in 2008 by Tungsten Graphics development group. The latest Mesa drivers are based on Gallium

Read more on freedesktop.org

On desktop environment we need graphics driver to work properly. If you are unsure about your graphics card, use lspci from pciutils package to identify the graphics card:

apk add pciutils
lspci -k | grep -EA3 "VGA|3D|Display"


00:02.0 VGA compatible controller: Intel Corporation Whiskey Lake-U GT1 [UHD Graphics 610] (rev 02)
        DeviceName: VGA
        Subsystem: ASUSTeK Computer Inc. Device 1961
        Kernel driver in use: i915

Install Mesa

apk add mesa-dri-gallium mesa-va-gallium

Since my VGA is intel, I need install more package for hardware accelerated video encoding and decoding.

apk add intel-media-driver

Reboot a machine

Read more wiki.alpinelinux.org