anv: Use unreachable() in anv_genX.

This gets rid of unused variable warnings on genX_thing, because
now the compiler will think that the unknown hardware generation
case is unreachable.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9634>
This commit is contained in:
Timur Kristóf 2021-03-16 21:20:32 +01:00 committed by Marge Bot
parent 17bc587f88
commit d7a94cae18

View file

@ -4552,7 +4552,7 @@ VK_DEFINE_NONDISP_HANDLE_CASTS(anv_performance_configuration_intel, base,
genX_thing = &gen125_##thing; \
break; \
default: \
assert(!"Unknown hardware generation"); \
unreachable("Unknown hardware generation"); \
} \
genX_thing; \
})