anv: make anv_get_image_format_features public
This will be utilized later by GetAndroidHardwareBufferPropertiesANDROID. Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
This commit is contained in:
@@ -492,8 +492,8 @@ anv_get_format_plane(const struct gen_device_info *devinfo, VkFormat vk_format,
|
|||||||
|
|
||||||
// Format capabilities
|
// Format capabilities
|
||||||
|
|
||||||
static VkFormatFeatureFlags
|
VkFormatFeatureFlags
|
||||||
get_image_format_features(const struct gen_device_info *devinfo,
|
anv_get_image_format_features(const struct gen_device_info *devinfo,
|
||||||
VkFormat vk_format,
|
VkFormat vk_format,
|
||||||
const struct anv_format *anv_format,
|
const struct anv_format *anv_format,
|
||||||
VkImageTiling vk_tiling)
|
VkImageTiling vk_tiling)
|
||||||
@@ -743,10 +743,10 @@ void anv_GetPhysicalDeviceFormatProperties(
|
|||||||
|
|
||||||
*pFormatProperties = (VkFormatProperties) {
|
*pFormatProperties = (VkFormatProperties) {
|
||||||
.linearTilingFeatures =
|
.linearTilingFeatures =
|
||||||
get_image_format_features(devinfo, vk_format, anv_format,
|
anv_get_image_format_features(devinfo, vk_format, anv_format,
|
||||||
VK_IMAGE_TILING_LINEAR),
|
VK_IMAGE_TILING_LINEAR),
|
||||||
.optimalTilingFeatures =
|
.optimalTilingFeatures =
|
||||||
get_image_format_features(devinfo, vk_format, anv_format,
|
anv_get_image_format_features(devinfo, vk_format, anv_format,
|
||||||
VK_IMAGE_TILING_OPTIMAL),
|
VK_IMAGE_TILING_OPTIMAL),
|
||||||
.bufferFeatures =
|
.bufferFeatures =
|
||||||
get_buffer_format_features(devinfo, vk_format, anv_format),
|
get_buffer_format_features(devinfo, vk_format, anv_format),
|
||||||
@@ -794,7 +794,7 @@ anv_get_image_format_properties(
|
|||||||
if (format == NULL)
|
if (format == NULL)
|
||||||
goto unsupported;
|
goto unsupported;
|
||||||
|
|
||||||
format_feature_flags = get_image_format_features(devinfo, info->format,
|
format_feature_flags = anv_get_image_format_features(devinfo, info->format,
|
||||||
format, info->tiling);
|
format, info->tiling);
|
||||||
|
|
||||||
switch (info->type) {
|
switch (info->type) {
|
||||||
|
@@ -3114,6 +3114,11 @@ anv_sanitize_image_offset(const VkImageType imageType,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
VkFormatFeatureFlags
|
||||||
|
anv_get_image_format_features(const struct gen_device_info *devinfo,
|
||||||
|
VkFormat vk_format,
|
||||||
|
const struct anv_format *anv_format,
|
||||||
|
VkImageTiling vk_tiling);
|
||||||
|
|
||||||
void anv_fill_buffer_surface_state(struct anv_device *device,
|
void anv_fill_buffer_surface_state(struct anv_device *device,
|
||||||
struct anv_state state,
|
struct anv_state state,
|
||||||
|
Reference in New Issue
Block a user