From c648e545395a6bb4fac62c9f0a68af200a787b7b Mon Sep 17 00:00:00 2001 From: "Dr. Chat" Date: Sat, 27 Feb 2016 11:30:50 -0600 Subject: [PATCH] Short-circuit draw calls if the render target's pitch is 0 --- src/xenia/gpu/vulkan/vulkan_command_processor.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/xenia/gpu/vulkan/vulkan_command_processor.cc b/src/xenia/gpu/vulkan/vulkan_command_processor.cc index f04ec1ad3..1bd05f16a 100644 --- a/src/xenia/gpu/vulkan/vulkan_command_processor.cc +++ b/src/xenia/gpu/vulkan/vulkan_command_processor.cc @@ -178,6 +178,11 @@ bool VulkanCommandProcessor::IssueDraw(PrimitiveType primitive_type, return IssueCopy(); } + if ((regs[XE_GPU_REG_RB_SURFACE_INFO].u32 & 0x3FFF) == 0) { + // Doesn't actually draw. + return true; + } + // TODO(benvanik): move to CP or to host (trace dump, etc). if (FLAGS_vulkan_renderdoc_capture_all && device_->is_renderdoc_attached()) { device_->BeginRenderDocFrameCapture();