st/va: Make the vendor string more descriptive

Include the Mesa version and detail about the platform.

Signed-off-by: Mark Thompson <sw@jkqxz.net>
Reviewed-by: Christian König <christian.koenig@amd.com>
This commit is contained in:
Mark Thompson 2018-02-07 23:15:05 +00:00 committed by Christian König
parent 768f1487b0
commit 5db29d62ce
2 changed files with 6 additions and 1 deletions

View File

@ -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;

View File

@ -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 {