diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2022-12-14 21:33:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-14 21:33:10 +0100 |
commit | a222f02c7aa88bfbae10075e6a19ce1fbe672815 (patch) | |
tree | 67f7d5d94bfc66d71df7e60826a6c17ed54f9ef1 /src/video_core/renderer_vulkan/vk_pipeline_cache.cpp | |
parent | Merge pull request #9425 from german77/german_unlimited (diff) | |
parent | Fix validation errors on less compatible Intel GPU (diff) | |
download | yuzu-a222f02c7aa88bfbae10075e6a19ce1fbe672815.tar yuzu-a222f02c7aa88bfbae10075e6a19ce1fbe672815.tar.gz yuzu-a222f02c7aa88bfbae10075e6a19ce1fbe672815.tar.bz2 yuzu-a222f02c7aa88bfbae10075e6a19ce1fbe672815.tar.lz yuzu-a222f02c7aa88bfbae10075e6a19ce1fbe672815.tar.xz yuzu-a222f02c7aa88bfbae10075e6a19ce1fbe672815.tar.zst yuzu-a222f02c7aa88bfbae10075e6a19ce1fbe672815.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_pipeline_cache.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp b/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp index 81f5f3e11..86fdde014 100644 --- a/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp +++ b/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp @@ -341,6 +341,15 @@ PipelineCache::PipelineCache(RasterizerVulkan& rasterizer_, const Device& device .support_snorm_render_buffer = true, .support_viewport_index_layer = device.IsExtShaderViewportIndexLayerSupported(), }; + + if (device.GetMaxVertexInputAttributes() < Maxwell::NumVertexAttributes) { + LOG_WARNING(Render_Vulkan, "maxVertexInputAttributes is too low: {} < {}", + device.GetMaxVertexInputAttributes(), Maxwell::NumVertexAttributes); + } + if (device.GetMaxVertexInputBindings() < Maxwell::NumVertexArrays) { + LOG_WARNING(Render_Vulkan, "maxVertexInputBindings is too low: {} < {}", + device.GetMaxVertexInputBindings(), Maxwell::NumVertexArrays); + } } PipelineCache::~PipelineCache() = default; |