mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 19:40:10 +01:00
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:
parent
f56609a679
commit
c535434fd9
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue