mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
anv/format: handle unsupported formats earlier
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
308b06d471
commit
277f868e66
1 changed files with 3 additions and 3 deletions
|
|
@ -467,6 +467,9 @@ VkResult anv_GetPhysicalDeviceImageFormatProperties(
|
|||
uint32_t maxArraySize;
|
||||
VkSampleCountFlags sampleCounts = VK_SAMPLE_COUNT_1_BIT;
|
||||
|
||||
if (anv_formats[format].isl_format == ISL_FORMAT_UNSUPPORTED)
|
||||
goto unsupported;
|
||||
|
||||
anv_physical_device_get_format_properties(physical_device, format,
|
||||
&format_props);
|
||||
|
||||
|
|
@ -511,9 +514,6 @@ VkResult anv_GetPhysicalDeviceImageFormatProperties(
|
|||
break;
|
||||
}
|
||||
|
||||
if (anv_formats[format].isl_format == ISL_FORMAT_UNSUPPORTED)
|
||||
goto unsupported;
|
||||
|
||||
/* Our hardware doesn't support 1D compressed textures.
|
||||
* From the SKL PRM, RENDER_SURFACE_STATE::SurfaceFormat:
|
||||
* * This field cannot be a compressed (BC*, DXT*, FXT*, ETC*, EAC*) format
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue