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:
@@ -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; \
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user