radv: use UNREACHABLE for illegal texture filter

Found this with a broken CTS test, way easier to crash for isolating
the test case.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39237>
This commit is contained in:
Samuel Pitoiset 2026-01-09 15:51:04 +01:00 committed by Marge Bot
parent 91e0f8f1e5
commit e1e2517664

View file

@ -73,10 +73,8 @@ radv_tex_filter(VkFilter filter, unsigned max_ansio)
return (max_ansio > 1 ? V_008F38_SQ_TEX_XY_FILTER_ANISO_POINT : V_008F38_SQ_TEX_XY_FILTER_POINT);
case VK_FILTER_LINEAR:
return (max_ansio > 1 ? V_008F38_SQ_TEX_XY_FILTER_ANISO_BILINEAR : V_008F38_SQ_TEX_XY_FILTER_BILINEAR);
case VK_FILTER_CUBIC_EXT:
default:
fprintf(stderr, "illegal texture filter");
return 0;
UNREACHABLE("illegal texture filter");
}
}