[PATCH vkd3d 3/4] vkd3d: Do not flag a descriptor table as dirty if it is unchanged.

Conor McCarthy cmccarthy at codeweavers.com
Tue Jan 4 22:54:52 CST 2022


Signed-off-by: Conor McCarthy <cmccarthy at codeweavers.com>
---
 libs/vkd3d/command.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libs/vkd3d/command.c b/libs/vkd3d/command.c
index b2565e1a..3e252aee 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))
     {
-- 
2.33.0




More information about the wine-devel mailing list