summaryrefslogtreecommitdiffstats
path: root/src/intel/tools/aubinator.c
diff options
context:
space:
mode:
authorLionel Landwerlin <[email protected]>2016-10-15 00:27:06 +0100
committerLionel Landwerlin <[email protected]>2016-11-01 22:37:56 +0000
commita28db12e214df94d601fcbbf09c776403c8d9384 (patch)
treec43a055a5f7dbf3ebd4accdb6ffef35fd4c759c6 /src/intel/tools/aubinator.c
parent74c4c84482b9659805ef3d796fba81815e70ed28 (diff)
intel: aubinator: print field values if available
Turning this : sampler state 0 Sampler Disable: false Texture Border Color Mode: 0 LOD PreClamp Enable: 1 Base Mip Level: 0.000000 Mip Mode Filter: 0 Mag Mode Filter: 1 Min Mode Filter: 1 Texture LOD Bias: foo Anisotropic Algorithm: 0 into this : sampler state 0 Sampler Disable: false Texture Border Color Mode: 0 (DX10/OGL) LOD PreClamp Enable: 1 (OGL) Base Mip Level: 0.000000 Mip Mode Filter: 0 (NONE) Mag Mode Filter: 1 (LINEAR) Min Mode Filter: 1 (LINEAR) Texture LOD Bias: foo Anisotropic Algorithm: 0 (LEGACY) Signed-off-by: Lionel Landwerlin <[email protected]> Reviewed-by: Sirisha Gandikota<[email protected]>
Diffstat (limited to 'src/intel/tools/aubinator.c')
-rw-r--r--src/intel/tools/aubinator.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/intel/tools/aubinator.c b/src/intel/tools/aubinator.c
index 73df16b6dce..0d4b3f944f4 100644
--- a/src/intel/tools/aubinator.c
+++ b/src/intel/tools/aubinator.c
@@ -111,7 +111,12 @@ print_iterator_values(struct gen_field_iterator *iter, int *idx)
{
char *token = NULL;
if (strstr(iter->value, "struct") == NULL) {
- printf(" %s: %s\n", iter->name, iter->value);
+ if (strlen(iter->description) > 0) {
+ printf(" %s: %s (%s)\n",
+ iter->name, iter->value, iter->description);
+ } else {
+ printf(" %s: %s\n", iter->name, iter->value);
+ }
} else {
token = strtok(iter->value, " ");
if (token != NULL) {