GithubHelp home page GithubHelp logo

cosmicfusion / fedora-amdgpu-pro Goto Github PK

View Code? Open in Web Editor NEW
80.0 7.0 11.0 302 KB

A repository that provides the proprietary driver for fedora without having to deal with hassle of getting RHEL repo to work , and it has 32 bit libraries

Shell 100.00%
amd vulkan amdgpu-pro amf fedora linux opencl opengl rpm

fedora-amdgpu-pro's Introduction

Deprecated and Archived!

With recent commits to VA-API AMD proprietary AMF is virtually useless on AMD hardware except polaris/GFX8/RX 5XX/RX 4XX series, but with AMF depending on the proprietary vulkan driver and that dropping support for Polaris too, it's now actually universally useless.

on top of that the proprietary vulkan driver lost it's RT Edge to Mesa RADV So it's useless too.

The proprietary OpenCL implentation is broken, unsupported, and unusable USE ROCm.

Meanwhile the much more performant Mesa radeonSI is now fully compatible with proprietary applications such as davinci resolve .

fedora-amdgpu-pro

This repository contains scripts for repacking the AMD proprietary drivers into Fedora-usable packages. It includes both 64 and 32 bit drivers.

Q&A

  • Proprietary drivers on AMD? thought those guys were open source ??

AMD's proprietary drivers only support a few linux distributions: Ubuntu LTS, SLES, RHEL, CentOS. Other distributions have to repackage their drivers.

While yes AMD driver stack is mostly open-source , as some parts remains proprietary like :

  • The legacy/pal/orca OpenCL drivers. (required for darktable , resolve & blender (< 3.0) , they also behave better than the ROCm OpenCL implentation when using wine .)
  • The industrial OpenGL drivers (required for resolve.)
  • The Advanced Media Framework (required for GPU H.264/H.265 encoding)
  • Vulkan drivers with ray tracing capabilities

How to build the packages:

"IMPORTANT NOTES" :

  1. Occasionally, the mock build may fail on 32 bit packages with the following issue:
Failed:
  shadow-utils-2:4.11.1-2.fc36.i686                                                                                                                                                                                                                               

Error: Transaction failed

This is a known issue. You can just ignore it and re-run the build.

  1. Starting from amdgpu-pro 21.50 the driver components -MUST- match the version of their firmware, and it's recommended to also match the drm version so we have repackaged the official "libdrm" along with the official amdgpu firmware used for their dkms modules, which we re-routed to be used for the amdgpu module in your kernel to fix these issues.

  2. We have made these libdrm libraries load using system wrappers (vk_pro, gl_pro, cl_pro)

  3. Using the official firmware will not cause any side-effects, they are practically the same as the normal ones except being properly versioned

We include a package builder script which uses mock to build packages with minimal dependencies. It will auto install the dependencies it needs (mock pykickstart fedpkg libvirt)

Use the package builder to build specific packages:

$ ./package-builder.sh 
-------------------------------------
Usage: <package-name> <architecture>
-------------------------------------
You must specify a package name and an architecture.
Achitecture options are "32" for 32 bit and "64" for 64 bit
-------------------------------------
64 bit package names are:
amd-gpu-pro-firmware
libdrm-pro
amdamf-pro-runtime
amdocl-legacy
amdogl-pro
amdvlk
amdvlk-pro
-------------------------------------
32 bit package names are:
libdrm-pro
amdocl-legacy
amdogl-pro
amdvlk
amdvlk-pro

How to install the packages:

Resulting packages are placed in the "package" subfolder. Install packages like so:

$ cd packages
$ sudo dnf install *.rpm

How to use Vulkan PRO drivers:

vk_pro {THE_PROGRAM}

How to use Vulkan AMDVLK drivers:

AMDVLK

  • Run the program with
vk_amdvlk {THE_PROGRAM}

How to use AMD AMF encoder:

  • The only requirement to use the AMF encoder is that it requires the PRO driver to be used, so you must run the application (such as obs or ffmpeg) with vk_pro:
vk_pro {THE_PROGRAM}

Note : H265 AMF is supported only on RDNA1 cards and higher (RX 5XXX) , the rest shall use H264.

How to use the OpenGL PRO drivers:

gl_pro {THE_PROGRAM}
  • You can also use the open source zink driver:
gl_zink {THE_PROGRAM}

How to use the OpenCL drivers:

cl_pro {THE_PROGRAM}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.