diff options
author | Brian Paul <[email protected]> | 2010-05-06 14:55:40 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2010-05-06 15:19:02 -0600 |
commit | 92d88ccd9a3f68584453ba548df4fb5496a7dbf9 (patch) | |
tree | dbb54fc5c2a348d5bab66f81548aa1270bc470b4 /src/gallium/auxiliary/tgsi/tgsi_info.c | |
parent | c8f0e805a9e4c26eadc45bb1fd172b6702f581ab (diff) |
tgsi: added tgsi_get_processor_name()
Diffstat (limited to 'src/gallium/auxiliary/tgsi/tgsi_info.c')
-rw-r--r-- | src/gallium/auxiliary/tgsi/tgsi_info.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_info.c b/src/gallium/auxiliary/tgsi/tgsi_info.c index cfa2f631bd8..e59e964ffa7 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_info.c +++ b/src/gallium/auxiliary/tgsi/tgsi_info.c @@ -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!"; + } +} |