Conor McCarthy : vkd3d: Do not flag a descriptor table as dirty if it is unchanged.
Alexandre Julliard
julliard at winehq.org
Fri Jan 7 15:01:22 CST 2022
Module: vkd3d
Branch: master
Commit: c04b6b1765952d3158e8e9b89ddfc2c1fcef7733
URL: https://source.winehq.org/git/vkd3d.git/?a=commit;h=c04b6b1765952d3158e8e9b89ddfc2c1fcef7733
Author: Conor McCarthy <cmccarthy at codeweavers.com>
Date: Wed Jan 5 14:54:52 2022 +1000
vkd3d: Do not flag a descriptor table as dirty if it is unchanged.
Signed-off-by: Conor McCarthy <cmccarthy at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
libs/vkd3d/command.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libs/vkd3d/command.c b/libs/vkd3d/command.c
index b2565e1..3e252ae 100644
--- a/libs/vkd3d/command.c
+++ b/libs/vkd3d/command.c
@@ -4185,6 +4185,9 @@ static void d3d12_command_list_set_descriptor_table(struct d3d12_command_list *l
assert(index < ARRAY_SIZE(bindings->descriptor_tables));
desc = d3d12_desc_from_gpu_handle(base_descriptor);
+ if (bindings->descriptor_tables[index] == desc)
+ return;
+
if (desc && !vkd3d_gpu_descriptor_allocator_heap_from_descriptor(&list->device->gpu_descriptor_allocator,
desc))
{
More information about the wine-cvs
mailing list