mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-12-12 15:54:25 +01:00
VkPipelineCache: Use a null shader on invalid address.
This commit is contained in:
parent
0a4be73b9b
commit
8d15f8b28e
@ -329,8 +329,7 @@ VKPipelineCache::DecompileShaders(const GraphicsPipelineCacheKey& key) {
|
|||||||
|
|
||||||
const GPUVAddr gpu_addr = GetShaderAddress(system, program_enum);
|
const GPUVAddr gpu_addr = GetShaderAddress(system, program_enum);
|
||||||
const auto cpu_addr = memory_manager.GpuToCpuAddress(gpu_addr);
|
const auto cpu_addr = memory_manager.GpuToCpuAddress(gpu_addr);
|
||||||
ASSERT(cpu_addr);
|
const auto shader = cpu_addr ? TryGet(*cpu_addr) : null_shader;
|
||||||
const auto shader = TryGet(*cpu_addr);
|
|
||||||
ASSERT(shader);
|
ASSERT(shader);
|
||||||
|
|
||||||
const std::size_t stage = index == 0 ? 0 : index - 1; // Stage indices are 0 - 5
|
const std::size_t stage = index == 0 ? 0 : index - 1; // Stage indices are 0 - 5
|
||||||
|
Loading…
Reference in New Issue
Block a user