1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-04-05 16:40:17 +02:00

[dxvk] Don't probe buffer compatibility on image-only memory types

Silences a validation error.
This commit is contained in:
Philip Rebohle 2025-02-06 15:28:59 +01:00
parent 215cebc019
commit e5a81f8c7e

View File

@ -1885,6 +1885,9 @@ namespace dxvk {
for (uint32_t i = 0; i < m_memTypeCount; i++) {
bufferInfo.usage = m_memTypes[i].bufferUsage;
if (!bufferInfo.usage)
continue;
if (!getBufferMemoryRequirements(bufferInfo, requirements)
|| !(requirements.memoryRequirements.memoryTypeBits & (1u << i))) {
m_memTypes[i].bufferUsage &= VK_BUFFER_USAGE_SHADER_DEVICE_ADDRESS_BIT