Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vulkan-hdr-layer-kwin6: init at 0.1.0 #345805

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Conversation

d4rk
Copy link

@d4rk d4rk commented Oct 1, 2024

Enables HDR support for Vulkan clients (such as mpv) on kwin6.

https://github.com/Zamundaaa/VK_hdr_layer

This is likely to be a temporary solution until Wayland upstream adopts the necessary protocols, however that has been in the works for many years.

For the time being, this provides a path for users to experiment with HDR, share feedback and hopefully make progress.

Arch provides a similar package:
https://aur.archlinux.org/packages/vk-hdr-layer-kwin6-git

Example usage after installing the layer:

ENABLE_HDR_WSI=1 mpv \
    --hwdec=auto-safe --vo=gpu-next --target-colorspace-hint \
    --gpu-api=vulkan --gpu-context=waylandvk \
    <filename>

To enable Vulkan loader logs:

VK_LOADER_DEBUG=error,warn,info ENABLE_HDR_WSI=1 mpv \
    --hwdec=auto-safe --vo=gpu-next --target-colorspace-hint \
    --gpu-api=vulkan --gpu-context=waylandvk \
    <filename>

PS: The latest version of gamescope doesn't need Vulkan for HDR.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

d4rk and others added 3 commits October 1, 2024 12:35
https://github.com/Zamundaaa/VK_hdr_layer

Enables HDR support for games (via "gamescope"), and programs like
"mpv", that use Vulkan's HDR extensions.

This is likely to be a temporary solution until Wayland upstream
adopts the necessary protocols, however that has been in the works for
many years:

https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/14

For the time being, this provides a path for users to experiment with
HDR, share feedback and hopefully make progress.

Arch provides a similar package:
https://aur.archlinux.org/packages/vk-hdr-layer-kwin6-git
@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/prs-ready-for-review/3032/4632

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants