@ -231,12 +231,12 @@ const char *tgsi_memory_names[3] =
static inline void UNUSED
tgsi_strings_check ( void )
{
STATIC_ASSERT ( Elements ( tgsi_semantic_names ) = = TGSI_SEMANTIC_COUNT ) ;
STATIC_ASSERT ( Elements ( tgsi_texture_names ) = = TGSI_TEXTURE_COUNT ) ;
STATIC_ASSERT ( Elements ( tgsi_property_names ) = = TGSI_PROPERTY_COUNT ) ;
STATIC_ASSERT ( Elements ( tgsi_primitive_names ) = = PIPE_PRIM_MAX ) ;
STATIC_ASSERT ( Elements ( tgsi_interpolate_names ) = = TGSI_INTERPOLATE_COUNT ) ;
STATIC_ASSERT ( Elements ( tgsi_return_type_names ) = = TGSI_RETURN_TYPE_COUNT ) ;
STATIC_ASSERT ( ARRAY_SIZ E( tgsi_semantic_names ) = = TGSI_SEMANTIC_COUNT ) ;
STATIC_ASSERT ( ARRAY_SIZ E( tgsi_texture_names ) = = TGSI_TEXTURE_COUNT ) ;
STATIC_ASSERT ( ARRAY_SIZ E( tgsi_property_names ) = = TGSI_PROPERTY_COUNT ) ;
STATIC_ASSERT ( ARRAY_SIZ E( tgsi_primitive_names ) = = PIPE_PRIM_MAX ) ;
STATIC_ASSERT ( ARRAY_SIZ E( tgsi_interpolate_names ) = = TGSI_INTERPOLATE_COUNT ) ;
STATIC_ASSERT ( ARRAY_SIZ E( tgsi_return_type_names ) = = TGSI_RETURN_TYPE_COUNT ) ;
( void ) tgsi_processor_type_names ;
( void ) tgsi_return_type_names ;
( void ) tgsi_immediate_type_names ;
@ -248,8 +248,8 @@ tgsi_strings_check(void)
const char *
tgsi_file_name ( unsigned file )
{
STATIC_ASSERT ( Elements ( tgsi_file_names ) = = TGSI_FILE_COUNT ) ;
if ( file < Elements ( tgsi_file_names ) )
STATIC_ASSERT ( ARRAY_SIZ E( tgsi_file_names ) = = TGSI_FILE_COUNT ) ;
if ( file < ARRAY_SIZ E( tgsi_file_names ) )
return tgsi_file_names [ file ] ;
else
return " invalid file " ;