summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/genX_pipeline_util.h
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-05-16 10:25:54 -0700
committerJason Ekstrand <[email protected]>2016-05-17 12:17:22 -0700
commit45c93384e519aefba1d28388955b2638f4d26ea3 (patch)
treebb4eca1ce16d8c001dc4d2e04c940311fddc6ee4 /src/intel/vulkan/genX_pipeline_util.h
parent100db3d31c1fd9284fc96132dccde1fa289a88c3 (diff)
anv: Add a devinfo argument to the get_format functions
Diffstat (limited to 'src/intel/vulkan/genX_pipeline_util.h')
-rw-r--r--src/intel/vulkan/genX_pipeline_util.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/intel/vulkan/genX_pipeline_util.h b/src/intel/vulkan/genX_pipeline_util.h
index 3d362da3092..ecbe436e4ea 100644
--- a/src/intel/vulkan/genX_pipeline_util.h
+++ b/src/intel/vulkan/genX_pipeline_util.h
@@ -100,7 +100,8 @@ emit_vertex_input(struct anv_pipeline *pipeline,
for (uint32_t i = 0; i < info->vertexAttributeDescriptionCount; i++) {
const VkVertexInputAttributeDescription *desc =
&info->pVertexAttributeDescriptions[i];
- enum isl_format format = anv_get_isl_format(desc->format,
+ enum isl_format format = anv_get_isl_format(&pipeline->device->info,
+ desc->format,
VK_IMAGE_ASPECT_COLOR_BIT,
VK_IMAGE_TILING_LINEAR);