vulkan/runtime, radv: remove 1D support from ETC2 emulation
The nir code deos not support 1D. There is also no point in supporting 1D ETC2 images. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25071>
This commit is contained in:
@@ -1335,6 +1335,8 @@ radv_get_image_format_properties(struct radv_physical_device *physical_device,
|
||||
if (format_feature_flags == 0)
|
||||
goto unsupported;
|
||||
|
||||
if (info->type == VK_IMAGE_TYPE_1D && (desc->layout == UTIL_FORMAT_LAYOUT_ETC && physical_device->emulate_etc2))
|
||||
goto unsupported;
|
||||
if (info->type != VK_IMAGE_TYPE_2D && vk_format_is_depth_or_stencil(format))
|
||||
goto unsupported;
|
||||
|
||||
|
@@ -71,8 +71,6 @@ static inline VkImageViewType
|
||||
vk_texcompress_etc2_image_view_type(VkImageType image_type)
|
||||
{
|
||||
switch (image_type) {
|
||||
case VK_IMAGE_TYPE_1D:
|
||||
return VK_IMAGE_VIEW_TYPE_1D_ARRAY;
|
||||
case VK_IMAGE_TYPE_2D:
|
||||
return VK_IMAGE_VIEW_TYPE_2D_ARRAY;
|
||||
case VK_IMAGE_TYPE_3D:
|
||||
|
Reference in New Issue
Block a user