vk: Fix 3DSTATE_VERTEX_BUFFER emission

Set VertexBufferIndex to the attribute binding, not the location.
This commit is contained in:
Kristian Høgsberg
2015-05-11 22:25:52 -07:00
parent 6a895c6681
commit ad132bbe48
+1 -1
View File
@@ -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,