1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-20 19:54:19 +01:00

[d3d11] Fix image format mapping when creating mapped buffer

This commit is contained in:
Philip Rebohle 2019-03-26 17:36:07 +01:00
parent 7cd3e9a0d4
commit 8194bec1bf
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -406,7 +406,7 @@ namespace dxvk {
Rc<DxvkBuffer> 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 },