diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-05-10 02:51:34 +0200 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-05-10 02:51:34 +0200 |
commit | 8d15f8b28e1e51dde31ad9197cc2eaa16b98ad65 (patch) | |
tree | 620e86ea8093abbb0d464d915b1af6e09f00d01c /src | |
parent | VideoCore: Use SyncGuestMemory mechanism for Shader/Pipeline Cache invalidation. (diff) | |
download | yuzu-8d15f8b28e1e51dde31ad9197cc2eaa16b98ad65.tar yuzu-8d15f8b28e1e51dde31ad9197cc2eaa16b98ad65.tar.gz yuzu-8d15f8b28e1e51dde31ad9197cc2eaa16b98ad65.tar.bz2 yuzu-8d15f8b28e1e51dde31ad9197cc2eaa16b98ad65.tar.lz yuzu-8d15f8b28e1e51dde31ad9197cc2eaa16b98ad65.tar.xz yuzu-8d15f8b28e1e51dde31ad9197cc2eaa16b98ad65.tar.zst yuzu-8d15f8b28e1e51dde31ad9197cc2eaa16b98ad65.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_pipeline_cache.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp b/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp index fe45ed269..a5c7b7945 100644 --- a/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp +++ b/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp @@ -329,8 +329,7 @@ VKPipelineCache::DecompileShaders(const GraphicsPipelineCacheKey& key) { const GPUVAddr gpu_addr = GetShaderAddress(system, program_enum); const auto cpu_addr = memory_manager.GpuToCpuAddress(gpu_addr); - ASSERT(cpu_addr); - const auto shader = TryGet(*cpu_addr); + const auto shader = cpu_addr ? TryGet(*cpu_addr) : null_shader; ASSERT(shader); const std::size_t stage = index == 0 ? 0 : index - 1; // Stage indices are 0 - 5 |