summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/tgsi/core/tgsi_dump.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/pipe/tgsi/core/tgsi_dump.c')
-rw-r--r--src/mesa/pipe/tgsi/core/tgsi_dump.c36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/mesa/pipe/tgsi/core/tgsi_dump.c b/src/mesa/pipe/tgsi/core/tgsi_dump.c
index 51d3bb703d..5a9f92004e 100644
--- a/src/mesa/pipe/tgsi/core/tgsi_dump.c
+++ b/src/mesa/pipe/tgsi/core/tgsi_dump.c
@@ -199,6 +199,18 @@ static const char *TGSI_INTERPOLATES_SHORT[] =
"PERSPECTIVE"
};
+static const char *TGSI_SEMANTICS[] =
+{
+ "SEMANTIC_DEPTH",
+ "SEMANTIC_COLOR"
+};
+
+static const char *TGSI_SEMANTICS_SHORT[] =
+{
+ "DEPTH",
+ "COLOR"
+};
+
static const char *TGSI_IMMS[] =
{
"IMM_FLOAT32"
@@ -625,6 +637,14 @@ dump_declaration_short(
TXT( ", " );
ENM( decl->Interpolation.Interpolate, TGSI_INTERPOLATES_SHORT );
}
+
+ if( decl->Declaration.Semantic ) {
+ TXT( ", " );
+ ENM( decl->Semantic.SemanticName, TGSI_SEMANTICS_SHORT );
+ CHR( '[' );
+ UID( decl->Semantic.SemanticIndex );
+ CHR( ']' );
+ }
}
static void
@@ -643,6 +663,10 @@ dump_declaration_verbose(
TXT( "\nInterpolate: " );
UID( decl->Declaration.Interpolate );
}
+ if( deflt || fd->Declaration.Semantic != decl->Declaration.Semantic ) {
+ TXT( "\nSemantic : " );
+ UID( decl->Declaration.Semantic );
+ }
if( ignored ) {
TXT( "\nPadding : " );
UIX( decl->Declaration.Padding );
@@ -675,6 +699,18 @@ dump_declaration_verbose(
UIX( decl->Interpolation.Padding );
}
}
+
+ if( decl->Declaration.Semantic ) {
+ CHR( '\n' );
+ TXT( "\nSemanticName : " );
+ ENM( decl->Semantic.SemanticName, TGSI_SEMANTICS );
+ TXT( "\nSemanticIndex: " );
+ UID( decl->Semantic.SemanticIndex );
+ if( ignored ) {
+ TXT( "\nPadding : " );
+ UIX( decl->Semantic.Padding );
+ }
+ }
}
static void