[d3d11] Use only one mip level for multisampled textures

This commit is contained in:
Philip Rebohle 2018-03-13 11:29:25 +01:00
parent 06cff50453
commit 72f954088b
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
1 changed files with 3 additions and 2 deletions

View File

@ -291,8 +291,9 @@ namespace dxvk {
= GetFormatModeFromBindFlags(m_desc.BindFlags);
if (m_desc.MipLevels == 0) {
m_desc.MipLevels = util::computeMipLevelCount(
{ m_desc.Width, m_desc.Height, 1u });
m_desc.MipLevels = m_desc.SampleDesc.Count <= 1
? util::computeMipLevelCount({ m_desc.Width, m_desc.Height, 1u })
: 1;
}
DxvkImageCreateInfo info;