diff options
author | bunnei <[email protected]> | 2020-06-05 11:14:36 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2020-06-05 11:14:36 -0400 |
commit | 98671b4cfec9c7d331adc5cf1a0bb37667bc3c11 (patch) | |
tree | fcf40d65d0300abcb2ca797ff75a462ab24f6d89 /src | |
parent | 22369df357fc4e9fdc21bd4096128b84aebc41a2 (diff) | |
parent | 5616be12bef10a7eb15c4a1391954d9179f616d1 (diff) | |
download | yuzu-mainline-98671b4cfec9c7d331adc5cf1a0bb37667bc3c11.tar.gz yuzu-mainline-98671b4cfec9c7d331adc5cf1a0bb37667bc3c11.zip |
Merge pull request #4013 from ReinUsesLisp/skip-no-xfb
vk_rasterizer: Skip transform feedbacks when extension is unavailable
Diffstat (limited to 'src')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_rasterizer.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/video_core/renderer_vulkan/vk_rasterizer.cpp b/src/video_core/renderer_vulkan/vk_rasterizer.cpp index a3d992ed3..86328237e 100644 --- a/src/video_core/renderer_vulkan/vk_rasterizer.cpp +++ b/src/video_core/renderer_vulkan/vk_rasterizer.cpp @@ -838,6 +838,10 @@ void RasterizerVulkan::BeginTransformFeedback() { if (regs.tfb_enabled == 0) { return; } + if (!device.IsExtTransformFeedbackSupported()) { + LOG_ERROR(Render_Vulkan, "Transform feedbacks used but not supported"); + return; + } UNIMPLEMENTED_IF(regs.IsShaderConfigEnabled(Maxwell::ShaderProgram::TesselationControl) || regs.IsShaderConfigEnabled(Maxwell::ShaderProgram::TesselationEval) || @@ -866,6 +870,9 @@ void RasterizerVulkan::EndTransformFeedback() { if (regs.tfb_enabled == 0) { return; } + if (!device.IsExtTransformFeedbackSupported()) { + return; + } scheduler.Record( [](vk::CommandBuffer cmdbuf) { cmdbuf.EndTransformFeedbackEXT(0, 0, nullptr, nullptr); }); |