summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/vc4/vc4_screen.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_screen.c')
-rw-r--r--src/gallium/drivers/vc4/vc4_screen.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/gallium/drivers/vc4/vc4_screen.c b/src/gallium/drivers/vc4/vc4_screen.c
index 96277dc4f92..5882f070340 100644
--- a/src/gallium/drivers/vc4/vc4_screen.c
+++ b/src/gallium/drivers/vc4/vc4_screen.c
@@ -72,7 +72,16 @@ uint32_t vc4_debug;
static const char *
vc4_screen_get_name(struct pipe_screen *pscreen)
{
- return "VC4";
+ struct vc4_screen *screen = vc4_screen(pscreen);
+
+ if (!screen->name) {
+ screen->name = ralloc_asprintf(screen,
+ "VC4 V3D %d.%d",
+ screen->v3d_ver / 10,
+ screen->v3d_ver % 10);
+ }
+
+ return screen->name;
}
static const char *