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

Conor McCarthy cmccarthy at codeweavers.com
Thu Dec 9 23:07:13 CST 2021


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 0090324f..f01d0488 100644
--- a/libs/vkd3d/command.c
+++ b/libs/vkd3d/command.c
@@ -4186,6 +4186,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 && !(heap = vkd3d_gpu_descriptor_allocator_heap_from_descriptor(&list->device->gpu_descriptor_allocator,
             desc)))
     {
-- 
2.33.0




More information about the wine-devel mailing list