Short-circuit draw calls if the render target's pitch is 0

This commit is contained in:
Dr. Chat 2016-02-27 11:30:50 -06:00
parent 6109e0b03a
commit c648e54539
1 changed files with 5 additions and 0 deletions

View File

@ -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();