summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/genX_pipeline_util.h
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-05-15 21:15:59 -0700
committerJason Ekstrand <[email protected]>2016-05-17 12:17:22 -0700
commit8ed429a4f0d58eafe3e3212552af6fb0cb78feeb (patch)
tree0d0d24253ce01f136b6b8b0a394a970753fed33f /src/intel/vulkan/genX_pipeline_util.h
parent13f5cee663f693bc2cafeda9c3d6fc3537334dde (diff)
anv/formats: Add an anv_get_format helper
This commit removes anv_format_for_vk_format and adds an anv_get_format helper. The anv_get_format helper returns the anv_format by-value. Unlike anv_format_for_vk_format the format returned by anv_get_format is 100% accurate and includes any tweaks needed for tiled vs. linear. anv_get_isl_format is now just a wrapper around anv_get_format that picks off just the isl_format.
Diffstat (limited to 'src/intel/vulkan/genX_pipeline_util.h')
-rw-r--r--src/intel/vulkan/genX_pipeline_util.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/intel/vulkan/genX_pipeline_util.h b/src/intel/vulkan/genX_pipeline_util.h
index fe1f8120c4b..3d362da3092 100644
--- a/src/intel/vulkan/genX_pipeline_util.h
+++ b/src/intel/vulkan/genX_pipeline_util.h
@@ -102,8 +102,7 @@ emit_vertex_input(struct anv_pipeline *pipeline,
&info->pVertexAttributeDescriptions[i];
enum isl_format format = anv_get_isl_format(desc->format,
VK_IMAGE_ASPECT_COLOR_BIT,
- VK_IMAGE_TILING_LINEAR,
- NULL);
+ VK_IMAGE_TILING_LINEAR);
assert(desc->binding < 32);