This commit is contained in:
CamilleLaVey
2026-08-01 03:41:13 -04:00
parent 4b3608b58d
commit 50763528a2
2 changed files with 3 additions and 1 deletions
@@ -959,7 +959,7 @@ bool BlockLinearUnswizzle2DPass::IsSupported(const VideoCommon::ImageInfo& info)
if (info.type != VideoCommon::ImageType::e2D) {
return false;
}
if (info.resources.levels != 1 || info.resources.layers != 1) {
if (info.resources.levels != 1) {
return false;
}
if (info.num_samples > 1) {
@@ -1241,6 +1241,8 @@ void TextureCache<P>::UploadImageContents(Image& image, StagingBuffer& staging)
return;
}
gpu_memory->FlushRegion(gpu_addr, image.guest_size_bytes,
VideoCommon::CacheType::NoTextureCache);
Tegra::Memory::GpuGuestMemory<u8, Tegra::Memory::GuestMemoryFlags::UnsafeRead> swizzle_data(
*gpu_memory, gpu_addr, image.guest_size_bytes, &swizzle_data_buffer);
if (True(image.flags & ImageFlagBits::Converted)) {