vk: Implement vertexOffset parameter of vkCmdDrawIndexed()
authorKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Wed, 3 Jun 2015 05:35:47 +0000 (22:35 -0700)
committerKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Wed, 3 Jun 2015 05:57:42 +0000 (22:57 -0700)
As exposed by the func.draw_indexed test, we were ignoring the argument
and hardcoding 0.

src/vulkan/device.c

index b76942f5de55fb5ca8e4b828faf004b53e1e52ab..e44f063237fa797879bc5b5d0c0f3ec5216d1f5d 100644 (file)
@@ -3179,7 +3179,7 @@ void anv_CmdDrawIndexed(
                   .StartVertexLocation = firstIndex,
                   .InstanceCount = instanceCount,
                   .StartInstanceLocation = firstInstance,
-                  .BaseVertexLocation = 0);
+                  .BaseVertexLocation = vertexOffset);
 }
 
 static void