1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-02 01:24:11 +01:00

[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

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