vkd3d: Try to not invalidate current pipeline in IASetVertexBuffers().

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Józef Kucia 2018-08-23 18:33:01 +02:00 committed by Alexandre Julliard
parent ca91aaf9b9
commit 80dbf329ca

View File

@ -3464,6 +3464,7 @@ static void STDMETHODCALLTYPE d3d12_command_list_IASetVertexBuffers(ID3D12Graphi
VkBuffer buffers[ARRAY_SIZE(list->strides)];
unsigned int i, first, count, stride;
struct d3d12_resource *resource;
bool invalidate = false;
TRACE("iface %p, start_slot %u, view_count %u, views %p.\n", iface, start_slot, view_count, views);
@ -3499,12 +3500,14 @@ static void STDMETHODCALLTYPE d3d12_command_list_IASetVertexBuffers(ID3D12Graphi
count = 0;
}
invalidate |= list->strides[start_slot + i] != stride;
list->strides[start_slot + i] = stride;
}
if (count)
VK_CALL(vkCmdBindVertexBuffers(list->vk_command_buffer, first, count, buffers, offsets));
if (invalidate)
d3d12_command_list_invalidate_current_pipeline(list);
}