- print('static inline void')
- print('util_format_%s_unpack_%s(%s *dst_row, unsigned dst_stride, const uint8_t *src_row, unsigned src_stride, unsigned width, unsigned height)' % (name, dst_suffix, dst_native_type))
+ if "8unorm" in dst_suffix:
+ dst_proto_type = dst_native_type
+ else:
+ dst_proto_type = 'void'
+
+ proto = 'util_format_%s_unpack_%s(%s *dst_row, unsigned dst_stride, const uint8_t *src_row, unsigned src_stride, unsigned width, unsigned height)' % (name, dst_suffix, dst_proto_type)
+ print('void %s;' % proto, file=sys.stdout2)
+
+ print('void')
+ print(proto)