[dxvk] Enable creating full pre-rasterization pipeline libraries

This commit is contained in:
Philip Rebohle 2023-01-09 16:08:49 +01:00 committed by Philip Rebohle
parent 17529101d5
commit 28ae85b7ab
1 changed files with 10 additions and 1 deletions

View File

@ -304,9 +304,18 @@ namespace dxvk {
if (shaders.gs != nullptr)
vsKey.addShader(shaders.gs);
if (vsKey.canUsePipelineLibrary())
if (vsKey.canUsePipelineLibrary()) {
vsLibrary = findPipelineLibraryLocked(vsKey);
if (!vsLibrary) {
// If multiple shader stages are participating, create a
// pipeline library so that it can potentially be reused.
// Don't dispatch the pipeline library to a worker thread
// since it should be compiled on demand anyway.
vsLibrary = createPipelineLibraryLocked(vsKey);
}
}
if (vsLibrary) {
DxvkShaderPipelineLibraryKey fsKey;