@@ -799,7 +799,15 @@ impl<I: Iterator<Item = u32>> Frontend<I> {
799799 dec. specialization_constant_id = Some ( self . next ( ) ?) ;
800800 }
801801 other => {
802- log:: warn!( "Unknown decoration {other:?}" ) ;
802+ let level = match other {
803+ // Block decorations show up everywhere and we don't
804+ // really care about them, so to prevent log spam
805+ // we demote them to debug level.
806+ spirv:: Decoration :: Block => log:: Level :: Debug ,
807+ _ => log:: Level :: Warn ,
808+ } ;
809+
810+ log:: log!( level, "Unknown decoration {other:?}" ) ;
803811 for _ in base_words + 1 ..inst. wc {
804812 let _var = self . next ( ) ?;
805813 }
@@ -4746,7 +4754,7 @@ impl<I: Iterator<Item = u32>> Frontend<I> {
47464754 let generator = self . next ( ) ?;
47474755 let _bound = self . next ( ) ?;
47484756 let _schema = self . next ( ) ?;
4749- log:: info !( "Generated by {generator} version {version_raw:x}" ) ;
4757+ log:: debug !( "Generated by {generator} version {version_raw:x}" ) ;
47504758 crate :: Module :: default ( )
47514759 } ;
47524760
@@ -4816,7 +4824,7 @@ impl<I: Iterator<Item = u32>> Frontend<I> {
48164824 }
48174825
48184826 if !self . upgrade_atomics . is_empty ( ) {
4819- log:: info !( "Upgrading atomic pointers..." ) ;
4827+ log:: debug !( "Upgrading atomic pointers..." ) ;
48204828 module. upgrade_atomics ( & self . upgrade_atomics ) ?;
48214829 }
48224830
@@ -4826,7 +4834,7 @@ impl<I: Iterator<Item = u32>> Frontend<I> {
48264834 self . process_entry_point ( & mut module, ep, fun_id) ?;
48274835 }
48284836
4829- log:: info !( "Patching..." ) ;
4837+ log:: debug !( "Patching..." ) ;
48304838 {
48314839 let mut nodes = petgraph:: algo:: toposort ( & self . function_call_graph , None )
48324840 . map_err ( |cycle| Error :: FunctionCallCycle ( cycle. node_id ( ) ) ) ?;
@@ -4866,11 +4874,11 @@ impl<I: Iterator<Item = u32>> Frontend<I> {
48664874 }
48674875
48684876 if !self . future_decor . is_empty ( ) {
4869- log:: warn !( "Unused item decorations: {:?}" , self . future_decor) ;
4877+ log:: debug !( "Unused item decorations: {:?}" , self . future_decor) ;
48704878 self . future_decor . clear ( ) ;
48714879 }
48724880 if !self . future_member_decor . is_empty ( ) {
4873- log:: warn !( "Unused member decorations: {:?}" , self . future_member_decor) ;
4881+ log:: debug !( "Unused member decorations: {:?}" , self . future_member_decor) ;
48744882 self . future_member_decor . clear ( ) ;
48754883 }
48764884
0 commit comments