Skip to content

nix: add a vulkan option and enable xcb QT platform by default#2060

Open
marius851000 wants to merge 1 commit intooverte-org:masterfrom
marius851000:nix_vulkan
Open

nix: add a vulkan option and enable xcb QT platform by default#2060
marius851000 wants to merge 1 commit intooverte-org:masterfrom
marius851000:nix_vulkan

Conversation

@marius851000
Copy link

Those changes make add a "overte-full-vulkan" package, that is overte-full but with Vulkan. It also set the default QT platform to xcb. Runnable with NIXPKGS_ALLOW_INSECURE=1 nix build .#overte-full-vulkan --impure (insecure and impure needed due to the outdated vulnerable qtwebengine, that #2012 fixes)

I figured that #2012 also sets the default QT platform to xcb. This will create a merge conflict (which should likely be easily fixed once one or the other PR is merged). I’ll go review this other PR.

Ping @RTUnreal things you might want to take a look at that.

@marius851000
Copy link
Author

Oh! And I tried adding GLES, but it needed recompilation of glad, and it didn’t appeared important enought to try to fix that.

@RTUnreal
Copy link
Collaborator

RTUnreal commented Feb 4, 2026

I would wait for 74 to finish the vulkan implementation, before making it more widely available via the flake.
If you want to develop on the vulkan feature as well, you can pop in the devshell after adding vulkan-loader and vulkan-headers.

Copy link
Collaborator

@RTUnreal RTUnreal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the changes, but I would wait on the completed vulkan work, before merging this

];
] ++ (lib.optionals (renderingBackend == "Vulkan") [
vulkan-loader
vulkan-headers
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should that not be in the nativeBuildInputs?

gif_creator
artery-font-format
openssl
libGL
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would also recommend, making this optional if the renderingBackend is not "OpenGL"


stdenv.mkDerivation {
pname = "overte";
pname = "overte-${lib.toLower renderingBackend}";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe leave the opengl rendering to overte and make vulkan overte-vulkan

@HifiExperiments
Copy link
Member

just to mention we also have a grant task to make the different backends switchable via command line arguments, so we wouldn’t need separate versions. but we’ll see if I can actually get that working 😅

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants