[PATCH vkd3d 3/9] vkd3d: Simplify d3d12_command_list_IASetVertexBuffers().
Józef Kucia
joseph.kucia at gmail.com
Thu Aug 23 11:33:02 CDT 2018
From: Józef Kucia <jkucia at codeweavers.com>
Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
---
libs/vkd3d/command.c | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/libs/vkd3d/command.c b/libs/vkd3d/command.c
index cb50d63b752d..793417eaddff 100644
--- a/libs/vkd3d/command.c
+++ b/libs/vkd3d/command.c
@@ -3477,8 +3477,9 @@ static void STDMETHODCALLTYPE d3d12_command_list_IASetVertexBuffers(ID3D12Graphi
return;
}
+ count = 0;
first = start_slot;
- for (i = 0, count = 0; i < view_count; ++i)
+ for (i = 0; i < view_count; ++i)
{
if (views[i].BufferLocation)
{
@@ -3492,12 +3493,10 @@ static void STDMETHODCALLTYPE d3d12_command_list_IASetVertexBuffers(ID3D12Graphi
{
if (count)
VK_CALL(vkCmdBindVertexBuffers(list->vk_command_buffer, first, count, buffers, offsets));
+ count = 0;
+ first = start_slot + i + 1;
stride = 0;
- ++count;
-
- first += count;
- count = 0;
}
invalidate |= list->strides[start_slot + i] != stride;
--
2.16.4
More information about the wine-devel
mailing list