From: Kristian Høgsberg Date: Tue, 12 May 2015 05:25:52 +0000 (-0700) Subject: vk: Fix 3DSTATE_VERTEX_BUFFER emission X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ad132bbe488a0755cbcc77474414eabbe266c9be;p=mesa.git vk: Fix 3DSTATE_VERTEX_BUFFER emission Set VertexBufferIndex to the attribute binding, not the location. --- 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,