summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/va
diff options
context:
space:
mode:
authorMark Thompson <[email protected]>2018-02-07 23:15:05 +0000
committerChristian König <[email protected]>2018-02-09 13:37:43 +0100
commit5db29d62ce1fefa3f2ee6e4a4688576fde4bde4a (patch)
treec4c7d107435332b7b6c67f15bad3c0605b2fe5e0 /src/gallium/state_trackers/va
parent768f1487b0c084507ba5e2641e0bbf4ec789ec85 (diff)
st/va: Make the vendor string more descriptive
Include the Mesa version and detail about the platform. Signed-off-by: Mark Thompson <[email protected]> Reviewed-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/va')
-rw-r--r--src/gallium/state_trackers/va/context.c6
-rw-r--r--src/gallium/state_trackers/va/va_private.h1
2 files changed, 6 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/va/context.c b/src/gallium/state_trackers/va/context.c
index 189d361ff31..836aa77c36c 100644
--- a/src/gallium/state_trackers/va/context.c
+++ b/src/gallium/state_trackers/va/context.c
@@ -181,7 +181,11 @@ VA_DRIVER_INIT_FUNC(VADriverContextP ctx)
ctx->max_image_formats = VL_VA_MAX_IMAGE_FORMATS;
ctx->max_subpic_formats = 1;
ctx->max_display_attributes = 1;
- ctx->str_vendor = "mesa gallium vaapi";
+
+ snprintf(drv->vendor_string, sizeof(drv->vendor_string),
+ "Mesa Gallium driver " PACKAGE_VERSION " for %s",
+ drv->vscreen->pscreen->get_name(drv->vscreen->pscreen));
+ ctx->str_vendor = drv->vendor_string;
return VA_STATUS_SUCCESS;
diff --git a/src/gallium/state_trackers/va/va_private.h b/src/gallium/state_trackers/va/va_private.h
index 11b208c4b3b..4396abb586b 100644
--- a/src/gallium/state_trackers/va/va_private.h
+++ b/src/gallium/state_trackers/va/va_private.h
@@ -233,6 +233,7 @@ typedef struct {
struct vl_compositor_state cstate;
vl_csc_matrix csc;
mtx_t mutex;
+ char vendor_string[256];
} vlVaDriver;
typedef struct {