Skip to content

Commit 2809a39

Browse files
committed
Added back skip shaders for full bb
1 parent b3e2747 commit 2809a39

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/video_core/renderer_vulkan/vk_pipeline_cache.cpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,15 @@ const ComputePipeline* PipelineCache::GetComputePipeline() {
231231
return it->second;
232232
}
233233

234+
bool ShouldSkipShader(u64 shader_hash, const char* shader_type) {
235+
static std::vector<u64> skip_hashes = {};
236+
if (std::ranges::contains(skip_hashes, shader_hash)) {
237+
LOG_WARNING(Render_Vulkan, "Skipped {} shader hash {:#x}.", shader_type, shader_hash);
238+
return true;
239+
}
240+
return false;
241+
}
242+
234243
bool PipelineCache::RefreshGraphicsKey() {
235244
std::memset(&graphics_key, 0, sizeof(GraphicsPipelineKey));
236245

@@ -337,6 +346,10 @@ bool PipelineCache::RefreshGraphicsKey() {
337346
return false;
338347
}
339348

349+
if (ShouldSkipShader(bininfo.shader_hash, "graphics")) {
350+
return false;
351+
}
352+
340353
auto params = Liverpool::GetParams(*pgm);
341354
std::optional<Shader::Gcn::FetchShaderData> fetch_shader_;
342355
std::tie(infos[stage_out_idx], modules[stage_out_idx], fetch_shader_,

0 commit comments

Comments
 (0)