[dxvk] Don't do image-to-buffer copies for multisampled images

Vulkan does not allow this.
This commit is contained in:
Philip Rebohle 2018-09-25 14:37:53 +02:00
parent 305c361c00
commit 0be291e123
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
1 changed files with 6 additions and 0 deletions

View File

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