vk/formats: Document new meaning of anv_format::cpp
[mesa.git] / src / vulkan / pipeline.c
index ae57d5ea4a228d4dd38b38e80d20df7d5b1a33e6..f574038f83f072bcde9aae1be7f78ee6aa058e46 100644 (file)
@@ -96,7 +96,7 @@ emit_vertex_input(struct anv_pipeline *pipeline, VkPipelineVertexInputCreateInfo
       struct GEN8_VERTEX_ELEMENT_STATE element = {
          .VertexBufferIndex = desc->binding,
          .Valid = true,
-         .SourceElementFormat = format->format,
+         .SourceElementFormat = format->surface_format,
          .EdgeFlagEnable = false,
          .SourceElementOffset = desc->offsetInBytes,
          .Component0Control = VFCOMP_STORE_SRC,