video_core/renderer_vulkan: Ignore unsupported shader stages (#778)
Some checks are pending
Reuse / reuse (push) Waiting to run
Clang Format / clang-format (push) Waiting to run
Linux-Qt / build (push) Waiting to run
Linux / build (push) Waiting to run
macOS-Qt / build (push) Waiting to run
macOS / build (push) Waiting to run
Windows-Qt / build (push) Waiting to run
Windows / build (push) Waiting to run

* video_core/renderer_vulkan: Ignore unsupported shader stages

* clang-format
This commit is contained in:
Daniel R. 2024-09-04 23:55:06 +02:00 committed by GitHub
parent 76f4ceda31
commit eb2520a240
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -298,6 +298,11 @@ bool PipelineCache::RefreshGraphicsKey() {
} }
const auto stage = Shader::StageFromIndex(i); const auto stage = Shader::StageFromIndex(i);
const auto params = Liverpool::GetParams(*pgm); const auto params = Liverpool::GetParams(*pgm);
if (stage != Shader::Stage::Vertex && stage != Shader::Stage::Fragment) {
return false;
}
std::tie(infos[i], modules[i], key.stage_hashes[i]) = GetProgram(stage, params, binding); std::tie(infos[i], modules[i], key.stage_hashes[i]) = GetProgram(stage, params, binding);
} }
return true; return true;