summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-05-29 08:05:26 +0200
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-05-29 08:05:29 +0200
commit5616be12bef10a7eb15c4a1391954d9179f616d1 (patch)
treebaa1ff6fd42d75abc847cd888fe791e7144da430 /src/video_core
parentMerge pull request #3991 from ReinUsesLisp/depth-sampling (diff)
downloadyuzu-5616be12bef10a7eb15c4a1391954d9179f616d1.tar
yuzu-5616be12bef10a7eb15c4a1391954d9179f616d1.tar.gz
yuzu-5616be12bef10a7eb15c4a1391954d9179f616d1.tar.bz2
yuzu-5616be12bef10a7eb15c4a1391954d9179f616d1.tar.lz
yuzu-5616be12bef10a7eb15c4a1391954d9179f616d1.tar.xz
yuzu-5616be12bef10a7eb15c4a1391954d9179f616d1.tar.zst
yuzu-5616be12bef10a7eb15c4a1391954d9179f616d1.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/renderer_vulkan/vk_rasterizer.cpp7
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 be5b77fae..882751f09 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); });