From 8194bec1bf4ef54e8f7e5dccebe4f78ab63da805 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Tue, 26 Mar 2019 17:36:07 +0100 Subject: [PATCH] [d3d11] Fix image format mapping when creating mapped buffer --- src/d3d11/d3d11_texture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/d3d11/d3d11_texture.cpp b/src/d3d11/d3d11_texture.cpp index 59987696..a3aed5db 100644 --- a/src/d3d11/d3d11_texture.cpp +++ b/src/d3d11/d3d11_texture.cpp @@ -406,7 +406,7 @@ namespace dxvk { Rc D3D11CommonTexture::CreateMappedBuffer() const { const DxvkFormatInfo* formatInfo = imageFormatInfo( - m_device->LookupFormat(m_desc.Format, GetFormatMode()).Format); + m_device->LookupPackedFormat(m_desc.Format, GetFormatMode()).Format); const VkExtent3D blockCount = util::computeBlockCount( VkExtent3D { m_desc.Width, m_desc.Height, m_desc.Depth },