From 0be291e123b601c366ed6c5ef57a65585d53219f Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Tue, 25 Sep 2018 14:37:53 +0200 Subject: [PATCH] [dxvk] Don't do image-to-buffer copies for multisampled images Vulkan does not allow this. --- src/dxvk/dxvk_context.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/dxvk/dxvk_context.cpp b/src/dxvk/dxvk_context.cpp index cde496c0..512fc59a 100644 --- a/src/dxvk/dxvk_context.cpp +++ b/src/dxvk/dxvk_context.cpp @@ -736,6 +736,12 @@ namespace dxvk { dstImage->handle(), dstImageLayout, 1, &imageRegion); } else { + // TODO handle this case correctly + if (dstImage->info().sampleCount != VK_SAMPLE_COUNT_1_BIT) { + Logger::err("DXVK: MSAA depth<>color copies not supported"); + return; + } + const VkDeviceSize transferBufferSize = std::max( util::computeImageDataSize(dstImage->info().format, extent), util::computeImageDataSize(srcImage->info().format, extent));