mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 12:08:06 +02:00
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:
parent
91e0f8f1e5
commit
e1e2517664
1 changed files with 1 additions and 3 deletions
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue