1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 18:53:28 +01:00

vk: Force ampere GPUs to use the slower but spec-compliant depth-color resize route

- TODO: More investigation and optimizations
This commit is contained in:
kd-11 2020-12-16 21:56:54 +03:00 committed by kd-11
parent 0a865bd9dc
commit cfbde005fb

View File

@ -621,7 +621,16 @@ namespace vk
{ {
auto typeless = vk::get_typeless_helper(VK_FORMAT_R16_UNORM, RSX_FORMAT_CLASS_COLOR, typeless_w, typeless_h); auto typeless = vk::get_typeless_helper(VK_FORMAT_R16_UNORM, RSX_FORMAT_CLASS_COLOR, typeless_w, typeless_h);
change_image_layout(cmd, typeless, VK_IMAGE_LAYOUT_GENERAL); change_image_layout(cmd, typeless, VK_IMAGE_LAYOUT_GENERAL);
stretch_image_typeless_unsafe(src, dst, typeless, src_rect, dst_rect, VK_IMAGE_ASPECT_DEPTH_BIT);
if (vk::get_chip_family() < vk::chip_class::NV_ampere)
{
stretch_image_typeless_unsafe(src, dst, typeless, src_rect, dst_rect, VK_IMAGE_ASPECT_DEPTH_BIT);
}
else
{
// Ampere GPUs don't like the direct transfer hack above
stretch_image_typeless_safe(src, dst, typeless, src_rect, dst_rect, VK_IMAGE_ASPECT_DEPTH_BIT, VK_IMAGE_ASPECT_DEPTH_BIT);
}
break; break;
} }
case VK_FORMAT_D32_SFLOAT: case VK_FORMAT_D32_SFLOAT: