From c7ce9562fa01662655cb9bd38b1f008f264266ad Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sun, 11 Jul 2021 13:33:26 +1000 Subject: [PATCH] D3D12/Texture: Force 16MB uploads down temp texture path --- src/common/d3d12/texture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/d3d12/texture.cpp b/src/common/d3d12/texture.cpp index 9d266923c..71b9afa54 100644 --- a/src/common/d3d12/texture.cpp +++ b/src/common/d3d12/texture.cpp @@ -295,7 +295,7 @@ bool Texture::LoadData(u32 x, u32 y, u32 width, u32 height, const void* data, u3 const u32 texel_size = GetTexelSize(m_format); const u32 upload_pitch = Common::AlignUpPow2(width * texel_size, D3D12_TEXTURE_DATA_PITCH_ALIGNMENT); const u32 upload_size = upload_pitch * height; - if (upload_size > g_d3d12_context->GetTextureStreamBuffer().GetSize()) + if (upload_size >= g_d3d12_context->GetTextureStreamBuffer().GetSize()) { StagingTexture st; if (!st.Create(width, height, m_format, true) || !st.WritePixels(0, 0, width, height, data, pitch))