Vulkan: Add support for doing intra-buffer block copies with vkCmdCopyImage.

This commit is contained in:
Henrik Rydgård committed 2026-01-22 13:47:41 +01:00
1 parent 026ea6e197
commit 7bca84252e
4 files changed
+95 -63

No files matched your search

+1 -1
View File
@@ -3452,7 +3452,7 @@ void FramebufferManagerCommon::BlitFramebuffer(VirtualFramebuffer *dst, int dstX
bool useBlit = channel == RASTER_COLOR ? draw_->GetDeviceCaps().framebufferBlitSupported : false;
bool useCopy = channel == RASTER_COLOR ? draw_->GetDeviceCaps().framebufferCopySupported : false;
if (dst == currentRenderVfb_ || dst->fbo->MultiSampleLevel() != 0 || src->fbo->MultiSampleLevel() != 0) {
if (src != dst && (dst == currentRenderVfb_ || dst->fbo->MultiSampleLevel() != 0 || src->fbo->MultiSampleLevel() != 0)) {
// If already bound, using either a blit or a copy is unlikely to be an optimization.
// So we're gonna use a raster draw instead. Also multisampling has problems with copies currently.
useBlit = false;