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:
committed by
Marge Bot
parent
f56609a679
commit
c535434fd9
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user