Import the linux intel graphics role.

This commit is contained in:
Tom Alexander 2022-10-15 22:34:12 -04:00
parent 4f372514da
commit 35c2779a76
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
3 changed files with 28 additions and 6 deletions

View File

@ -17,3 +17,4 @@ users:
zfs_snapshot_datasets:
- zroot/linux/archmain/home
- zroot/linux/archmain/be
graphics_driver: "intel"

View File

@ -1,6 +1 @@
# - name: Install packages
# pacman:
# name:
# - foo
# state: present
# update_cache: true
- include_tasks: "tasks/linux_{{graphics_driver}}.yaml"

View File

@ -0,0 +1,26 @@
- name: Install packages
package:
name:
- linux-firmware # Arch wiki claims this is needed for hardware video acceleration in skylake or later
- xf86-video-intel
- mesa
- lib32-mesa
- vulkan-intel
- intel-media-driver # va-api support for broadwell (2014) and newer.
- lib32-vulkan-intel
- vulkan-icd-loader
- lib32-vulkan-icd-loader
- libva-utils # for vainfo
- vdpauinfo # for vdpauinfo
- libvdpau-va-gl # vdpau support
- intel-gpu-tools # optional for intel_gpu_top
- vulkan-tools # For vulkaninfo
state: present
- name: Configure vdpau to use va-api driver
copy:
src: vdpau.sh
dest: /etc/profile.d/vdpau.sh
mode: 0644
owner: root
group: root