@ -61,7 +61,7 @@ tgsi_scan_shader(const struct tgsi_token *tokens,
memset ( info , 0 , sizeof ( * info ) ) ;
memset ( info , 0 , sizeof ( * info ) ) ;
for ( i = 0 ; i < TGSI_FILE_COUNT ; i + + )
for ( i = 0 ; i < TGSI_FILE_COUNT ; i + + )
info - > file_max [ i ] = - 1 ;
info - > file_max [ i ] = - 1 ;
for ( i = 0 ; i < Elements ( info - > const_file_max ) ; i + + )
for ( i = 0 ; i < ARRAY_SIZ E( info - > const_file_max ) ; i + + )
info - > const_file_max [ i ] = - 1 ;
info - > const_file_max [ i ] = - 1 ;
info - > properties [ TGSI_PROPERTY_GS_INVOCATIONS ] = 1 ;
info - > properties [ TGSI_PROPERTY_GS_INVOCATIONS ] = 1 ;
@ -209,7 +209,7 @@ tgsi_scan_shader(const struct tgsi_token *tokens,
/* MSAA samplers */
/* MSAA samplers */
if ( src - > Register . File = = TGSI_FILE_SAMPLER ) {
if ( src - > Register . File = = TGSI_FILE_SAMPLER ) {
assert ( fullinst - > Instruction . Texture ) ;
assert ( fullinst - > Instruction . Texture ) ;
assert ( ( unsigned ) src - > Register . Index < Elements ( info - > is_msaa_sampler ) ) ;
assert ( ( unsigned ) src - > Register . Index < ARRAY_SIZ E( info - > is_msaa_sampler ) ) ;
if ( fullinst - > Instruction . Texture & &
if ( fullinst - > Instruction . Texture & &
( fullinst - > Texture . Texture = = TGSI_TEXTURE_2D_MSAA | |
( fullinst - > Texture . Texture = = TGSI_TEXTURE_2D_MSAA | |
@ -430,7 +430,7 @@ tgsi_scan_shader(const struct tgsi_token *tokens,
unsigned name = fullprop - > Property . PropertyName ;
unsigned name = fullprop - > Property . PropertyName ;
unsigned value = fullprop - > u [ 0 ] . Data ;
unsigned value = fullprop - > u [ 0 ] . Data ;
assert ( name < Elements ( info - > properties ) ) ;
assert ( name < ARRAY_SIZ E( info - > properties ) ) ;
info - > properties [ name ] = value ;
info - > properties [ name ] = value ;
switch ( name ) {
switch ( name ) {