mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 22:08:26 +02:00
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:
parent
fb40fb595b
commit
9eda61c931
2 changed files with 2 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue