tgsi: added tgsi_get_processor_name()

This commit is contained in:
Brian Paul 2010-05-06 14:55:40 -06:00
parent c8f0e805a9
commit 92d88ccd9a
2 changed files with 18 additions and 0 deletions

View file

@ -205,3 +205,18 @@ tgsi_get_opcode_name( uint opcode )
return info->mnemonic;
}
const char *
tgsi_get_processor_name( uint processor )
{
switch (processor) {
case TGSI_PROCESSOR_VERTEX:
return "vertex shader";
case TGSI_PROCESSOR_FRAGMENT:
return "fragment shader";
case TGSI_PROCESSOR_GEOMETRY:
return "geometry shader";
default:
return "unknown shader type!";
}
}

View file

@ -52,6 +52,9 @@ tgsi_get_opcode_info( uint opcode );
const char *
tgsi_get_opcode_name( uint opcode );
const char *
tgsi_get_processor_name( uint processor );
#if defined __cplusplus
}