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

[dxvk] Do not invalidate buffers that allow querying the device address

This commit is contained in:
Philip Rebohle 2024-09-13 16:25:37 +02:00
parent ddb59ae394
commit fb552db65f

View File

@ -6386,6 +6386,10 @@ namespace dxvk {
if (buffer->isForeign())
return false;
// Don't discard buffers that need a stable device address
if (buffer->info().usage & VK_BUFFER_USAGE_SHADER_DEVICE_ADDRESS_BIT)
return false;
// Suspend the current render pass if transform feedback is active prior to
// invalidating the buffer, since otherwise we may invalidate a bound buffer.
if ((buffer->info().usage & VK_BUFFER_USAGE_TRANSFORM_FEEDBACK_COUNTER_BUFFER_BIT_EXT)