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
Allow extending layers path vs just overriding it #616
Comments
(Not sure if you realize it, but you made the same issue #154 There certainly is an argument of uniformity to be made for adding more environment variables to the loader. One issue is that you can't use new env-vars in shipped code that has to work with older loaders. But for debugging it would be good to include more customization of search paths. Currently, there is VK_ICD_FILENAMES and VK_LAYER_PATH for deciding search logic.
These two would make env-vars more consistent, since the env var for layers only accepting paths and ICD's only accepting file names seems weird to me. To address similar issues: #287 and #613
|
The other issue is similar, but not exactly the same. I.e. setting explicit manifest for layers is indeed useful, but with this one I mean the idea similar to system
Variables with 'additional' for paths will achieve that too, but you'd need to figure out how to set the priority sequence then. |
I see, I did misunderstand that the issues weren't the same. This is for 'add additional search paths for layers', while the other issue is 'let me specify which files to use, instead of providing a directory' With that in mind, its possible to address both issues in one fell swoop, along with other open issues. I agree that allowing adding of paths/filenames to the search paths would be useful for developers. There isn't as much of a concern of 'ordering' because the order layers are searched is not that applicable to the order the layers are setup in. That is unless a layer shares a name and triggers the de-duplication logic, which is a distinct use case of such a feature. Issues I foresee:
|
That's actually my use case. I have system Mesa driver setup with Mesa Vulkan overlay provided as a layer in standard location. Then I want to run some things using a custom location of more recent build of Mesa and use the more recent overlay that comes with it. In isolation that works fine with simply setting some |
Ah, well then it seems that a 'add this path to layer search path' env-var should also take precedence in which layer is chosen in the case of duplicate layers. |
Working on this with PR #815. |
Done. You can now use |
According to the documentation:
Is there some way to do something like this: Load layers from the custom location as higher priority, and load the rest the same as usual?
If not, may be it would be good to add such loader logic?
The text was updated successfully, but these errors were encountered: