=?UTF-8?Q?J=C3=B3zef=20Kucia=20?=: vkd3d: Ignore redundant IASetPrimitiveTopology() calls.

Alexandre Julliard julliard at winehq.org
Tue Mar 19 17:09:05 CDT 2019


Module: vkd3d
Branch: master
Commit: f3c9229cc342c4d9c10f52a61dde1fff48a74a93
URL:    https://source.winehq.org/git/vkd3d.git/?a=commit;h=f3c9229cc342c4d9c10f52a61dde1fff48a74a93

Author: Józef Kucia <jkucia at codeweavers.com>
Date:   Tue Mar 19 14:40:58 2019 +0100

vkd3d: Ignore redundant IASetPrimitiveTopology() calls.

Signed-off-by: Józef Kucia <jkucia 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 33dfcaf..40c48cd 100644
--- a/libs/vkd3d/command.c
+++ b/libs/vkd3d/command.c
@@ -3008,6 +3008,9 @@ static void STDMETHODCALLTYPE d3d12_command_list_IASetPrimitiveTopology(ID3D12Gr
         return;
     }
 
+    if (list->primitive_topology == topology)
+        return;
+
     list->primitive_topology = topology;
     d3d12_command_list_invalidate_current_pipeline(list);
 }




More information about the wine-cvs mailing list