summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorXiang, Haihao <haihao.xiang@intel.com>2014-04-19 00:12:36 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2014-05-26 11:58:59 +0800
commitae70674e879aa40fe4cd3a01e66b239d642519b5 (patch)
tree30e55300977d098c92947e3ba22c55380248c01b /src
parente7318fe6166fbacc53413bbf175d4fc97a1c9807 (diff)
downloadlibva-intel-driver-ae70674e879aa40fe4cd3a01e66b239d642519b5.tar.gz
libva-intel-driver-ae70674e879aa40fe4cd3a01e66b239d642519b5.tar.bz2
libva-intel-driver-ae70674e879aa40fe4cd3a01e66b239d642519b5.zip
Dump chipset information in the vendor string
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com> (cherry picked from commit 2518c1e741cb21c5412a4b5252ebe861a52c2900)
Diffstat (limited to 'src')
-rwxr-xr-xsrc/i965_drv_video.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/i965_drv_video.c b/src/i965_drv_video.c
index f246a03..db8b2d1 100755
--- a/src/i965_drv_video.c
+++ b/src/i965_drv_video.c
@@ -5130,6 +5130,7 @@ i965_Init(VADriverContextP ctx)
{
struct i965_driver_data *i965 = i965_driver_data(ctx);
int i;
+ const char *chipset;
for (i = 0; i < ARRAY_ELEMS(i965_sub_ops); i++) {
if ((i965_sub_ops[i].display_type == 0 ||
@@ -5139,9 +5140,19 @@ i965_Init(VADriverContextP ctx)
}
if (i == ARRAY_ELEMS(i965_sub_ops)) {
- sprintf(i965->va_vendor, "%s %s driver - %d.%d.%d",
+ switch (i965->intel.device_id) {
+#undef CHIPSET
+#define CHIPSET(id, family, dev, str) case id: chipset = str; break;
+#include "i965_pciids.h"
+ default:
+ chipset = "Unknown Intel Chipset";
+ break;
+ }
+
+ sprintf(i965->va_vendor, "%s %s driver for %s - %d.%d.%d",
INTEL_STR_DRIVER_VENDOR,
INTEL_STR_DRIVER_NAME,
+ chipset,
INTEL_DRIVER_MAJOR_VERSION,
INTEL_DRIVER_MINOR_VERSION,
INTEL_DRIVER_MICRO_VERSION);