mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 05:10:11 +01:00
nak: avoid errors when generated code is empty
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38807>
This commit is contained in:
parent
dbd528ea3d
commit
85b7386158
1 changed files with 1 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue