Pass baseVertex to vertex shader
Bug: b/118386749
Test: dEQP-VK.draw.*
Change-Id: I6064e47825f1dcc2a910fe4be933868a4f3835b5
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/29169
Tested-by: Chris Forbes <chrisforbes@google.com>
Presubmit-Ready: Chris Forbes <chrisforbes@google.com>
Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
diff --git a/src/Vulkan/VkCommandBuffer.cpp b/src/Vulkan/VkCommandBuffer.cpp
index 34be31f..b713275 100644
--- a/src/Vulkan/VkCommandBuffer.cpp
+++ b/src/Vulkan/VkCommandBuffer.cpp
@@ -523,7 +523,7 @@
for(uint32_t instance = firstInstance; instance != firstInstance + instanceCount; instance++)
{
executionState.renderer->setInstanceID(instance);
- executionState.renderer->draw(context.topology, executionState.indexType, primitiveCount);
+ executionState.renderer->draw(context.topology, executionState.indexType, primitiveCount, vertexOffset);
executionState.renderer->advanceInstanceAttributes();
}
}