Skip to content

Commit

Permalink
[dxvk] Don't probe buffer compatibility on image-only memory types
Browse files Browse the repository at this point in the history
Silences a validation error.
  • Loading branch information
doitsujin committed Feb 6, 2025
1 parent 215cebc commit e5a81f8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/dxvk/dxvk_memory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e5a81f8

Please sign in to comment.