summaryrefslogtreecommitdiff
path: root/info
diff options
context:
space:
mode:
authorRussell King <rmk@arm.linux.org.uk>2016-03-09 22:30:30 +0000
committerRussell King <rmk@arm.linux.org.uk>2016-03-09 22:31:38 +0000
commit4b8042d79670239b14ae18158eb68227b5b8290d (patch)
tree5e533045155e6779f32c8a6847bed3256be32855 /info
parentd782ea474e5222d3ee1bee008c68a999a565be96 (diff)
info: update viv_info tool with features from v5 kernel sources
Update the viv_info tool with features derived from the v5 kernel sources, and adding support for reading the number of varyings from the kernel. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
Diffstat (limited to 'info')
-rw-r--r--info/features.h36
-rw-r--r--info/viv_info.c13
2 files changed, 49 insertions, 0 deletions
diff --git a/info/features.h b/info/features.h
index c1ef793..07b080a 100644
--- a/info/features.h
+++ b/info/features.h
@@ -214,3 +214,39 @@ static struct feature vivante_chipMinorFeatures4[] __maybe_unused = {
FEATURE(UNK31),
#undef FEATURE
};
+static struct feature vivante_chipMinorFeatures5[] __maybe_unused = {
+#define FEATURE(x) { chipMinorFeatures5_##x, #x }
+ FEATURE(UNK0),
+ FEATURE(UNK1),
+ FEATURE(UNK2),
+ FEATURE(UNK3),
+ FEATURE(UNK4),
+ FEATURE(UNK5),
+ FEATURE(UNK6),
+ FEATURE(UNK7),
+ FEATURE(UNK8),
+ FEATURE(HALTI3),
+ FEATURE(UNK10),
+ FEATURE(UNK11),
+ FEATURE(UNK12),
+ FEATURE(UNK13),
+ FEATURE(UNK14),
+ FEATURE(UNK15),
+ FEATURE(UNK16),
+ FEATURE(UNK17),
+ FEATURE(UNK18),
+ FEATURE(UNK19),
+ FEATURE(UNK20),
+ FEATURE(UNK21),
+ FEATURE(UNK22),
+ FEATURE(UNK23),
+ FEATURE(UNK24),
+ FEATURE(UNK25),
+ FEATURE(UNK26),
+ FEATURE(UNK27),
+ FEATURE(UNK28),
+ FEATURE(UNK29),
+ FEATURE(UNK30),
+ FEATURE(UNK31),
+#undef FEATURE
+};
diff --git a/info/viv_info.c b/info/viv_info.c
index 504ddd4..748a58d 100644
--- a/info/viv_info.c
+++ b/info/viv_info.c
@@ -83,6 +83,16 @@ static struct param params[] = {
.tbl = vivante_chipMinorFeatures3,
.tbl_sz = ARRAY_SIZE(vivante_chipMinorFeatures3),
}, {
+ .param = ETNAVIV_PARAM_GPU_FEATURES_5,
+ .format = "Chip minor features 4: 0x%08x\n",
+ .tbl = vivante_chipMinorFeatures4,
+ .tbl_sz = ARRAY_SIZE(vivante_chipMinorFeatures4),
+ }, {
+ .param = ETNAVIV_PARAM_GPU_FEATURES_6,
+ .format = "Chip minor features 5: 0x%08x\n",
+ .tbl = vivante_chipMinorFeatures5,
+ .tbl_sz = ARRAY_SIZE(vivante_chipMinorFeatures5),
+ }, {
.param = ETNAVIV_PARAM_GPU_STREAM_COUNT,
.format = "Stream count: %u\n",
}, {
@@ -112,6 +122,9 @@ static struct param params[] = {
}, {
.param = ETNAVIV_PARAM_GPU_BUFFER_SIZE,
.format = "Buffer size: %u\n",
+ }, {
+ .param = ETNAVIV_PARAM_GPU_NUM_VARYINGS,
+ .format = "Varyings count: %u\n",
},
};