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:
parent
215cebc019
commit
e5a81f8c7e
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user