Linux/hadware acceleration 3D driver DRI vs. Gallium

Make.conf/VIDEO CARDS/DRI vs. Gallium 

https://www.funtoo.org/Make.conf/VIDEO_CARDS/DRI_vs._Gallium_vs._NVIDIA

DRI vs. Gallium

Graphics on Linux can be confusing due to the various technologies involved, not just the different graphics cards available but also the different software architectures for implementing graphics drivers. This page is here to help provide some context as to what makes up a 'Linux graphics stack.'

'Classic' Accelerated Graphics

Traditionally, accelerated graphics in X has been implemented using a combination of technologies:

  • DRI, which stands for Direct Rendering Infrastructure and are user-space libraries that provide accelerated 2D and 3D graphics for X.
  • DRM, the Direct Rendering Manager (Wikipedia) is considered to be a kernel-space component of DRI.
  • Mesa provides an accelerated OpenGL GLX library which leverages DRI and DRM to provide hardware-accelerated graphics.

Gallium Accelerated Graphics

More recently(2019), Open Source graphics drivers have started being written using a new architecture called Gallium (not to be confused with Glamour.) Gallium still makes use of the kernel's DRM but provides a more modern way to design graphics drivers. A Gallium-based graphics stack will typically be composed of the following:

  • DRI, which is still used to some extent.
  • DRM, the kernel-space component of the graphics stack.
  • Gallium, a user-space API that exposes the capabilities of the underlying hardware in a more hardware-agnostic way.
  • Mesa's OpenGL GLX library, which leverages Gallium to provide accelerated graphics.

The benefits of Gallium over the 'classic' approach to graphics support is that Gallium allows for user-space graphics libraries like OpenGL to target Gallium itself rather than be written specifically to the architecture of the underlying hardware. This allows for the OpenGL (and other graphics library) implementation to be de-coupled from the underlying hardware while still providing high performance. It's important to note that the benefits of Gallium are useful primarily to graphics driver developers; in theory, these benefits will result in improved and better-maintained graphics stacks which in turn will benefit Linux users. Said another way, just because a driver is Gallium-based doesn't necessarily mean that it will provide you, the user, with superior performance or functionality over a traditional alternative.

Your graphics driver may use DRIGallium or possibly -- in the case of the proprietary NVIDIA driver -- neither!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值