anv: convert assert into unreachable to avoid fallthrough error

Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18192>
This commit is contained in:
Eric Engestrom 2022-08-22 21:31:52 +01:00 committed by Marge Bot
parent f56609a679
commit c535434fd9

View file

@ -869,7 +869,7 @@ vk_to_intel_tex_filter(VkFilter filter, bool anisotropyEnable)
{
switch (filter) {
default:
assert(!"Invalid filter");
unreachable("Invalid filter");
case VK_FILTER_NEAREST:
return anisotropyEnable ? MAPFILTER_ANISOTROPIC : MAPFILTER_NEAREST;
case VK_FILTER_LINEAR: