Fix Star Ocean with MSAA enabled: don't use the blit optimization, can't blit to multisampled images.

This commit is contained in:
Henrik Rydgård committed 2025-04-10 21:33:05 +02:00
1 parent d52a7ee67e
commit 73cdbe204e
2 files changed
+9

No files matched your search

+4
View File
@@ -1525,6 +1525,10 @@ void VulkanQueueRunner::PerformBlit(const VKRStep &step, VkCommandBuffer cmd) {
int layerCount = std::min(step.blit.src->numLayers, step.blit.dst->numLayers);
_dbg_assert_(step.blit.src->numLayers >= step.blit.dst->numLayers);
// Blitting is not allowed for multisample images. You're suppose to use vkCmdResolveImage but it only goes in one direction (multi to single).
_dbg_assert_(step.blit.src->sampleCount == VkSampleCountFlagBits::VK_SAMPLE_COUNT_1_BIT);
_dbg_assert_(step.blit.dst->sampleCount == VkSampleCountFlagBits::VK_SAMPLE_COUNT_1_BIT);
VKRFramebuffer *src = step.blit.src;
VKRFramebuffer *dst = step.blit.dst;