From cb21fefbd90e01f85f4d0823231db9f45282eba3 Mon Sep 17 00:00:00 2001 From: kd-11 Date: Fri, 22 Sep 2023 13:32:03 +0300 Subject: [PATCH] rsx: Fix bpp when working with DMA-only (null) memory sections --- rpcs3/Emu/RSX/VK/VKTextureCache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/RSX/VK/VKTextureCache.cpp b/rpcs3/Emu/RSX/VK/VKTextureCache.cpp index 985b221ca5..2371aa9a8e 100644 --- a/rpcs3/Emu/RSX/VK/VKTextureCache.cpp +++ b/rpcs3/Emu/RSX/VK/VKTextureCache.cpp @@ -198,7 +198,7 @@ namespace vk .image_width = width, .image_height = height, .image_pitch = real_pitch, - .image_bpp = rsx::get_format_block_size_in_bytes(gcm_format) + .image_bpp = context == rsx::texture_upload_context::dma ? internal_bpp : rsx::get_format_block_size_in_bytes(gcm_format) }; // Execute