mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-20 08:52:22 +01:00
[dxvk] Filter out BDA usage for buffer invalidation early exit
This commit is contained in:
parent
469025d234
commit
0fd00087e9
@ -1387,7 +1387,8 @@ namespace dxvk {
|
|||||||
// may be bound to either directly or through views.
|
// may be bound to either directly or through views.
|
||||||
VkBufferUsageFlags usage = buffer->info().usage &
|
VkBufferUsageFlags usage = buffer->info().usage &
|
||||||
~(VK_BUFFER_USAGE_TRANSFER_DST_BIT |
|
~(VK_BUFFER_USAGE_TRANSFER_DST_BIT |
|
||||||
VK_BUFFER_USAGE_TRANSFER_SRC_BIT);
|
VK_BUFFER_USAGE_TRANSFER_SRC_BIT |
|
||||||
|
VK_BUFFER_USAGE_SHADER_DEVICE_ADDRESS_BIT);
|
||||||
|
|
||||||
// Fast early-out for plain uniform buffers, very common
|
// Fast early-out for plain uniform buffers, very common
|
||||||
if (likely(usage == VK_BUFFER_USAGE_UNIFORM_BUFFER_BIT)) {
|
if (likely(usage == VK_BUFFER_USAGE_UNIFORM_BUFFER_BIT)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user