nak: avoid errors when generated code is empty

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38807>
This commit is contained in:
Eric Engestrom 2025-10-06 11:45:21 +02:00
parent dbd528ea3d
commit 85b7386158

View file

@ -47,6 +47,7 @@ impl ${to_camel(reg_file)}Latency${sm.upper()} {
use ${enum_name}::*;
match ${bigcat.header.cat1} {
% for cat in bigcat.header.cats:
#[allow(clippy::match_single_binding)]
${to_camel(cat)} => match ${bigcat.header.cat0} {
<% has_non = False %>
% for cat2 in bigcat.header.cats: