From ad132bbe488a0755cbcc77474414eabbe266c9be Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kristian=20H=C3=B8gsberg?= Date: Mon, 11 May 2015 22:25:52 -0700 Subject: [PATCH] vk: Fix 3DSTATE_VERTEX_BUFFER emission Set VertexBufferIndex to the attribute binding, not the location. --- src/vulkan/pipeline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vulkan/pipeline.c b/src/vulkan/pipeline.c index 445ffde94ff..a7775cf7765 100644 --- a/src/vulkan/pipeline.c +++ b/src/vulkan/pipeline.c @@ -92,7 +92,7 @@ emit_vertex_input(struct anv_pipeline *pipeline, VkPipelineVertexInputCreateInfo const struct anv_format *format = anv_format_for_vk_format(desc->format); struct GEN8_VERTEX_ELEMENT_STATE element = { - .VertexBufferIndex = desc->location, + .VertexBufferIndex = desc->binding, .Valid = true, .SourceElementFormat = format->format, .EdgeFlagEnable = false, -- 2.30.2