nix-community / nixGL

A wrapper tool for nix OpenGL application [maintainer=@guibou]
626 stars 76 forks source link

Does `nixVulkanIntel` enable Vulkan Software rendering? #82

Open georgewsinger opened 2 years ago

georgewsinger commented 2 years ago

I'm looking for a way to force enable Vulkan software rendering on arbitrary nix programs (running NixOS, in case it matters).

Can nixVulkanIntel play a part in this? If not, is it feasible with this package with modifications (I'm willing to help out here)?

guibou commented 2 years ago

Hi @georgewsinger, thank you for your question.

How do you force enable vulkan software rendering (Using the mesa renderer, if you want a more "generic" solution, I'm afraid we are out of luck)?

nixVulkanIntel can for sure be used to force the software rendering, however I'm wondering if that's the right place. Providing a driver And forcing software rendering are two different problems.

For example, you may want to write a "simple" wrapper such as:

#!/usr/bin/env bash
VULKAN_FORCE_SOFTWARE=1 # I have no idea, but mesa defines LIBGL_ALWAYS_SOFTWARE with similar result for OpenGL
"$@"