[Vulkan] Skip draws with surface_pitch==0 to match D3D12
Realistically only affects memexport draws. Co-authored-by: Herman S. <429230+has207@users.noreply.github.com>
This commit is contained in:
committed by
Radosław Gliński
parent
654a8cacf5
commit
e6bdb0fdf7
@@ -2392,6 +2392,13 @@ bool VulkanCommandProcessor::IssueDraw(xenos::PrimitiveType prim_type,
|
||||
return IssueCopy();
|
||||
}
|
||||
|
||||
if (regs.Get<reg::RB_SURFACE_INFO>().surface_pitch == 0) {
|
||||
// Doesn't actually draw. Matches the Direct3D 12 backend.
|
||||
// TODO(Triang3l): Do something so memexport still works in this case maybe?
|
||||
// Unlikely that zero would even really be legal though.
|
||||
return true;
|
||||
}
|
||||
|
||||
const ui::vulkan::VulkanDevice::Properties& device_properties =
|
||||
GetVulkanDevice()->properties();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user