diff options
author | Chad Versace <chadversary@chromium.org> | 2017-11-03 12:19:36 -0700 |
---|---|---|
committer | Chad Versace <chadversary@chromium.org> | 2017-11-09 16:01:59 -0800 |
commit | 66647074a455754393c6ad6be09acc03b1761a00 (patch) | |
tree | 4c9a7e9e24e1d3a7dd920a1974c0522e8598908f | |
parent | c22a9f10befcb872354a3b96ca7731c9b1c161fd (diff) |
anv: Refactor get_image_format_properties() - base_isl_format
Rename parameter 'base' to 'base_isl_format'.
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
-rw-r--r-- | src/intel/vulkan/anv_formats.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/intel/vulkan/anv_formats.c b/src/intel/vulkan/anv_formats.c index a296378a68e..3cc0673cbaf 100644 --- a/src/intel/vulkan/anv_formats.c +++ b/src/intel/vulkan/anv_formats.c @@ -469,7 +469,7 @@ anv_get_format_plane(const struct gen_device_info *devinfo, VkFormat vk_format, static VkFormatFeatureFlags get_image_format_properties(const struct gen_device_info *devinfo, VkFormat vk_format, - enum isl_format base, + enum isl_format base_isl_format, struct anv_format_plane plane_format, VkImageTiling vk_tiling) { @@ -526,10 +526,11 @@ get_image_format_properties(const struct gen_device_info *devinfo, /* Load/store is determined based on base format. This prevents RGB * formats from showing up as load/store capable. */ - if (isl_is_storage_image_format(base)) + if (isl_is_storage_image_format(base_isl_format)) flags |= VK_FORMAT_FEATURE_STORAGE_IMAGE_BIT; - if (base == ISL_FORMAT_R32_SINT || base == ISL_FORMAT_R32_UINT) + if (base_isl_format == ISL_FORMAT_R32_SINT || + base_isl_format == ISL_FORMAT_R32_UINT) flags |= VK_FORMAT_FEATURE_STORAGE_IMAGE_ATOMIC_BIT; if (flags) { |